If you are not redirected automatically, use the following link: https://github.com/OI-Biostat/oi_biostat_labs/blob/master/06_simple_linear_regression/01_least_squares/01_least_squares_handout.pdf