1.1. Linear Models, scikit-learn developers, 2023 - The official user guide section explaining linear models in Scikit-learn, including Ordinary Least Squares (OLS) and the general API.
sklearn.linear_model.LinearRegression, scikit-learn developers, 2023 - Detailed API documentation for the LinearRegression class, outlining its parameters and attributes.
An Introduction to Statistical Learning with Applications in Python, Gareth James, Daniela Witten, Trevor Hastie, Robert Tibshirani, Jonathan Taylor, 2023 (Springer) - A foundational textbook covering the statistical theory of linear regression and other machine learning methods, with examples in Python.