Inferring Authorship (Part 1)

Published: April 16, 2015, 5:25 p.m.

b'This episode is inspired by one of our projects for Intro to Machine Learning: given a writing sample, can you use machine learning to identify who wrote it? Turns out that the answer is yes, a person\\u2019s writing style is as distinctive as their vocal inflection or their gait when they walk. \\n\\nBy tracing the vocabulary used in a given piece, and comparing the word choices to the word choices in writing samples where we know the author, it can be surprisingly clear who is the more likely author of a given piece of text. \\n\\nWe\\u2019ll use a seminal paper from the 1960\\u2019s as our example here, where the Naive Bayes algorithm was used to determine whether Alexander Hamilton or James Madison was the more likely author of a number of anonymous Federalist Papers.'