The Lead Data Scientist at Nielsen published an excellent kickstart article about classification algorithms.
Classification algorithms are one of the first thing you learn about data science.
Instead of using the common lecturer example of email spam filters to explain the algorithms, Bryan is using a more nerdy and magical example. As he states:
That’s right folks! Today we’ll be talking about the Sorting Hat from the Harry Potter universe. We’ll pull some Harry Potter data from the web, analyze it, and then build a classifier to sort characters into the different houses. Should be fun!
The sample program is based on Python and you can find the whole tutorial here.