1/37
Looks like no tags are added yet.
What is an outlier (discrepancy) in regression?
An observation whose Y is unusual GIVEN its X values: it sits far above or below the fitted line (large residual). Measured by the studentized residual.
What is leverage?
How unusual an observation's X values are, i.e., how far it is from the center of the Xs. Measured by the hat-value. It depends ONLY on X, not on Y.
What is influence?
An observation is influential if removing it changes the regression coefficients a lot. Measured by Cook's distance (Cook's D).
How are influence, leverage and discrepancy related?
Influence ≈ Leverage × Discrepancy. A point needs BOTH unusual X (leverage) and an unusual Y given X (large residual) to be influential.
Plot: a single point sits far above the line but in the MIDDLE of the X range; lines fitted with and without it are almost the same. Classify it.
Low leverage + high discrepancy → an outlier with little influence. It shifts the line up slightly but barely changes the slope. It can still increase the SE and lower R².
Plot: a single point sits at the FAR RIGHT of the X range and far off the line; the line with it tilts sharply toward it. Classify it.
High leverage + high discrepancy → highly influential. It changes the slope a lot.
Plot: a single point sits at the FAR RIGHT of the X range but right ON the line through the other points. Classify it.
High leverage, no discrepancy → not influential. It actually makes the slope more precise (more spread in X). A "good" leverage point.
Davis data: what is wrong with case 12?
A woman recorded as weighing 166 kg and 57 cm tall. Her weight and height were swapped during data entry; she really weighs 57 kg (she reported 56 kg).
Davis Regression 1: reported weight regressed on measured weight × sex. Case 12 has measured weight X = 166 kg. What does she do to the fit?
X = 166 is far from every other woman → huge leverage (h = 0.71, about 33× the average); studentized residual −24.3; Cook's D = 85.9 → extremely influential. She created a false significant sex interaction (−0.725, p < 0.001, which becomes −0.057, p = 0.142 after fixing her). Fixing her also raises R² from 0.887 to 0.974 and lowers SE from 4.66 to 2.24.
Davis Regression 2: measured weight regressed on reported weight. Case 12 has reported weight X = 56 kg. What does she do to the fit?
X = 56 kg is ordinary → low leverage (h = 0.01), but a huge residual (48.2 kg). The coefficients barely change (slope 0.969 with or without her), but R² is 0.70 vs. 0.97, SE 8.45 vs. 2.25, and the coefficient SEs are about 4× larger with her.
Lesson from the two Davis regressions
The same observation can be influential in one model and not another, depending on whether it is unusual in X. Even a non-influential outlier can inflate standard errors and lower R².
Before/after table (with vs. without one observation): the coefficients change a lot. What does that tell you?
The observation is influential: it combines high leverage with a large residual.
Before/after table: the coefficients barely change, but R² and the residual SE change a lot. What does that tell you?
The observation is a low-leverage outlier: it hurts fit and precision (bigger SEs) but not the coefficient estimates.
What does a hat-value measure?
Each fitted value is a weighted sum of all the Ys: Ŷᵢ = Σ hᵢⱼYⱼ. The hat-value hᵢ is the weight of a point's OWN Y in its own fitted value. A high hᵢ means the point pulls the line toward itself.
What is the range of hat-values and their average?
1/n ≤ hᵢ ≤ 1. Average h̄ = (k + 1)/n, where k = number of Xs.
Cutoffs for large hat-values
Flag hᵢ > 2h̄ (twice the average). In small samples use 3h̄.
Hat-value formula in simple regression
hᵢ = 1/n + (Xᵢ − X̄)² / Σ(X − X̄)². It grows with the distance of Xᵢ from the mean of X.
Leverage in multiple regression: can a point have high leverage if none of its X values is extreme?
Yes. Leverage is distance from the center of the X cloud, accounting for how the Xs are correlated. An unusual COMBINATION of X values (e.g., high education but low income) gives high leverage.
Duncan data (45 U.S. occupations, income and education → prestige; n = 45, k = 2): compute the hat-value cutoffs and name the high-leverage jobs.
h̄ = 3/45 = 0.067; 2h̄ = 0.133; 3h̄ = 0.200. Railroad engineer h = 0.27, conductor 0.19, minister 0.17 → all high leverage.
Duncan data: why do ministers have high leverage?
Ministers have high education but low income, an unusual combination that sits off the usual income–education pattern. Leverage counts distance in any direction, not just high values.
Formula for the studentized residual
E*ᵢ = Eᵢ / [S_E(−i) × √(1 − hᵢ)]. It uses the residual SE computed WITHOUT point i and adjusts for leverage. It follows a t-distribution with n − k − 2 df.
Why use studentized residuals instead of ordinary residuals?
High-leverage points pull the line toward themselves, which shrinks their own ordinary residuals and hides them. Studentizing corrects for this so they stand out.
Rule of thumb for studentized residuals
|E*| > 2 deserves a closer look. About 5% of points will exceed 2 just by chance.
Why is checking every residual for outliers a multiple-testing problem?
Checking all n residuals = n tests. At 5% each, a few points will look extreme purely by chance.
How does the Bonferroni outlier test work?
Bonferroni p = n × (unadjusted p), capped at 1. Only call the largest point a real outlier if the Bonferroni p < α.
Duncan data: the minister has studentized residual 3.13 and unadjusted p = 0.0032. Is it a significant outlier?
H₀: the minister is not an outlier. Bonferroni p = 45 × 0.0032 = 0.143 > 0.05 → fail to reject. Not a statistically significant outlier once we account for testing all 45 jobs (though still worth investigating).
Davis data: after case 12 is fixed, case 17 has studentized residual 4.05 and Bonferroni p = 0.014. Meaning?
0.014 < 0.05 → case 17 is now a significant outlier. Lesson: fixing one extreme point can unmask another that it was hiding.
Formula for Cook's distance
Dᵢ = [E*ᵢ² / (k + 1)] × [hᵢ / (1 − hᵢ)]. First part = discrepancy, second part = leverage. Large D needs both.
Cutoff for Cook's distance
Dᵢ > 4 / (n − k − 1), or any value that stands far apart from the rest. Duncan: 4 / 42 = 0.095.
Duncan data Cook's D: minister 0.57, conductor 0.22, railroad engineer 0.08, reporter 0.10. Interpret each.
Cutoff 0.095. Minister and conductor → influential (well above). Railroad engineer → high leverage but small residual, so not influential. Reporter → large residual but low leverage, so only limited influence (just at the cutoff).
How do you read an influence plot?
X-axis = hat-value (leverage); Y-axis = studentized residual (discrepancy); circle size = Cook's D (influence). Reference lines at E* = ±2 and h = 2h̄ and 3h̄. Trouble spots: top-right and bottom-right (high leverage AND big residual), with big circles.
Duncan influence plot: classify minister, conductor, railroad engineer, reporter
Minister: high leverage + large positive residual + biggest circle → influential. Conductor: high leverage + large negative residual → influential. Railroad engineer: far right but residual near 0 → high leverage, not influential. Reporter: large negative residual but low leverage → outlier with little influence.
What are joint influence and masking?
Two points can be influential together: deleting just one leaves the other still pulling, so neither looks influential alone (masking). Or two points can pull in opposite directions and cancel each other out.
What is an added-variable (partial regression) plot?
For one X: plot the residuals of Y (regressed on the other Xs) against the residuals of Xⱼ (regressed on the other Xs). The slope equals Bⱼ from the full model. It shows the partial relationship and which points have leverage on THAT coefficient.
Duncan added-variable plot for income: the minister is far left and above the line, the conductor is far right and below it. What happens if both are removed?
Both pull the income slope flatter. Removing them: income coefficient 0.599 → 0.867; education coefficient 0.546 → 0.332. Conclusions about the relative importance of income and education depend on these two jobs.
Should unusual observations be deleted?
Not automatically. Investigate why they are unusual. Data-entry error → correct or remove. Real but different case → keep it, analyze separately, add a missing predictor, transform, or use robust regression; report results with and without.
What is robust regression?
A fitting method that gradually down-weights observations with large residuals, instead of the all-or-nothing choice of keeping or deleting them.
What is a practical workflow for unusual data?
(1) Hat-values (leverage). (2) Studentized residuals plus the Bonferroni test (outliers). (3) Cook's D (influence). (4) Influence plot and added-variable plots. (5) Investigate the flagged cases. (6) Decide thoughtfully and report.