1/30
Looks like no tags are added yet.
Population model vs. sample (estimated) model
Population: Y = α + βX + ε (true values, unknown). Sample: Y = A + BX + E (A and B are our estimates of α and β; E are the residuals).
What is a fitted value?
Ŷ = A + BX: the value of Y the regression line predicts for a given X.
What is a residual, and what do positive and negative residuals mean?
E = Y − Ŷ (actual minus predicted): the vertical distance from the point to the line, in units of Y. Positive = point above the line (model under-predicts). Negative = point below the line (model over-predicts).
Why does least squares minimize the SUM OF SQUARED residuals instead of the plain sum?
The plain sum lets positive and negative residuals cancel out (any line through the means gives 0). Squaring makes every residual count positively and gives a simple formula. Downside: squaring magnifies large errors, so outliers pull the line strongly.
What is least absolute values (LAV) regression?
It minimizes Σ|E| instead of ΣE². More resistant to outliers, but there is no simple formula for the solution.
Formula for the least-squares slope B, and what it means
B = Σ(X − X̄)(Y − Ȳ) / Σ(X − X̄)². Top: how X and Y move together. Bottom: how much X varies. So B = co-movement ÷ variation in X.
Formula for the least-squares intercept A
A = Ȳ − B·X̄. This guarantees that the line passes through the point of means (X̄, Ȳ).
3 properties of the least-squares line
(1) It passes through (X̄, Ȳ). (2) The residuals sum to 0. (3) The residuals are uncorrelated with X and with the fitted values Ŷ.
Davis data (women's self-reported weight X vs. measured weight Y, kg): Σ(X−X̄)(Y−Ȳ) = 4359.33, Σ(X−X̄)² = 4470, X̄ = 56.67, Ȳ = 57.19. Find the line.
B = 4359.33 / 4470 = 0.975. A = 57.19 − 0.975 × 56.67 ≈ 1.93. Fitted line: Ŷ = 1.93 + 0.975X.
Davis data (measured weight regressed on self-reported weight): slope = 0.975. Interpret.
"A 1 kg increase in reported weight is associated with an average increase of 0.975 kg in measured weight." Note: this compares different women (cross-sectional), not one woman gaining weight over time.
Davis data: intercept = 1.93. Interpret.
The predicted measured weight for a woman who reports 0 kg. Nobody reports 0 kg, so this is outside the data and has no practical meaning; it just positions the line.
Davis data: what line would mean PERFECT self-reporting, and how close is the fit?
Perfect reporting = measured equals reported: A = 0 and B = 1 (the line Y = X). Estimates A = 1.93 ≈ 0 and B = 0.975 ≈ 1 → women report their weight quite accurately.
Formula for the residual standard error (SE) and what it means
SE = √(RSS / (n − 2)) in simple regression; √(RSS / (n − k − 1)) with k Xs. It is the typical size of a prediction error, in units of Y.
Davis data: residual standard error = 2.03 kg. Interpret.
Predictions of measured weight from reported weight are typically off by about 2 kg. About 95% of residuals fall within ±2 SE ≈ ±4 kg.
What is TSS (total sum of squares)?
TSS = Σ(Y − Ȳ)²: total variation in Y. It is the error you'd make predicting the mean Ȳ for everyone (the no-X baseline).
What is RSS (residual sum of squares)?
RSS = Σ(Y − Ŷ)²: the variation in Y left unexplained after the regression.
What is RegSS (regression sum of squares)?
RegSS = Σ(Ŷ − Ȳ)²: the variation in Y explained by the regression. RegSS = TSS − RSS.
What is the ANOVA identity?
TSS = RegSS + RSS: total variation = explained + unexplained. So RSS can never be larger than TSS.
Formula and meaning of R²
R² = RegSS / TSS = 1 − RSS / TSS. The proportion of the variation in Y explained by the regression. Ranges 0 to 1, no units.
Davis data: TSS = 4649.35, RSS = 397.95, n − 2 = 97. Compute RegSS, R², and SE, and interpret R².
RegSS = 4649.35 − 397.95 = 4251.40. R² = 4251.40 / 4649.35 = 0.914 → reported weight explains 91.4% of the variation in measured weight. SE = √(397.95 / 97) = 2.03 kg.
How are R² and the correlation r related in simple regression?
R² = r². r = √R² with the sign of the slope. Davis: r = √0.914 = 0.956 (positive, strong).
Scatterplot shows a clear U-shape, but r = 0. How is that possible?
r measures only LINEAR association. A strong curved relationship can have r = 0 because the up and down halves cancel. r = 0 means "no linear relationship," not "no relationship."
How does the correlation r differ from the slope B?
r is symmetric (same whichever variable is Y), has no units, and doesn't change if you rescale variables. B depends on which variable is Y and on the units of both.
How do you interpret a slope Bⱼ in multiple regression?
"Holding the other Xs constant, a 1-unit increase in Xⱼ is associated with an average change of Bⱼ in Y." It is a partial effect. With 2 Xs the fit is a plane instead of a line.
Duncan data (45 U.S. occupations, 1950; prestige = % rating the job good/excellent; income = % earning $3,500+; education = % high-school graduates): what is the fitted model?
Prestige = −6.06 + 0.599·Income + 0.546·Education. R² = 0.828 (83% of the variation in prestige explained). Residual SE = 13.37 prestige points.
Duncan data: education coefficient = 0.546. Interpret.
"Holding income constant, a 1-percentage-point increase in the share of high-school graduates is associated with an average increase of 0.55 points in prestige."
Duncan data: education's slope is 0.902 alone (simple regression) but 0.546 when income is added. Why?
0.902 is the marginal effect: education's direct effect PLUS its indirect effect through income (educated jobs pay more, and pay raises prestige). 0.546 is the partial effect holding income constant: the direct effect only. 0.902 − 0.546 = 0.356 runs through income.
What happens if two Xs are perfectly correlated in a multiple regression?
There is no unique solution: the data cannot separate their effects, so their individual coefficients cannot be estimated (R reports NA).
Degrees of freedom for the residuals
df = n − k − 1, where k = number of Xs. Duncan: 45 − 2 − 1 = 42.
What is the multiple correlation R?
R = √R² = the correlation between the observed Y and the fitted values Ŷ.
Prestige data (Canadian occupations): income slope = 0.001314 per dollar. Why does it look tiny, and how should you report it?
Income is in dollars, so one unit is $1. Per $1,000: 1,000 × 0.001314 = 1.31 prestige points. Lesson: a slope's size depends on units, so you can't compare raw slopes across variables measured in different units.