The regression line: slope, intercept and least squares
KnownMemorizeThe least squares line
| Item | What to know |
|---|---|
| Model | |
| Slope | |
| Intercept | |
| Residual | (actual − fitted) |
| Criterion | minimize (SSE) |
Memory hook Slope = covariance over the variance of X, the variable you stand on. Divide by both standard deviations and you get r, not the slope. The line always passes through (X̄, Ȳ), so the intercept just finishes the job.
Know it cold Least squares minimizes the sum of SQUARED residuals. Plain residuals always sum to zero, so they cannot be the criterion.
Key terms
- simple linear regression Use it
- dependent variable Memorize
- independent variable Memorize
- regression coefficients Use it
- intercept Memorize
- slope coefficient Memorize
- error term Use it
- residual Memorize
- fitted value Use it
- sum of squares error Memorize
- least squares Memorize
- Dependent variable, Y Memorize the variable you want to explain
- Also called explained variable, predicted variable
-
- Independent variable, X Memorize the variable doing the explaining
- Also called explanatory variable, predictor
-
- Regression coefficients Memorize estimated from the data
- Intercept, b₀ predicted Y when X = 0
- Slope, b₁ change in predicted Y per one-unit rise in X
-
- Error term, ε Use it what the line leaves unexplained
- Residual, e the sample estimate of ε: actual Y minus fitted Y
-
Formulas
Quick example
Revenue growth (Y, %) on marketing spend (X, % of sales): Y = 1.39 + 1.29X + ε. A retailer spending 4% of sales is fitted at 1.39 + 1.29 × 4 = 6.55%; the gap to its actual growth is its residual.
- 1.29×4+1.39= 6.55
- 1.29ENTER4×1.39+ 6.55
ENTER enter (on the HP, puts the number on the stack)
Quick example
Cov(X, Y) = 0.0018 and Var(X) = 0.0024. Slope = 0.0018 ÷ 0.0024 = 0.75.
- 0.0018÷0.0024= 0.75
- 0.0018ENTER0.0024÷ 0.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Ȳ = 5, X̄ = 4 and slope 0.75. Intercept = 5 − 0.75 × 4 = 2.00.
- 5−(0.75×4)= 2
- 5ENTER0.75ENTER4×− 2
ENTER enter (on the HP, puts the number on the stack)
Quick example
Correlation 0.60, standard deviation of Y 5%, of X 4%. Slope = 0.60 × 5 ÷ 4 = 0.75.
- 0.6×5÷4= 0.75
- 0.6ENTER5×4÷ 0.75
ENTER enter (on the HP, puts the number on the stack)