04.ECTRIE_SLRM (2).pdf
📚 04.ECTRIE_SLRM (2).pdf
Brief overview
This document introduces the fundamental concepts of linear regression analysis. It details the Ordinary Least Squares (OLS) method for estimating model coefficients and explores measures of goodness of fit, laying the groundwork for statistical inference.
Key points
- Introduction to the basic linear regression model and its components.
- Detailed explanation of the Ordinary Least Squares (OLS) method for estimating coefficients.
- Assessment of model quality using R-squared and the Standard Error of the Regression.
- Exploration of fundamental assumptions for OLS and the sampling distribution of estimators.
- Application of large-sample approximations, including the Law of Large Numbers and Central Limit Theorem.
1. Introduction to the linear regression model
The linear regression model helps estimate the impact of one variable on another. It aims to find the slope of the population regression line.
This slope shows the expected change in the dependent variable (Yi) for a one-unit increase in the independent variable (Xi). The model can be extended to include an error term to account for other influencing factors 4 6.
1.1 The linear regression model
The basic linear regression model with a single regressor is written as: Yi=β0+β1Xi+ui
Where:
- Yi: the dependent variable.
- Xi: the independent variable.
- β0: the intercept of the population regression line.
- β1: the slope of the population regression line.
- ui: the error term, representing other factors.
The population regression line describes the average relationship between Y and X across the entire population 7.
The model can be visualized with a scatterplot of observations, the population regression line, and the regression errors. The slope coefficient (β1) indicates the change in Y for a unit change in X 8.

1.2 Estimating regression coefficients
Estimating the coefficients (β0 and β1) involves finding the line that best fits the data. This is typically done using the Ordinary Least Squares (OLS) method.
OLS minimizes the sum of the squared differences between the observed values and the values predicted by the regression line.
The objective is to minimize: ∑i=1n(Yi−Y^i)2=∑i=1n[Yi−(b0+b1Xi)]2
This minimization problem leads to specific formulas for the OLS estimators 11.
1.2.1 Derivation of OLS estimators
The OLS estimators, denoted as β^0 and β^1, are derived by setting the partial derivatives of the sum of squared errors with respect to b0 and b1 to zero. This yields a system of equations that can be solved for β^0 and β^1 12.
The derivation leads to the formula for the slope estimator: β^1=∑i=1n(Xi−Xˉ)2∑i=1n(Xi−Xˉ)(Yi−Yˉ)

The intercept estimator is then derived from the estimated slope and the sample means: β^0=Yˉ−β^1Xˉ 14.
The formulas for the OLS estimators are:
| Coefficient | Formula |
|---|---|
| Slope | β^1=∑i=1n(Xi−Xˉ)2∑i=1n(Xi−Xˉ)(Yi−Yˉ) |
| Intercept | β^0=Yˉ−β^1Xˉ |
1.2.2 OLS notation and concepts
Key notations in OLS estimation include:
- β^0, β^1: The estimated population coefficients.
- Y^i=β^0+β^1Xi: The predicted value of Yi from the sample regression line.
- u^i=Yi−Y^i: The residual for the i-th observation, which is the sample counterpart of the population error ui.
1.3 Application: California test scores
The California test score data set provides an example to illustrate OLS. It includes test scores and student-teacher ratios (STR) for school districts 19.
The relationship between test scores and the student-teacher ratio is often negative. A lower student-teacher ratio (more tea







