Module 11 - Clustering

Overview and Deliverables

  • 11/9: Attend the course meetup at 8:00PM Eastern
  • Story 6 is assigned this week and due Sunday 11/22 (end of week 12). It consists of a customer segmentation analysis of Instacart data.

During this week we will learn how to use clustering to enhance our data stories.

Readings

For this week, there isn’t a good reading from our normal textbooks. Instead, this chapter on data mining and visualization in R is excellent:

Some other interesting resources are:

Meetup

Slides: Meetup 11 - Visualizing Clusters (PDF)

In this meetup we talk about how to use clustering algorithms to improve data visualizations. We go through the k-means algorithm, which is the most commonly used and most basic clustering method, and explain how to work with kmeans model fits in the tidyverse. Then we go over criteria for justifying how many clusters you should select and how to interpret the meaning of clusters. Finally, we discuss common pitfalls of the k-means algorithm and mention alternatives.

Spring 2025 recording