The notebook linear_regression.ipynb contains examples for the prediction of stock prices using OLS with statsmodels and sklearn, as well as ridge and lasso models. It is designed to run as a notebook on the Quantopian research platform and relies on the factor_library introduced in Chapter 4, Alpha Factors Research.