CrashCourse · @crashcourse

Unsupervised Machine Learning: Crash Course Statistics #37

Uploaded June 8, 2019 · Length 10:56

Unsupervised Machine Learning: Crash Course Statistics #37

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.

  1. 0:03

    Hi, I’m Adriene Hill, and welcome back to Crash Course Statistics.

  2. 0:05

    In the last episode, we talked about using Machine Learning with data that already has

  3. 0:10

    categories that we want to predict.

  4. 0:12

    Like teaching a computer to tell whether an image contains a hotdog or not.

  5. 0:16

    Or using health information to predict whether someone has diabetes.

  6. 0:19

    But sometimes we don’t have labels.

  7. 0:22

    Sometimes we want to create labels that don’t exist yet.

  8. 0:25

    Like if we wanted to use test and homework grades to create 3 different groups of students

  9. 0:29

    in your Stats course.

  10. 0:30

    If you group similar students together, you can target each group with a specific review

  11. 0:34

    session that addresses its unique needs.

  12. 0:37

    Hopefully leading to better grades!

  13. 0:39

    Because the groups don’t already exist, we call this Unsupervised Machine Learning

  14. 0:43

    since we can’t give our models feedback on whether they’re right or not.

  15. 0:47

    There are no “True” categories to compare our groups with.

  16. 0:50

    Putting data into groups that don’t already exist might seem kinda weird but today we’ll

  17. 0:54

    explore two types of Clustering--the main type of Unsupervised Machine Learning: k-means

  18. 1:01

    and Hierarchical clustering.

  19. 1:03

    And we’ll see how creating new groups can actually help us a lot.

  20. 1:06

    INTRO

  21. 1:15

    Let’s say you own a pizza restaurant.

  22. 1:17

    You’ve been collecting data on your customers’ pizza eating habits.

  23. 1:20

    Like how many pizzas a person orders a week.

  24. 1:22

    And the average number of toppings they get on their pizzas.

  25. 1:25

    You’re rolling out a new coupon program and you want to create 3 groups of customers

  26. 1:29

    and make custom coupons to target their needs.

  27. 1:33

    Maybe 2-for-1 five-topping medium pizzas.

  28. 1:35

    Or 20% off all plain cheese pizza.

  29. 1:38

    Or free pineapple topping!

  30. 1:39

    So let’s use k-means to create 3 customer groups.

  31. 1:43

    First, we plot our data:

  32. 1:44

    All we know right now is that we want 3 separate groups.

  33. 1:47

    So, what the k-means algorithm does is select 3 random points on your graph.

  34. 1:53

    Usually these are data points from your set, but they don’t have to be.

  35. 1:56

    Then, we treat these random points as the centers of our 3 groups.