11/14
Part 7 of 7 · Follow-upsLearn

A prior is a penalty

Multiply the likelihood by a prior on the parameters, and maximize that instead: the maximum a posteriori estimate. A normal prior on the coefficients adds −λ Σ b² to the log-likelihood, which is L2 regularization, the same thing ridge regression does. It also stops the runaway coefficient from the last step. The shrinkage lesson's Bayesian average is the same move for a rating.