Chapter 5: Finding the Optimal Number of Single Variable Groups

In this chapter, we will learn that we have to preprocess data to find the optimal number of groups for the values. It is not an arbitrary number and is very difficult to determine with just a visual inspection of the data chart. We will work with just one variable in this chapter, and then, in the next chapter, we will use more than two variables to segment the data, which demands a more automatic process with K-means. In this chapter, we will also learn how to install and use the K-means Excel add-in included in this book and on GitHub. We have to use an R function for K-means in Excel because it is very difficult to do an automatic segmentation by hand in Excel.

The topics we ...

Get Data Forecasting and Segmentation Using Microsoft Excel now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.