Simple Linear Regression
Summary
Simple linear regression models the mean response of a continuous outcome
Prerequisites
Definition / Notation
The model is
| Symbol | Meaning |
|---|---|
|
|
Response variable |
|
|
Predictor, treated as fixed or conditioned upon |
|
|
Intercept and slope parameters |
|
|
Random error |
|
|
Fitted value,
|
|
|
Residual,
|
|
|
Coefficient of determination |
The least-squares estimates are
Parameters / Assumptions
- The predictor values
are fixed or conditioned upon. - Errors have mean zero, constant variance
, and are uncorrelated (Gauss-Markov assumptions). - For inference on slopes, errors are additionally assumed i.i.d. normal.
- The predictor is not constant, so
.
Essential Result
The Gauss-Markov theorem states that, under the assumptions above, the least-squares estimators are the best linear unbiased estimators (BLUE). Under normality,
where
under
Worked Example
For data
Thus
The fitted line is
Common Mistakes
- Confusing correlation with causation.
- Extrapolating beyond the observed range of
. - Ignoring non-constant variance, outliers, or influential points.
- Assuming a statistically significant slope implies a large practical effect.
Connections
References
OpenStax, Introductory Statistics, "Linear Regression", https://openstax.org/details/books/introductory-statistics ↩︎
MIT OCW, Introduction to Probability and Statistics, "Simple Linear Regression", https://ocw.mit.edu/courses/mathematics/ ↩︎