VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Cook’s Distance, Regression Influence, Leverage and Residuals

Why is mathematics important when one data point can change an entire regression model? Cook’s distance combines residual size and leverage to estimate how strongly deleting one observation could shift all fitted coefficients together.

It is a diagnostic invitation, not an automatic deletion rule. A large value asks us to inspect the record, data-generating process and model.

Did you know? A point can have a modest residual yet still be influential when it sits far from the centre of the predictor space.

Full chapter index

Chapters 1–4 · Understand the question
  1. The influence question
  2. The NIST definition
  3. A worked example
  4. Why residual and leverage interact
Chapters 5–9 · Reproduce the example
  1. What p means
  2. What MSE means
  3. High leverage is not automatically influential
  4. A large residual is not automatically influential
  5. No universal deletion threshold
Chapters 10–15 · Check assumptions
  1. Case-deletion thinking
  2. Data-error investigation
  3. Model-misspecification investigation
  4. Clusters and repeated data
  5. Extrapolation
  6. Robust regression
Chapters 16–20 · Explore applications
  1. Visual workflow
  2. Spreadsheet workflow
  3. Coding workflow
  4. Applications and careers
  5. Connection to recent mathematics articles
Chapters 21–24 · Study and verify
  1. Guidance for students and parents
  2. Practice questions
  3. Frequently asked questions
  4. Useful next reading

CHAPTER 1 OF 24 · Understand the question

1. The influence question

Back to contents

Regression fits a model using all observations. Influence asks how much that fitted model depends on one case. Cook’s distance summarises the combined movement of the coefficient vector when a case is removed.

Contents · Next chapter

CHAPTER 2 OF 24 · Understand the question

2. The NIST definition

Back to contents

NIST gives Cook’s distance as residual squared divided by p times MSE, multiplied by h_ii/(1−h_ii)². Here p is the number of fitted parameters and h_ii is leverage. Read the NIST regression-diagnostics reference.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 24 · Understand the question

3. A worked example

Back to contents

Let residual e=4, p=3, MSE=4 and leverage h=0.20. The residual factor is 16/(3×4)=1.3333. The leverage factor is 0.20/0.80²=0.3125. Cook’s distance is 0.4167.

ResidualpMSELeverage
4340.2
Cook-distance inputs.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 24 · Understand the question

4. Why residual and leverage interact

Back to contents

A large residual says the model misses the observed response. High leverage says the predictor pattern can pull the fitted surface. Cook’s distance becomes large when both ingredients matter.

Residual factorLeverage factorD
1.33330.31250.4167
Cook-distance calculation.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 24 · Reproduce the example

5. What p means

Back to contents

The parameter count includes the intercept when one is fitted. Changing p changes the scale of the diagnostic. Compare values only under the stated model.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 24 · Reproduce the example

6. What MSE means

Back to contents

Mean square error estimates typical residual variance. If the fit is noisy, a residual of four units may be ordinary; if the fit is precise, it may be exceptional.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 24 · Reproduce the example

7. High leverage is not automatically influential

Back to contents

NIST distinguishes leverage from influence. A high-leverage point lying close to the fitted model can have a small residual and limited Cook’s distance.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 24 · Reproduce the example

8. A large residual is not automatically influential

Back to contents

A response outlier near the centre of predictor space may have low leverage. It can still matter, but its effect on all coefficients may be smaller than its vertical error suggests.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 24 · Reproduce the example

9. No universal deletion threshold

Back to contents

Rules such as 4/n are screening conventions, not laws. Sample size, model complexity and domain consequences matter. Compare cases, plots and refits.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 24 · Check assumptions

10. Case-deletion thinking

Back to contents

The diagnostic approximates the change produced by deleting one case. Refit the model without a flagged point to see which coefficients, predictions and conclusions actually move.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 24 · Check assumptions

11. Data-error investigation

Back to contents

Check units, transcription, sensor status, duplicate records and coding. Correct verified errors with an audit trail. A genuine unusual observation should not be erased because it is inconvenient.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 24 · Check assumptions

12. Model-misspecification investigation

Back to contents

Influence can signal missing curvature, interaction, subgroup structure or changing variance. A better model may explain the point without excluding it.

Contents · Previous chapter · Next chapter

CHAPTER 13 OF 24 · Check assumptions

13. Clusters and repeated data

Back to contents

Deleting one row is not enough when rows belong to one person, school or device. Cluster-level influence diagnostics may better match the sampling unit.

Contents · Previous chapter · Next chapter

CHAPTER 14 OF 24 · Check assumptions

14. Extrapolation

Back to contents

High-leverage points often occur at unusual predictor combinations. Predictions near them may rely heavily on sparse evidence. Mark the supported range of the model.

Contents · Previous chapter · Next chapter

CHAPTER 15 OF 24 · Check assumptions

15. Robust regression

Back to contents

Robust methods can reduce sensitivity to response outliers, but they do not solve every leverage problem. Compare results and explain the changed loss function.

Contents · Previous chapter · Next chapter

CHAPTER 16 OF 24 · Explore applications

16. Visual workflow

Back to contents

Plot Cook’s distance by observation, residuals against fitted values and leverage against studentized residuals. Label cases rather than hiding them.

Contents · Previous chapter · Next chapter

CHAPTER 17 OF 24 · Explore applications

17. Spreadsheet workflow

Back to contents

For a fitted model, calculate residual, MSE, parameter count and leverage, then evaluate the formula row by row. Verify leverage came from the same design matrix.

Contents · Previous chapter · Next chapter

CHAPTER 18 OF 24 · Explore applications

18. Coding workflow

Back to contents

Use tested regression-diagnostic functions. Return case IDs, Cook’s distance, leverage, studentized residuals and DFFITS so the investigation is reproducible.

Contents · Previous chapter · Next chapter

CHAPTER 19 OF 24 · Explore applications

19. Applications and careers

Back to contents

Influence diagnostics support engineering calibration, economics, education research, quality control and machine learning model checking. Analysts use them to find fragile conclusions.

Contents · Previous chapter · Next chapter

CHAPTER 20 OF 24 · Explore applications

20. Connection to recent mathematics articles

Back to contents

The weighted-variance guide explains squared residual contributions. The Hedges’ g guide shows why standardisation needs a clear denominator.

Contents · Previous chapter · Next chapter

CHAPTER 21 OF 24 · Study and verify

21. Guidance for students and parents

Back to contents

Students should calculate the two factors separately and write an investigation plan. Parents can ask whether a flagged point is wrong, rare or evidence that the model is incomplete.

Contents · Previous chapter · Next chapter

CHAPTER 22 OF 24 · Study and verify

22. Practice questions

Back to contents

  • Recalculate with h=0.50.
  • Hold h fixed and double the residual.
  • Explain why deleting every large Cook value can bias a study.

Contents · Previous chapter · Next chapter

CHAPTER 23 OF 24 · Study and verify

23. Frequently asked questions

Back to contents

### Is Cook’s distance a probability? No. It is a scaled influence measure.

### Does a large value prove an error? No. It identifies a case worth investigation.

### Can a point have high leverage and low Cook’s distance? Yes, when its residual is small.

Contents · Previous chapter · Next chapter

CHAPTER 24 OF 24 · Study and verify

24. Useful next reading

Back to contents

Continue through the Mathematics Learning Hub and compare Cook’s distance, DFFITS and DFBETAs on one fitted dataset.

Contents · Previous chapter · Mathematics Learning Hub

Extended practice laboratory

Practice case 1: Fit the original model

Setup: Use the article’s Cook-distance example and change one declared input for case 1. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 2: Record case identifier

Setup: Use the article’s Cook-distance example and change one declared input for case 2. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 3: Calculate raw residual

Setup: Use the article’s Cook-distance example and change one declared input for case 3. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 4: Square the residual

Setup: Use the article’s Cook-distance example and change one declared input for case 4. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 5: Count fitted parameters

Setup: Use the article’s Cook-distance example and change one declared input for case 5. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 6: Calculate MSE

Setup: Use the article’s Cook-distance example and change one declared input for case 6. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 7: Record leverage

Setup: Use the article’s Cook-distance example and change one declared input for case 7. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 8: Calculate residual factor

Setup: Use the article’s Cook-distance example and change one declared input for case 8. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 9: Calculate leverage factor

Setup: Use the article’s Cook-distance example and change one declared input for case 9. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 10: Multiply to Cook distance

Setup: Use the article’s Cook-distance example and change one declared input for case 10. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 11: Double the residual

Setup: Use the article’s Cook-distance example and change one declared input for case 11. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 12: Increase leverage

Setup: Use the article’s Cook-distance example and change one declared input for case 12. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 13: Compare 4 over n screen

Setup: Use the article’s Cook-distance example and change one declared input for case 13. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 14: Plot all cases

Setup: Use the article’s Cook-distance example and change one declared input for case 14. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 15: Refit without case

Setup: Use the article’s Cook-distance example and change one declared input for case 15. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 16: Compare coefficients

Setup: Use the article’s Cook-distance example and change one declared input for case 16. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 17: Compare predictions

Setup: Use the article’s Cook-distance example and change one declared input for case 17. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 18: Check transcription

Setup: Use the article’s Cook-distance example and change one declared input for case 18. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 19: Check units

Setup: Use the article’s Cook-distance example and change one declared input for case 19. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 20: Inspect model shape

Setup: Use the article’s Cook-distance example and change one declared input for case 20. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 21: Inspect clusters

Setup: Use the article’s Cook-distance example and change one declared input for case 21. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 22: Compare DFFITS

Setup: Use the article’s Cook-distance example and change one declared input for case 22. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 23: Avoid automatic deletion

Setup: Use the article’s Cook-distance example and change one declared input for case 23. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.

Practice case 24: Write an influence conclusion

Setup: Use the article’s Cook-distance example and change one declared input for case 24. Task: Recalculate from raw values, preserve units and state which mathematical or design condition changed.

Check: Check the relevant invariant, separate the number from its claim, and name the next diagnostic or source of evidence. Rebuild the relevant counts before interpreting the coefficient, preserve the stated design, and write one sentence separating the numerical result from the claim it can support. Then vary one defensible assumption, calculate again, and explain whether the conclusion changes because of new data, a new reference model, or a new decision purpose. Finish by naming the unit, tolerance, and evidence needed for transfer. Record one graph or table that would expose failure hidden by the summary.