CrashCourse · @crashcourse
Unsupervised Machine Learning: Crash Course Statistics #37
Uploaded June 8, 2019 · Length 10:56
Summary
Learn about unsupervised machine learning, focusing on clustering techniques like k-means and hierarchical clustering to group data without pre-existing labels.
- unsupervised learning
- machine learning clustering
- k-means algorithm
- hierarchical clustering
- data grouping
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
Hi, I’m Adriene Hill, and welcome back to Crash Course Statistics.
- 0:05
In the last episode, we talked about using Machine Learning with data that already has
- 0:10
categories that we want to predict.
- 0:12
Like teaching a computer to tell whether an image contains a hotdog or not.
- 0:16
Or using health information to predict whether someone has diabetes.
- 0:19
But sometimes we don’t have labels.
- 0:22
Sometimes we want to create labels that don’t exist yet.
- 0:25
Like if we wanted to use test and homework grades to create 3 different groups of students
- 0:29
in your Stats course.
- 0:30
If you group similar students together, you can target each group with a specific review
- 0:34
session that addresses its unique needs.
- 0:37
Hopefully leading to better grades!
- 0:39
Because the groups don’t already exist, we call this Unsupervised Machine Learning
- 0:43
since we can’t give our models feedback on whether they’re right or not.
- 0:47
There are no “True” categories to compare our groups with.
- 0:50
Putting data into groups that don’t already exist might seem kinda weird but today we’ll
- 0:54
explore two types of Clustering--the main type of Unsupervised Machine Learning: k-means
- 1:01
and Hierarchical clustering.
- 1:03
And we’ll see how creating new groups can actually help us a lot.
- 1:06
INTRO
- 1:15
Let’s say you own a pizza restaurant.
- 1:17
You’ve been collecting data on your customers’ pizza eating habits.
- 1:20
Like how many pizzas a person orders a week.
- 1:22
And the average number of toppings they get on their pizzas.
- 1:25
You’re rolling out a new coupon program and you want to create 3 groups of customers
- 1:29
and make custom coupons to target their needs.
- 1:33
Maybe 2-for-1 five-topping medium pizzas.
- 1:35
Or 20% off all plain cheese pizza.
- 1:38
Or free pineapple topping!
- 1:39
So let’s use k-means to create 3 customer groups.
- 1:43
First, we plot our data:
- 1:44
All we know right now is that we want 3 separate groups.
- 1:47
So, what the k-means algorithm does is select 3 random points on your graph.
- 1:53
Usually these are data points from your set, but they don’t have to be.
- 1:56
Then, we treat these random points as the centers of our 3 groups.


