Machine Learning by Hand Fit a linear model with pen-and-paper math, then reproduce it in 10 lines of code.