Cook's Distance Calculator

Inputs

Cook's distance0.0959
Cutoff 4/n0.0333
High-leverage gauge 2p/n0.0667
Influence readInfluential - above the 4/n cutoff
How this was calculated
  1. Inputs: studentized residual 2.10, leverage 0.0800, 4 fitted parameters, 120 observations.
  2. Cook's distance combines how wrong the point is with how much pull it has: D = (r^2 / p) x (h / (1 - h)) = (4.4100 / 4) x (0.0800 / 0.9200) = 0.0959.
  3. The working cutoff is 4/n = 0.0333, and leverage above 2p/n = 0.0667 is flagged as high - this point's leverage of 0.0800 clears that gauge.
  4. Cook's distance: 0.0959 - influential - above the 4/n cutoff; influence is a prompt to inspect the point, not to delete it automatically.

Every regression has points that quietly steer it. Cook's distance measures that steering: how much the fitted values would move if a single observation were deleted and the model refitted. Enter the observation's studentized residual, its leverage, the number of fitted parameters and the sample size, and the calculator returns the distance with the standard cutoffs.

R. Dennis Cook introduced the measure in 1977, and it remains the first influence diagnostic most analysts check - because it combines the two ways a point can dominate a fit: being wrong, and being positioned to matter.

Worked examples

Large residual at high leverage

(2.1 · 0.08 · 4 · 120)

Cook's distance0.0959
Cutoff 4/n0.0333
High-leverage gauge 2p/n0.0667
Influence readInfluential - above the 4/n cutoff

Quiet point, no influence

(0.8 · 0.03 · 3 · 200)

Cook's distance0.0066
Cutoff 4/n0.0200
High-leverage gauge 2p/n0.0300
Influence readNot influential by the 4/n rule

Strong influence in a small sample

(3.2 · 0.15 · 5 · 85)

Cook's distance0.3614
Cutoff 4/n0.0471
High-leverage gauge 2p/n0.1176
Influence readInfluential - above the 4/n cutoff

Residual times leverage: the two ingredients

A point influences a regression through the product of two things: how far it sits from the model's prediction (its residual) and how much pull its position in the predictor space gives it (its leverage, the hat value). Either alone is survivable; the product is what Cook's distance prices.

The first worked example has a studentized residual of 2.10 and leverage 0.0800, in a model with 4 parameters fitted to 120 observations. The formula gives D = 0.0959. Neither ingredient is extreme, but the residual is large and the leverage clears the high-leverage gauge, so the point earns inspection.

The quiet second example, D = 0.0066, shows the normal case: an ordinary residual at ordinary leverage in a sample of 200, moving the fit by almost nothing when deleted.

  • D combines the squared studentized residual with the leverage ratio h / (1 - h).
  • Leverage depends only on the predictors; the residual only on the response's fit.
  • Influence is a prompt to inspect a point, never by itself a reason to delete it.

The 4/n cutoff and the D > 1 rule

Two conventions compete. The older rule flags D above 1 as serious. The more common working rule scales with the data: flag D above 4/n. For the first example that cutoff is 0.0333, and the point's 0.0959 clears it comfortably; for the second example the cutoff is 0.0200 against a distance of 0.0066, so nothing is flagged.

The 4/n rule flags more points as samples grow, which is the right direction - in a large sample, a point needs less individual influence to deserve a look. But it also means flagged counts are not comparable across studies with different n.

The leverage gauge printed alongside is 2p/n: leverage above it is conventionally 'high'. The first example's leverage of 0.0800 exceeds its gauge of 0.0667, while the third example's leverage clears its gauge of 0.1176 as well - both flagged points are high-leverage points, not merely badly fitted ones.

ExampleDCutoff 4/nGauge 2p/nRead
First0.09590.03330.0667Influential - above the 4/n cutoff
Second0.00660.02000.0300Not influential by the 4/n rule
Third0.36140.04710.1176Influential - above the 4/n cutoff

Worked examples

Example 1: Studentized residual 2.1; Leverage (hat value) 0.08; Fitted parameters p 4; Observations n 120. Cook's distance = 0.0959. Supporting values: Cutoff 4/n 0.0333; High-leverage gauge 2p/n 0.0667; Influence read Influential - above the 4/n cutoff. Inputs: studentized residual 2.10, leverage 0.0800, 4 fitted parameters, 120 observations. Cook's distance combines how wrong the point is with how much pull it has: D = (r^2 / p) x (h / (1 - h)) = (4.4100 / 4) x (0.0800 / 0.9200) = 0.0959. The working cutoff is 4/n = 0.0333, and leverage above 2p/n = 0.0667 is flagged as high - this point's leverage of 0.0800 clears that gauge. Cook's distance: 0.0959 - influential - above the 4/n cutoff; influence is a prompt to inspect the point, not to delete it automatically.

Example 2: Studentized residual 0.8; Leverage (hat value) 0.03; Fitted parameters p 3; Observations n 200. Cook's distance = 0.0066. Supporting values: Cutoff 4/n 0.0200; High-leverage gauge 2p/n 0.0300; Influence read Not influential by the 4/n rule. Inputs: studentized residual 0.80, leverage 0.0300, 3 fitted parameters, 200 observations. Cook's distance combines how wrong the point is with how much pull it has: D = (r^2 / p) x (h / (1 - h)) = (0.6400 / 3) x (0.0300 / 0.9700) = 0.0066. The working cutoff is 4/n = 0.0200, and leverage above 2p/n = 0.0300 is flagged as high - this point's leverage of 0.0300 sits under that gauge. Cook's distance: 0.0066 - not influential by the 4/n rule; influence is a prompt to inspect the point, not to delete it automatically.

Example 3: Studentized residual 3.2; Leverage (hat value) 0.15; Fitted parameters p 5; Observations n 85. Cook's distance = 0.3614. Supporting values: Cutoff 4/n 0.0471; High-leverage gauge 2p/n 0.1176; Influence read Influential - above the 4/n cutoff. Inputs: studentized residual 3.20, leverage 0.1500, 5 fitted parameters, 85 observations. Cook's distance combines how wrong the point is with how much pull it has: D = (r^2 / p) x (h / (1 - h)) = (10.2400 / 5) x (0.1500 / 0.8500) = 0.3614. The working cutoff is 4/n = 0.0471, and leverage above 2p/n = 0.1176 is flagged as high - this point's leverage of 0.1500 clears that gauge. Cook's distance: 0.3614 - influential - above the 4/n cutoff; influence is a prompt to inspect the point, not to delete it automatically.

Cook's distance against DFFITS and DFBETAS

Cook's distance is a summary: one number per point for the whole fit. Its cousins decompose it. DFFITS measures the change in the point's own fitted value; DFBETAS measures the change in each individual coefficient, which is what you want when the question is whether one point is manufacturing a particular slope.

The third worked example, D = 0.3614, is the profile where the decomposition earns its keep: a large residual at high leverage in a sample of only 85. Before reporting the regression, an analyst should know which coefficients that point is moving and by how much.

A point can have a huge residual and no influence (low leverage), or perfect fit and high influence (it is dragging the line through itself). Cook's distance is the standard tool precisely because it refuses to confuse the two.

Inspect, don't auto-delete

The correct response to a flagged point is a sequence of questions. Is the value a data-entry or measurement error? Is the observation from a subpopulation the model should not cover? Does the conclusion survive with the point included but the model respecified - a transformation, an added term? Only the first answer licenses deletion outright.

Report what you did. A regression whose headline coefficient depends on deleting two unexamined points is fragile, and Cook's distance is exactly the audit trail that shows it. Sensitivity reporting - results with and without flagged points - is the professional standard.

Getting the inputs from your software

Every major statistics package reports studentized residuals and hat values per observation; the parameter count p includes the intercept, and n is the number of observations actually used in the fit, after any missing-data deletions. Use the internally studentized residual your package prints by default unless you have a reason to prefer the externally studentized version, and be consistent across points.

Enter leverage as the hat value itself, a number between 0 and 1 - not as a percentage. A quick sanity check: hat values average p/n across the sample, so a leverage near that average is ordinary by construction.

The diagnostic generalises beyond ordinary least squares. Logistic regression, Poisson models and mixed models all have Cook-type distances, computed from the same idea - approximate the change in fitted values or coefficients when a case is removed, using one-step updates rather than full refits. The interpretations carry over, including the caution: in a logistic model, a flagged point is often a perfectly real observation in a sparse region of the predictor space, and deleting it deletes the only evidence about that region.

In practice, influence analysis is a plot before it is a number: an index plot of Cook's distance across all observations shows at a glance whether influence is concentrated in one or two points or smeared across many. The concentrated case is the actionable one - a handful of points like the third example's 0.3614 standing clear of a crowd near zero. The smeared case usually means the model is misspecified for a whole subgroup, and no amount of point deletion fixes a structural problem.

It is worth stating plainly what a clean Cook's-distance bill does and does not establish. It establishes that no single observation is quietly manufacturing the fit - that the conclusions are the dataset's, not one point's. It does not establish that the model is right: a misspecified model can fit uninfluentially and wrongly, with every point pulling its weight toward a distorted answer. Influence diagnostics audit the data's leverage over the model; specification tests audit the model's claim on the data. A careful analysis runs both, and reports both, because each catches failures the other is blind to.

FAQs

What distance does the first example give?

The first example gives a Cook's distance of 0.0959 - a studentized residual of 2.10 combined with leverage of 0.0800 in a 120-observation fit. It is above its cutoff and worth inspecting.

What is the first example's 4/n cutoff?

The first example's 4/n cutoff is 0.0333, from 4 divided by 120 observations. The point's distance of 0.0959 is nearly three times it.

What is the first example's leverage gauge?

The first example's high-leverage gauge (2p/n) is 0.0667. The point's actual leverage of 0.0800 clears it, so the point is influential partly because of where it sits.

What distance does the quiet second example give?

The quiet second example gives 0.0066, well under its 0.0200 cutoff. Deleting that point would move the fitted values by a negligible amount.

What distance does the third example give?

The third example gives 0.3614 - a large residual at high leverage in a small sample. It is the strongest influence signal of the three examples.

What is the third example's cutoff?

The third example's 4/n cutoff is 0.0471, from 4 divided by 85 observations. Its distance exceeds the cutoff by a wide margin.

Sources

Related calculators

Linear Regression Calculator
The least-squares line through up to six points — slope, intercept, correlation r and R², with the equation ready to use.
Variance Inflation Factor (VIF) Calculator
Variance inflation factor and tolerance of a regression predictor from the R-squared of its auxiliary regression on the other predictors, with standard error inflation.
Durbin-Watson Statistic Calculator
The Durbin-Watson statistic for first-order autocorrelation in regression residuals, from eight residuals in time order, with the implied lag-1 autocorrelation.