Statistics

Cook’s Distance

Students lift a paper observation from a chart and compare two fitted lines.

Cook’s Distance definition

Cook’s distance measures how much an observation influences the fitted values of a regression.

In Spanish
distancia de Cook
Topic
Regression and model diagnostics

Cook’s Distance in a picture

Cook’s Distance diagramSuppose the sum of squared fitted changes is 6, p = 2, and MSE = 3. Cook’s distance is 1.Squared fitted changes sum to 6Compare predictions at all original inputsScale by p × MSE = 2 × 3Use p and MSE from the full fitCook’s distance = 1The diagnostic is nonnegative
Suppose the sum of squared fitted changes is 6, p = 2, and MSE = 3. Cook’s distance is 1.

How it works

For an ordinary least-squares fit, compare the fitted values at every original design point before and after removing one observation. Cook’s distance sums those squared changes and divides by p × MSE, using the full-fit mean squared error and the number p of fitted coefficients including the intercept. Larger values signal more influence on the fitted values.

Worked examples

Find Cook’s distance when the squared changes sum to 2, p = 2, and MSE = 4.

2/(2 × 4) = 0.25.

What is Cook’s distance if no fitted values change and MSE is positive?

0.

What should a large Cook’s distance prompt?

Inspect the point and compare fits. The context determines how to handle it.

Common mistake

Cook’s distance looks at changes across all fitted values. A single large ordinary residual is a different diagnostic.

Quick check

What does a large Cook’s distance suggest?

Does Cook’s distance have negative values?

Show answer

No. It uses squared changes and a positive scale when defined.

Which fit supplies MSE in the standard definition?

Show answer

The full regression fit.

Sources

Flashcard

Cook’s Distance

Reveal the definition

Cook’s distance measures how much an observation influences the fitted values of a regression.

Effortless Math. “Cook’s Distance.” Math Dictionary.