So today we dealt with the idea of “fitting”, and thus, with the idea of an objective function that we minimized. We played with three different such functions: least squares, least absolute deviations, and lasso-penalized least squares.
The handout for work in class is here.
The commented handout is here.
The original source file is here.