WEBVTT

00:01.000 --> 00:03.781
These three dinosaurs are going to do a
bit of machine learning.

00:03.810 --> 00:07.653
The counters are the data points. The
dinosaurs are the centres of three

00:07.653 --> 00:12.140
groups. Why three? Because I picked three.
That's the K

00:12.204 --> 00:16.894
in K-means. Pick one counter. We measure
how far it is from each dinosaur.

00:16.894 --> 00:21.056
The shortest measurement wins, so this
counter gets that dinosaur's colour.

00:21.573 --> 00:24.168
Do it for every counter and we've got
three groups.

00:24.371 --> 00:27.726
Now move the dinosaurs. Take the average
of the left-to-right positions in

00:27.726 --> 00:30.298
each group, and the average of the
up-and-down positions.

00:30.443 --> 00:32.794
Put the dinosaur where those two averages
meet.

00:33.427 --> 00:35.360
It doesn't have to be standing on a
counter.

00:35.876 --> 00:39.440
Look at this red counter. Green is now
closer, so it changes teams.

00:39.440 --> 00:43.016
That changes the averages again. Move the
dinosaurs and check the distances

00:43.016 --> 00:46.412
once more. This time nothing changes, so
we can stop.

00:46.836 --> 00:49.703
You might do this to explore whether your
customers fall into groups with

00:49.703 --> 00:51.648
similar spending and visit patterns.

00:52.165 --> 00:55.526
Put the variables on comparable scales
before you measure distances.

00:55.787 --> 00:59.967
And try another starting point or another
K. The dinosaurs will happily give

00:59.967 --> 01:03.170
you three groups even if there aren't
really three kinds of customer.

01:03.428 --> 01:04.668
If you enjoyed this video,

01:04.752 --> 01:07.438
you might enjoy
Anyone Can Do Data Science.
