Learning Outcome Statement
Describe influence analysis and methods of detecting influential data points.
On the exam: You receive a sample monthly retailer regression with the observation count, parameter count, mean squared error, residual, and leverage, then classify the observation or calculate Cook's distance in a vignette-based item set or MCQ.
Influence analysis asks whether including a particular observation changes the fitted regression enough to change its coefficients or fitted values. A point can be unusual in its independent-variable combination, far from the fitted outcome, or both. The last case can let a month drive the model's story.
Leverage looks only at independent-variable values. Cook's distance combines leverage with residual size and estimates how much the fitted regression could move. A high-leverage point with a small residual may sit far from the predictor center yet stay close to the fitted regression.
| Measure | Signal source | Check alongside |
|---|---|---|
| Leverage $h_{ii}$ | Independent-variable combination | Residual and Cook's distance |
| Residual $e_i$ | Observed minus fitted outcome | Leverage |
| Cook's distance $D_i$ | Residual and leverage | Fitted regression with and without point |
Leverage is a screen for unusual predictors, not a verdict on influence. Investigate a flagged point by checking its residual and Cook's distance, then compare the fitted regression with and without it.
Read the measures together when you review a regression. Leverage tells you whether a month's advertising spend and foot traffic combination is unusual; the residual tells you how far its sales growth sits from the fitted value. Cook's distance brings those signals together to estimate whether the month could shift the fitted regression. A screen identifies where to look, while the combined diagnostic helps judge the possible effect.
For observation $i$, the residual $e_i$ is observed minus fitted outcome. The parameter count $p$ includes the intercept, $n$ is the observation count, and MSE is the regression mean squared error. Screen $h_{ii}$ against $2p/n$. Use $3p/n$ as a more conservative rule of thumb. Cook's distance, $D_i$, combines the residual and leverage to estimate how much the fitted regression may change.
$$ D_i = \left(\frac{e_i^2}{p\mathrm{MSE}}\right)\left(\frac{h_{ii}}{(1-h_{ii})^2}\right) $$
The squared residual makes a large miss count more than proportionally. The denominator $p\mathrm{MSE}$ scales the miss by model noise and parameter count, while the leverage fraction raises the result and its squared denominator makes the rise sharper as $h_{ii}$ approaches $1$. The ratio is dimensionless, and a large residual combined with high leverage creates the greatest influence risk.
Worked example
You are handed a sample monthly regression for a retailer's same-store sales growth on advertising spend and foot traffic. It is an ordinary least squares sample regression with an intercept, and the supplied MSE uses residual degrees of freedom. You need to decide whether the highlighted month deserves an influence check and calculate its Cook's distance from the observation count $n$, parameter count $p$, MSE, residual $e_i$, and leverage $h_{ii}$.
| Given | Value |
|---|---|
| Observation count, $n$ | 24 monthly observations |
| Parameter count, $p$ | 3 parameters, including intercept |
| Mean squared error, MSE | 0.25 percentage-points-squared |
| Residual, $e_i$ | 0.8 percentage points |
| Leverage, $h_{ii}$ | 0.28 dimensionless |
Hold the residual scale from this case fixed. The line shows how Cook's distance changes with leverage. With the miss size unchanged, each increase in leverage raises the distance, and the rise accelerates near the high end because leverage also appears in the denominator as $(1-h_{ii})^2$. Read the line as a diagnostic comparison across leverage values, not as a new cutoff for deciding influence.
Loading diagram…
At leverage values of 0.05, 0.15, 0.25, and 0.35, Cook's distance is 0.047, 0.177, 0.379, and 0.707, respectively. These paired values make the curve concrete: holding the residual scale fixed, the diagnostic rises more sharply at higher leverage. Use the worked inputs below to calculate the case result, then interpret it with the leverage screens rather than treating any single value as an automatic deletion rule.
-
Screen predictor position first. This separates an unusual independent-variable combination from an ordinary one. The usual screen is $2p/n = \frac{2 \times 3}{24} = 0.2500$. The conservative screen is $3p/n = \frac{3 \times 3}{24} = 0.3750$. The observed leverage $0.28$ is above the usual screen but below the conservative screen.
-
Put residual size on the model scale. Squaring the residual removes its sign. It produces $e_i^2 = 0.8^2 = 0.6400$. The parameter scale is $p\mathrm{MSE} = 3 \times 0.25 = 0.7500$. Their ratio is $0.6400 / 0.7500 = 0.8533$.
-
Insert the residual scale and leverage into Cook's distance. This combines outcome miss and predictor unusualness rather than treating leverage alone as influence. It produces $D_i = 0.8533 \times \frac{0.28}{(1 - 0.28)^2} = 0.461$.
The month is a candidate for investigation, not an automatic deletion, because its predictor position is unusual enough to screen while Cook's distance measures possible fit movement.
Changed condition
The same retailer regression now has a lower leverage input for the highlighted month. All other inputs stay unchanged.
| Quantity | Original | Changed |
|---|---|---|
| Leverage $h_{ii}$ | 0.28 | 0.12 |
| Usual screen $2p/n$ | 0.2500 | 0.2500 |
| Cook's distance $D_i$ | 0.461 | 0.132 |
Before calculating, predict that Cook's distance will fall because the residual scale is unchanged and the leverage term is smaller. The observation now falls below the usual leverage screen, and the distance is $0.132$ rather than $0.461$. The diagnostic signal is weaker, although the point still deserves context. Before reading on, recompute $D_i$ from $h_{ii}=0.12$ and explain why it falls.
Common error
A candidate sees predictor values far from the sample center and calls the observation influential automatically. That feels right because an unusual independent-variable combination can pull the fitted regression. The giveaway is high leverage paired with a small residual and a modest Cook's distance, which signals an unusual point without material change to the fit.
Calculator
| Keys | Display |
|---|---|
| 0.8 × 0.8 = | 0.6400 |
| 3 × 0.25 = | 0.7500 |
| 0.6400 ÷ 0.7500 = | 0.8533 |
| 0.8533 × 0.28 ÷ (1 - 0.28)^2 CPT | 0.461 |
Check yourself
Practice
A retailer's ordinary least squares sample regression uses 24 monthly observations and 3 parameters including the intercept. Its MSE is 0.25 percentage-points-squared. Observation A has residual 0.8 percentage points and leverage 0.28.
Question 1
Using the usual leverage screen, what value should the analyst compare with observation A's leverage?
Question 2
How should observation A's leverage be classified against the screens?
Question 3
What is observation A's Cook's distance?
Question 4
What is the best action after these diagnostics?
Only the highlighted observation's leverage changes from 0.28 to 0.12. Which result follows?
Which observation has the greatest influence risk?
Revision snapshot
You use leverage $h_{ii}$ to ask whether an observation's independent-variable combination sits far from the rest. A high-leverage point is not automatically influential. Compare leverage with $2p/n$, then use $3p/n$ when you want the more conservative screen.
$$ D_i = \frac{e_i^2}{p\mathrm{MSE}}\frac{h_{ii}}{(1-h_{ii})^2} $$
Cook's distance asks whether the fitted regression moves materially when you include the observation. Investigate the point instead of deleting it automatically. The greatest influence risk comes from a large residual paired with high leverage. On the exam, use the supplied regression inputs to classify the observation or calculate Cook's distance.
Unlock the full lesson and continue reading
Signup to continue reading this lesson and unlimited access questions, flashcards, AI notes, and more