Showing posts with label density clustering. Show all posts
Showing posts with label density clustering. Show all posts

October 25, 2012

k-means clustering part 2


Introduction

The must appropriate selection on variables is the cluster of five elements.
This grouping offers the particularity to give the same number of cluster than the agglomerative classification method.

The first group

PctForeignBorn,PctHousNoPhone,PctIlleg,PctLargHouseFam,PctLargHouseOccup,PctLess9thGrade,PctNotSpeakEnglWell,PctPersDenseHous,PctPopUnderPov,PctRecentImmig,PctRecImmig10,PctRecImmig5,PctRecImmig8,PctVacantBoarded,PctWOFullPlumb,pctWPubAsst,PopDens,racepctblack,racePctHisp,ViolentCrimesPerPop

The first group is composed by immigrant or illegitime children, living in large house not really graduate , not speaking english, under poverty, with public assistance, on a dense area. This group is near our targeted value.
Black and hispanic

The second group

HousVacant,indianPerCap,LandArea,LemasPctOfficDrugUn,numbUrban,NumIlleg,NumImmig,NumInShelters,NumStreet,NumUnderPov,PctUsePubTrans,population,racePctAsian
The group of workers whose use public transport under poverty with drug problems.
Asian and indian

The third group

AsianPerCap,blackPerCap,HispPerCap,medFamInc,medIncome,MedNumBR,MedRent,OwnOccHiQuart,OwnOccLowQuart,OwnOccMedVal,PctBSorMore,PctOccupMgmtProf,perCapInc,RentHighQ,RentLowQ,RentMedian,whitePerCap
The group of medium people from different race.

The fourth group

agePct12t21,agePct12t29,agePct16t24,agePct65up,FemalePctDiv,householdsize,MalePctDivorce,MalePctNevMarr,MedOwnCostPctInc,MedOwnCostPctIncNoMtg,MedRentPctHousInc,MedYrHousBuilt,PctEmplManu,PctEmplProfServ,PctHousLess3BR,PctImmigRec10,PctImmigRec5,PctImmigRec8,PctImmigRecent,PctNotHSGrad,PctOccupManu,PctUnemployed,PctVacMore6Mos,pctWFarmSelf,PctWorkMom,PctWorkMomYoungKids,pctWRetire,pctWSocSec,PersPerFam,PersPerOccupHous,PersPerOwnOccHous,PersPerRentOccHous,TotalPctDiv
The group of worker manual, immigrant , unemployed, with a big family , in a dense house and area.

The fifth group

PctBornSameState,PctEmploy,PctFam2Par,PctHousOccup,PctHousOwnOcc,PctKids2Par,PctPersOwnOccup,PctSameCity85,PctSameHouse85,PctSameState85,PctSpeakEnglOnly,PctTeen2Par,pctUrban,pctWInvInc,pctWWage,PctYoungKids2Par,racePctWhite
The perfect group , white and living on the same area, speaking in english with two kids, urban.
The white race disturb the idea of this group.









October 24, 2012

Density based clustering

Introduction 

An other interesting approach is based on the density clustering. This approach based on the DBScan algorithm permit to mecanically extract some cluster on a metric analysis approach.
This algorithm offers more fragmented group that other methods.

Graphics

This is the graphical result obtained  Centered in the scrum.





The first group

HousVacant,LandArea,LemasPctOfficDrugUn,numbUrban,NumIlleg,NumImmig,NumInShelters,NumStreet,NumUnderPov,population
This first group correspond on a group of extreme values as Poverty, population, number of streets, shelters, illegitime children, urban, officer on drug unit, size of the land and house vacant.
Fire on different type of data that not permit to distinguish a group of people.

The second group

indianPerCap,MedNumBR,MedOwnCostPctInc,PctHousOccup,PctSpeakEnglOnly,pctUrban,PctUsePubTrans,pctWFarmSelf,pctWInvInc,racePctAsian,racePctWhite
This is an interesting group composed by indian,asian and white race. This group speak english is urban and /or self farm,use public transport, median owners cost and number of bedrooms. 

The third group

PctForeignBorn,PctRecentImmig,PctRecImmig10,PctRecImmig5,PctRecImmig8
This is a group of immigrant.

The fourth group

PctLargHouseFam,PctLargHouseOccup,PopDens
The group of population density with large house.

The fifth group

PctHousOwnOcc,PctPersOwnOccup
A group of owner of their house.

The sixth group

OwnOccHiQuart,OwnOccLowQuart,OwnOccMedVal
A group of owner occupied housing in lown high and medium quantile.

The seventh group

MedRent,RentHighQ,RentLowQ,RentMedian
A group of rental housing.

The heighth group

PctBornSameState,PctSameCity85,PctSameState85
People living on the same area.

The ninth group

agePct12t21,agePct12t29,agePct16t24,agePct65up,FemalePctDiv,householdsize,MalePctDivorce,MalePctNevMarr,MedOwnCostPctIncNoMtg,MedRentPctHousInc,MedYrHousBuilt,PctEmplManu,PctEmploy,PctEmplProfServ,PctHousLess3BR,PctImmigRec10,PctImmigRec5,PctImmigRec8,PctImmigRecent,PctVacMore6Mos,pctWSocSec,pctWWage,PersPerFam,PersPerOccupHous,PersPerOwnOccHous,PersPerRentOccHous,TotalPctDiv
A family group representation by age, employment, imigrant, housing...
Not a really named group, just a short multicosal representation of the study.

The tenth group

PctIlleg,PctVacantBoarded,PctWOFullPlumb,racepctblack,ViolentCrimesPerPop
This group contains our prefered analyzed value the violent crime per population value.
Illegitime children, vacant boarded house , with house without complete plumbing facilities and black race are grouped around our value.
An very concentrated cause of the value.

The eleventh group

PctNotSpeakEnglWell,PctPersDenseHous,racePctHisp
This group represents hispanic that not speak english living in dense house.

The twelfth group

HispPerCap,medFamInc,medIncome,PctBSorMore,PctOccupMgmtProf,perCapInc,whitePerCap
Goup of median family composed by white or hispanic , employed in management or professional occupations .

The thirteenth group

PctHousNoPhone,PctLess9thGrade,PctNotHSGrad,PctOccupManu,PctPopUnderPov,PctUnemployed,pctWPubAsst
The poverty people group
People without phone poorly graduate, manual employment, poverty or unemployed with public assistance.

The fourteenth group

PctSameHouse85,PctWorkMom,PctWorkMomYoungKids,pctWRetire
Living on the same house , where the mom works with young kids or retired.

The sixteenth group

AsianPerCap,blackPerCap
Asian and black group

The seventeenth group 

PctFam2Par,PctKids2Par,PctTeen2Par,PctYoungKids2Par
The Family and kids group