Mathematical Foundations and Comparative Analysis of the Least Squares Method
Abstract
The least squares method is a fundamental statistical approach used to determine the best-fitting function for a given set of data by minimizing the sum of squared residuals. Originating from the work of Carl Friedrich Gauss and Adrien-Marie Legendre in the early 19th century, it has since become a cornerstone in regression analysis, data fitting, and various scientific applications. This paper aims to explore the mathematical principles underlying the least squares method, including its derivation, geometric interpretation, and theoretical comparisons between Ordinary Least Squares and Weighted Least Squares. We compare Ordinary Least Squares with Weighted Least Squares, highlighting their respective assumptions and use cases. Our findings demonstrate that while Ordinary Least Squares provide unbiased and efficient estimations under homoskedasticity, Weighted Least Squares are preferable when dealing with heteroskedastic data. By presenting a comprehensive analysis of the least squares method, we offer insights into its theoretical foundations, providing valuable guidance for researchers and practitioners in data analysis.
References
- Stigler, S. M. (1981). Gauss and the Invention of Least Squares. The Annals of Statistics, 9(3), 465–474.
- Wooldridge, J. M. (2019). Introductory Econometrics: A Modern Approach (7th ed.). Cengage Learning.
- Soch, J. (2021, October 27). Ordinary least squares for simple linear regression. Retrieved from https://statproofbook.github.io/P/slr-ols.html
- Seber, G. A. F., & Lee, A. J. (2012). Linear Regression Analysis (2nd ed.). Wiley.
- Margalit, D. Rabinoff, J. The method of least squares. Retrieved from https://textbooks.math.gatech.edu/ila/least-squares.html
- Burton, A. L. (2021). OLS (Linear) Regression. The Encyclopedia of Research Methods in Criminology and Criminal Justice, 509–514. doi:10.1002/9781119111931.ch10
- Goldberger, A. S. (1962). Best linear unbiased prediction in the generalized linear regression model. Journal of the American Statistical Association, 57(298), 369–375.
- White, H. (1980). A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity. Econometrica, 48(4), 817–838.
- Oldenburg, R. (2025). Geometric Weighted Least Squares Estimation. Statistics, Optimization and Information Computing, 13, 611-615.
- Davidson, R., & MacKinnon, J. G. (1993). Estimation and Inference in Econometrics. Oxford University Press.
- Breusch, T. S., & Pagan, A. R. (1979). A simple test for heteroscedasticity and random coefficient variation. Econometrica, 47(5), 1287–1294.