Skip to content
Omnikalc

Cook's distance calculator: does one point drive your regression?

Enter an observation's residual and leverage with the model's parameters, MSE and sample size to get Cook's distance, the standardized residual and the usual cut-offs.

Updated on
Your inputs

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Results

Cook's distance

0.3611

Potentially influential: check the point
Standardized (internal) residual
2.221
Common cut-off for Cook's distance (4 ÷ n)
0.1000
Leverage cut-off (2 × p ÷ n)
0.1500
Leverage of the observation
0.180
High leverage point

Cook’s distance shows whether one observation has an outsized effect on a regression. The Cook’s distance calculator takes the residual, the leverage, the number of parameters, the mean squared error and the number of observations, and gives Cook’s distance, the standardized residual and the usual cut-offs for distance and leverage.

How the calculation works

  • Fit the regression and note, for the observation you are checking, its residual e, its leverage h (the diagonal of the hat matrix), the number of parameters p and the mean squared error (MSE).
  • Cook’s distance is D = e² ÷ (p × MSE) × h ÷ (1 − h)². It combines how badly the point fits (the residual) with how much pull it has (the leverage).
  • The standardized residual is e ÷ √(MSE × (1 − h)). It tells how large the residual is in standard deviations.
  • Common rules of thumb flag a point when D is above 4 ÷ n and treat it as very influential when D is above 1. A leverage above 2 × p ÷ n marks a point far from the others in x.

Example

In a model with p = 3 parameters fitted to n = 40 points, with MSE = 9.5, one point has a residual of 6.2 and a leverage of 0.18. Cook’s distance is 38.44 ÷ 28.5 × 0.18 ÷ 0.6724 = 0.361. The standardized residual is 2.221. The cut-off 4 ÷ n is 0.1, so the point is potentially influential, and its leverage is above the cut-off of 0.15.

Why it matters

A single odd point can tilt a regression line and change a conclusion. Statistical software prints Cook’s distance for every point, and this calculator lets you check a value by hand, understand where it comes from or work from the numbers in a report.

Good to know

The cut-offs are rules of thumb and not tests, and the 4 ÷ n rule flags more points as n shrinks. The leverage and residual must come from the same fitted model, and the residual is the raw residual, not a standardized one. For models with many predictors, look at the plot of all distances together.

The linear regression calculator fits a simple model, and the r-squared calculator measures how well it explains the data.

Frequently asked questions

What does Cook's distance measure?

It measures how much the fitted values of the regression change when one observation is removed. A large value means that the point has a big effect on the results, either because it has an unusual x value, a large residual, or both.

What is the difference between leverage and influence?

Leverage describes how far a point's x is from the other x values, so it has the potential to pull the line. Influence is the actual effect. A high-leverage point that lies on the line of the other points has little influence, and Cook's distance captures this by combining leverage and residual.

Which cut-off should I use?

There is no single rule. Some analysts flag points above 1, others use 4 divided by n, and others compare each point with the rest on a plot. Treat a flag as a reason to look at the observation, not as an automatic reason to delete it.

What should I do with an influential point?

Check first for a data entry error or a unit mistake. If the data are real, report the model with and without the point, and consider whether it belongs to a different group or needs a different model. Deleting a point just because it is awkward is poor practice.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.