This lecture will teach you how to fit nonlinear functions by using bases functions and how to control model complexity. The goal is for you to: Learn how to derive ridge regression; understand the trade-off of fitting the data and regularizing it; Learn polynomial regression; understand that, if basis functions are given, the problem of learning the parameters is still linear; learn cross-validation; understand model complexity and generalization.