O'Reilly logo

Practical Predictive Analytics by Ralph Winters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Graphically displaying the clusters

We can plot the clusters in many different ways. The first thing you would want to look at would be histograms of the cluster segments. Remember, k-means likes to see approximately equal clusters:

#usually but now always the middle cluster is the average cluster 
par(mfrow=c(1,3)) 
hist(clusters3) 
hist(clusters5) 
hist(clusters7) 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required