An Introduction to Statistical Learning: With Applications in R, Gareth James, Daniela Witten, Trevor Hastie, Robert Tibshirani, 2013 (Springer) - Provides a gentle introduction to linear regression and the method of least squares, bridging statistical theory with practical machine learning applications.
statsmodels.regression.linear_model.OLS, Statsmodels Developers, 2024 - Official documentation for the Ordinary Least Squares (OLS) implementation in the Statsmodels Python library, useful for practical application.
CS229 Lecture Notes: Linear Regression, Andrew Ng, 2009 (Stanford University) - Lecture notes from Stanford University's machine learning course, covering the method of least squares as a foundational technique in supervised learning.