Ordinary least squares
Ordinary Least Squares (OLS) is a type of linear regression method used in statistics and econometrics for estimating the unknown parameters in a linear regression model. OLS selects the parameters of a linear function of a set of explanatory variables by minimizing the sum of the squares of the differences between the observed dependent variable in the given dataset and those predicted by the linear function.
Overview[edit | edit source]
The primary goal of OLS is to closely fit a line through a scatter plot of data points where one axis represents the independent variable(s) and the other the dependent variable. The best fit line, according to OLS, is the one that minimizes the sum of the squared differences (residuals) between the observed values and the values predicted by the linear model.
Mathematical Formulation[edit | edit source]
Given a dataset containing n observations, n pairs {(yᵢ, xᵢ)}, where i = 1, 2, ..., n, and yᵢ is the dependent variable and xᵢ is the independent variable (or vector of variables in multiple regression), the OLS method seeks to minimize the sum of squared residuals:
\[ S = \sum_{i=1}^{n} (y_i - \beta_0 - \sum_{j=1}^{k} \beta_j x_{ij})^2 \]
where β₀ is the intercept term, βⱼ (for j = 1, 2, ..., k) are the slope coefficients, and k is the number of independent variables.
Assumptions[edit | edit source]
The OLS method is based on several key assumptions, including:
- Linearity: The relationship between the dependent and independent variables is linear.
- Independence: Observations are independent of each other.
- Homoscedasticity: The variance of error terms is constant across all levels of the independent variables.
- No perfect multicollinearity: The independent variables are not perfectly correlated with each other.
- Normality: The error terms are normally distributed (this assumption is necessary for hypothesis testing but not for the estimation of coefficients).
Estimation[edit | edit source]
The OLS estimates of the coefficients (β) are calculated using the formula:
\[ \hat{\beta} = (X'X)^{-1}X'Y \]
where X is the matrix of independent variables (including a column of ones for the intercept), Y is the vector of the dependent variable, and X'X is the matrix multiplication of X transposed and X. The inverse of X'X is then multiplied by X'Y to give the estimate of β.
Properties[edit | edit source]
Under the OLS assumptions, the OLS estimator has several desirable properties:
- Unbiasedness: The expected value of the OLS estimator is equal to the true parameter value.
- Efficiency: Among all linear unbiased estimators, OLS estimators have the smallest variance.
- Consistency: As the sample size increases, the OLS estimators converge in probability to the true parameter values.
Applications[edit | edit source]
OLS is widely used in various fields such as economics, finance, political science, and biology, among others, for predictive modeling and inference about relationships between variables.
Limitations[edit | edit source]
While OLS is a powerful and widely used method, it has limitations, especially when its assumptions are violated. For example, if there is heteroscedasticity or autocorrelation in the residuals, the standard errors of the OLS estimates can be biased, leading to incorrect inferences. In such cases, other estimation techniques or adjustments to the standard errors may be necessary.
This article is a stub. You can help WikiMD by registering to expand it. |
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD