Machine Learning · Module 11 of 12

Clustering & PCA

Lessons

About This Lesson

So far, every model has learned from examples with known answers. Unsupervised learning works without labels: it looks for structure in the data on its own, such as natural groups or the most important directions of variation.

You'll start with clustering, using k-means to split data into a chosen number of groups and hierarchical clustering to build a tree of nested groups. Then you'll learn principal component analysis (PCA), which compresses many features into a few while keeping as much information as possible.

Watch the videos in order, then cluster and visualize a dataset of your own, and try PCA to reduce it to two dimensions. When you're done, continue on to Tuning, Interpretation & Pitfalls.

Lessons

4 videos
01

StatQuest: K-means clustering

How k-means groups data into k clusters, and how an elbow plot helps you choose a value for k.

02

StatQuest: Hierarchical Clustering

How hierarchical clustering builds a tree of nested groups and how to read it as a heatmap and dendrogram.

03

Principal Component Analysis (PCA) explained in less than 5 minutes

The main ideas behind PCA: finding the directions that capture the most variation in your data.

04

Principal Component Analysis (PCA), Step-by-Step

How PCA works in detail, from centering the data to finding principal components and choosing how many to keep.