Click NOTES-linearregression.pdf link to view the file.