Skip to main content

Cook's distance

Cook's distance measures how much all fitted regression coefficients change when one observation is deleted, combining leverage and residual size. Values exceeding 1, or the more conservative 4/n, flag potentially influential observations.

ByHoang TruongUpdated

FrameworkInfluential observations

See it move

Loading infographic...

Cook's distance measures how much every fitted coefficient would shift if one observation were dropped, combining that point's leverage with the size of its residual into a single influence score. A value of Dᵢ above 1 — or the stricter 4 divided by n — flags a point worth investigating rather than deleting automatically, since it may reveal a genuine pattern the model is missing.

Where it fits
SubjectData Analysis & StatisticsAdvancedTopicRegression Diagnostics & ProblemsAdvanced

The formula

LaTeX
Di=(y^(i)y^)(y^(i)y^)pMSED_i = \frac{(\hat{\mathbf{y}}_{(-i)} - \hat{\mathbf{y}})^\top(\hat{\mathbf{y}}_{(-i)} - \hat{\mathbf{y}})}{p \cdot \text{MSE}}

Variables

Cook's distance for observation i (dimensionless)
n-vector of fitted values from the model estimated without observation i (units of y)
n-vector of fitted values from the full model (units of y)
number of parameters in the model including the intercept (dimensionless)
mean squared error from the full model ((units of y)²)

Observations with Dᵢ > 1, or the more conservative threshold Dᵢ > 4/n, are flagged as potentially influential. High influence combines high leverage with a large residual.