1/30
Looks like no tags are added yet.
Population vs. sample model
Population: Y = α + βX + ε (unknown). Sample: Y = A + BX + E (estimated).
Fitted value
Ŷ = A + BX, the line's prediction.
Residual
E = Y − Ŷ (actual minus predicted); vertical distance to the line. Positive = above the line (underprediction); negative = below (overprediction). Same units as Y.
Why least squares (not the plain sum of residuals)
The plain sum lets positive and negative residuals cancel. Squaring makes all positive and gives a closed-form solution. Drawback: sensitive to outliers (squaring magnifies large errors).
Least absolute values (LAV)
Minimizes Σ|E|; robust to outliers but has no closed-form solution.
Slope formula
B = Σ(X − X̄)(Y − Ȳ) / Σ(X − X̄)² (how X and Y move together ÷ how much X moves).
Intercept formula
A = Ȳ − B·X̄ → the line passes through the point of means (X̄, Ȳ).
Properties of the least-squares line
Passes through (X̄, Ȳ); residuals sum to 0; residuals uncorrelated with X and Ŷ.
Davis calculation: Σ(X−X̄)(Y−Ȳ) = 4359.33, Σ(X−X̄)² = 4470, X̄ = 56.67, Ȳ = 57.19
B = 4359.33/4470 = 0.975; A = 57.19 − 0.975 × 56.67 ≈ 1.93. Ŷ = 1.93 + 0.975X.
Interpret Davis slope 0.975
"A 1 kg increase in reported weight is associated with an average increase of 0.975 kg in measured weight." Cross-sectional: compares different women, not change over time.
Interpret Davis intercept 1.93
Predicted measured weight when reported weight = 0; outside the data, so not meaningful.
Perfect self-reporting benchmark
A = 0 and B = 1 (the line Y = X). Davis: 1.93 ≈ 0, 0.975 ≈ 1 → accurate reporting.
Residual standard error formula
SE = √(RSS / (n − 2)) for simple regression; √(RSS / (n − k − 1)) for multiple. Typical prediction error, in units of Y.
Davis SE = 2.03 kg: interpret
Predictions are typically off by about 2 kg; ~95% of residuals within ±4 kg (±2 SE).
TSS
Σ(Y − Ȳ)²: total variation in Y; error from predicting the mean for everyone (baseline).
RSS
Σ(Y − Ŷ)²: variation left unexplained after the regression.
RegSS
Σ(Ŷ − Ȳ)²: variation explained by the regression = TSS − RSS.
ANOVA identity
TSS = RegSS + RSS (total = explained + unexplained). RSS ≤ TSS always.
R² formula
R² = RegSS / TSS = 1 − RSS / TSS. Share of variation in Y explained (0 to 1, unitless).
Davis: TSS = 4649.35, RSS = 397.95
RegSS = 4251.40; R² = 4251.40/4649.35 = 0.914 (91.4% explained); SE = √(397.95/97) = 2.03 kg.
R² and r in simple regression
R² = r²; r = √R² with the sign of the slope. Davis: r = √0.914 = 0.956.
r = 0 but a U-shaped plot
r measures only LINEAR association. A strong curved relationship can have r = 0. r = 0 means "no linear relationship," not "no relationship."
r vs. slope B
r is symmetric, unitless, unchanged by rescaling. B depends on which variable is Y and on units.
Multiple regression slope Bⱼ
Change in Y for a 1-unit increase in Xⱼ, holding the other Xs constant (partial effect). Fit is a plane with 2 Xs.
Duncan multiple regression
Prestige = −6.06 + 0.599·Income + 0.546·Education; R² = 0.828; SE = 13.37.
Interpret Duncan education 0.546
"Holding income constant, a 1-unit increase in education is associated with an average increase of 0.55 in prestige."
Marginal (0.902) vs. partial (0.546) education effect
Simple regression = marginal: direct effect + indirect effect through income. Multiple regression = partial: holding income constant blocks the indirect path → direct effect only. 0.902 − 0.546 = 0.356 runs through income.
Collinear (perfectly correlated) Xs in multiple regression
No unique solution; separate coefficients can't be estimated.
Degrees of freedom
n − k − 1 (k = number of Xs). Duncan: 45 − 2 − 1 = 42.
R (multiple correlation)
R = √R² = correlation between Y and Ŷ.
Units matter (Prestige income 0.001314 per $)
Looks tiny, but per $1,000 = 1.31 prestige points. Can't compare raw slopes across variables with different units.