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

Preparing the data for analysis

We will first perform some data preparation in order to normalize the data for k-means. Normalization is pretty much a requirement for k-means, since it forces each variable to be scale-independent so that measuring distances between the k-means clusters is also scale-independent.

Recall that one way to normalize a variable is to first obtain the mean of the variable and then divide by its standard deviation.

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