Author-reviewedEvidence: highv1.0.1

Cook's Distance

Cook's distance is a regression diagnostic measuring how much all fitted values change when one observation, such as one patient's cost record, is removed.

Status
Published, version 1.0.1
Last reviewed
10 Oct 2026, by Dr Darrin Baines
Report a problem
Tell us if something is wrong or out of date

Concept Architecture

Cook's Distance in Health Cost and Outcome Regressions

Cook's distance gives each record in a fitted regression one number, showing how far the fitted model would move if that record were left out. In health economics this matters because cost data are skewed and a few very expensive patients can shift a mean cost or a cost-effectiveness result. A flagged patient calls for investigation before any deletion, and when the record is valid the usual advice is to report the analysis with and without that patient.

Unusual outcomes, unusual predictors and influence

Three properties of an observation are often confused. An outlier has an outcome far from its predicted value, so its residual is large. An observation with unusual predictor values, such as a patient with far more chronic conditions than anyone else, has a large hat value. Influence is a third idea, the extent to which the fitted model itself changes when the observation is removed.

The three need not coincide. Penn State's regression course shows an outlying outcome with ordinary predictor values, and an extreme predictor value that follows the trend, each barely moving the fitted line, while a point that is both changes the estimates substantially. NIST's regression diagnostics guidance adds that points with unusual predictor values tend to have small residuals, so residual checks alone often miss them. Cook's distance combines the two features in one deletion-based measure.

Two equivalent ways to compute the statistic

The statistic is named after R. Dennis Cook, whose 1977 paper in Technometrics introduced it. The definition compares the fitted values from the full ordinary least squares fit with those from the same model refitted without observation ii. Squared differences are added across every observation and then scaled, as follows.

Di=∑j=1n(y^j−y^j(i))2p MSED_i = \frac{\sum_{j=1}^{n} \left(\hat{y}_j - \hat{y}_{j(i)}\right)^2}{p \, \mathrm{MSE}}

where DiD_i is Cook's distance for observation ii, nn is the number of observations, y^j\hat{y}_j is the fitted value for observation jj from the full model, y^j(i)\hat{y}_{j(i)} is the fitted value for observation jj after observation ii has been deleted and the model refitted, pp is the number of estimated coefficients including the intercept and MSE\mathrm{MSE} is the residual mean square of the full model. Since fitted values are the design matrix times the coefficients, the same quantity is also a scaled distance between the full and the deletion coefficient vectors, as the Stata documentation describes it.

No refitting is needed in practice. For a linear model fitted by least squares, the result can be written with quantities from the full fit alone, the form printed by NIST, Penn State and Stata.

Di=ei2p MSE⋅hii(1−hii)2D_i = \frac{e_i^2}{p \, \mathrm{MSE}} \cdot \frac{h_{ii}}{(1 - h_{ii})^2}

where ei=yi−y^ie_i = y_i - \hat{y}_i is the ordinary residual of observation ii, yiy_i is its observed outcome and hiih_{ii} is its hat value, the iith diagonal element of the hat matrix X(X⊤X)−1X⊤X(X^{\top}X)^{-1}X^{\top} with XX the design matrix, lying between 0 and 1. The second factor grows steeply as hiih_{ii} approaches 1, so a patient with a small residual can still have a large distance.

Why skewed cost data make influence a health economics question

Cost data in economic evaluation are usually skewed, with a minority of patients incurring very large costs. Thompson and Barber, writing in the BMJ on pragmatic trial costs, argue that despite this skew the arithmetic mean is the informative measure, because a total budget for treating all patients is the arithmetic mean multiplied by the number treated. Any single patient who moves the mean therefore moves the budget estimate as well.

A review of statistical methods for healthcare costs by Mihaylova and colleagues regards apparent cost outliers as part of the true distribution of costs. It recommends checking that answers are not unduly influenced by a few very large outlying costs, and cautions that log transformation and lognormal models may be non-robust to outliers. Cook's distance is a direct way to make that check for a regression.

The same reasoning extends to cost-effectiveness. Net-benefit regression, set out by Hoch, Briggs and Willan, uses the net benefit framework to place the cost-effectiveness problem within a standard regression, which opens it to established econometric techniques. When such a model is fitted by least squares, Cook's distance can show whether one participant's costs or outcomes are moving the fitted model, including the estimated treatment effect.

Worked example with six patients and one complex case

The data in this example are illustrative. Six patients in a disease registry have between 0 and 10 chronic conditions, and annual healthcare cost in GBP thousand is regressed on the number of conditions by ordinary least squares. The sixth patient has 10 conditions, far more than anyone else, and costs GBP 9,000.

Step 1. Fit the full model. The mean number of conditions is xˉ=20/6=3.333\bar{x} = 20/6 = 3.333 and the mean cost is yˉ=27/6=4.5\bar{y} = 27/6 = 4.5. The sums of squares and cross-products about the means are Sxx=63.33S_{xx} = 63.33 and Sxy=44S_{xy} = 44, so the slope and intercept are as follows.

β^1=4463.33=0.6947,β^0=4.5−0.6947×3.333=2.184\hat{\beta}_1 = \frac{44}{63.33} = 0.6947, \qquad \hat{\beta}_0 = 4.5 - 0.6947 \times 3.333 = 2.184

where β^1\hat{\beta}_1 is the estimated extra annual cost per additional condition in GBP thousand and β^0\hat{\beta}_0 is the estimated cost for a patient with no conditions. Each additional condition adds about GBP 695 a year. The residual sum of squares is 0.9316 on n−p=4n - p = 4 degrees of freedom, so MSE=0.9316/4=0.2329\mathrm{MSE} = 0.9316/4 = 0.2329.

Step 2. Compute residuals, hat values and distances. For a model with one predictor the hat value is hii=1/n+(xi−xˉ)2/Sxxh_{ii} = 1/n + (x_i - \bar{x})^2/S_{xx}. The results for all six patients are shown below.

PatientConditionsCost (GBP thousand)FittedResidualHat valueCook's distance
1022.184-0.1840.3420.058
2132.8790.1210.2530.014
3233.574-0.5740.1950.212
4354.2680.7320.1680.280
5454.9630.0370.1740.001
61099.132-0.1320.8681.864

For patient 6 the hat value and distance are as follows.

h66=16+(10−3.333)263.33=0.1667+0.7018=0.8684h_{66} = \frac{1}{6} + \frac{(10 - 3.333)^2}{63.33} = 0.1667 + 0.7018 = 0.8684

where h66h_{66} is the hat value of patient 6, 10 is that patient's number of conditions and 63.33 is SxxS_{xx}.

D6=(−0.1316)22×0.2329×0.8684(0.1316)2=0.86842×0.2329=1.864D_6 = \frac{(-0.1316)^2}{2 \times 0.2329} \times \frac{0.8684}{(0.1316)^2} = \frac{0.8684}{2 \times 0.2329} = 1.864

where 0.1316 is both the absolute residual and (1−h66)(1 - h_{66}) for this patient, so the two cancel. Patient 6 has a small residual yet by far the largest distance. Patient 4 has the largest residual, 0.732, but a distance of only 0.280 because that patient's number of conditions is close to the mean.

Step 3. Check by refitting without patient 6. The remaining five patients give xˉ=2\bar{x} = 2, yˉ=3.6\bar{y} = 3.6, Sxx=10S_{xx} = 10 and Sxy=8S_{xy} = 8, so the slope becomes 0.8 and the intercept β^0(6)=3.6−0.8×2=2.0\hat{\beta}_{0(6)} = 3.6 - 0.8 \times 2 = 2.0. The reduced model predicts y^6(6)=2.0+0.8×10=10.0\hat{y}_{6(6)} = 2.0 + 0.8 \times 10 = 10.0 for patient 6, against an observed 9, so the full model had been pulled most of the way towards that patient. The squared changes in the six fitted values sum to 0.8684, and dividing by 0.4658 again gives 1.864.

Step 4. Interpret the result. Removing patient 6 raises the estimated cost of each additional condition from GBP 695 to GBP 800 a year and lowers the sample mean cost from GBP 4,500 to GBP 3,600. Patient 6 is also the only evidence about costs above four conditions, so without that patient any prediction for complex patients would rest on extrapolation of a line fitted to simpler cases. The estimate depends on one record, which is not the same as that record being wrong.

Reading the size of the value

Several cut-offs are in circulation, and they do not agree. Each is a screening rule for deciding which records to examine, not a test that a record is invalid.

  • Penn State's course treats a value above 0.5 as worth further investigation, a value above 1 as quite likely influential, and a value that stands well apart from the rest as almost certainly influential.
  • Stata's regress documentation, following Bollen and Jackman, suggests examining values above 4 divided by nn, which for the example is 0.667.
  • NIST and Penn State relate the value to the F distribution with pp and n−pn - p degrees of freedom. A value near or above the 50th percentile indicates substantial influence, and one below about the 10th or 20th percentile indicates little. In the example, 1.864 lies at about the 73rd percentile of F with 2 and 4 degrees of freedom.

Every rule flags patient 6 alone. In large data sets 4 divided by nn becomes tiny and flags many records, while a threshold of 1 may flag none. Within wider model diagnostics, the better test is whether the decision-relevant estimate moves when the records that stand apart are omitted.

What an analyst should do with an influential patient

A flagged record calls for investigation, with deletion only one outcome. Penn State's recommended strategy begins with errors. A data entry error should be corrected, a record from outside the intended study population or invalidated by a procedural error may be removed, and no point should be deleted merely because it does not fit the preferred model.

The next question is whether the model is wrong for the data. An omitted predictor, a missing interaction or an unmodelled nonlinear relation can make valid patients look influential; in the example, a cost curve that steepens with many conditions might fit patient 6 without strain. Any change of model should follow the scientific question, not a wish to make the diagnostic disappear.

When the patient is valid and the answer depends on that patient, Penn State recommends analysing the data with and without the point and reporting both, which in an economic evaluation is a sensitivity analysis on influential records. Dropping a genuinely expensive patient because the patient changes a cost-effectiveness conclusion would change the population the estimate describes.

Beyond ordinary least squares

The formulas above apply to ordinary least squares. Cost models are often fitted instead as a generalised linear model, commonly with a log link and a gamma specification, where the deletion idea has to be approximated. R's stats documentation states that its values for such models are approximations following Williams that can be poor when some cases have large influence, so a direct refit without the flagged patients is a sensible check.

Grouped data differ. Patients clustered within hospitals, as in a hierarchical model, can be influential as a group, and deleting one patient asks a different question from deleting a whole hospital. Single-case deletion has a related blind spot, since with two similar extreme patients, removing either alone leaves the other to hold the fit in place.

Cook's distance beside related diagnostics

Each regression diagnostic answers a narrower question, so Cook's distance is best read with the others. The table shows the division.

DiagnosticQuestion it answers
Standardised residualIs this outcome far from its fitted value, relative to typical residual variation
Hat valueAre this observation's predictor values unusual for the design
DFFITSHow much does this observation's own fitted value change when it is deleted
DFBETASHow much does each individual coefficient change when the observation is deleted
Cook's distanceHow much do all fitted values, or the whole coefficient vector, change together
Collinearity diagnosticsAre predictors so closely related that coefficients are unstable, a design problem

NIST describes DFBETA as similar to Cook's distance except that it assesses influence on each individual parameter rather than on the parameters as a whole. In a cost regression where only the treatment coefficient matters for the decision, DFBETAS for that coefficient is often the more relevant check, and Cook's distance serves as the overall screen.

Limitations and common misreadings

A large Cook's distance shows that the fitted model is sensitive to one record under its current specification. It does not show that the record is an error or should be excluded. Small distances for every patient do not establish a correct model either, since a wrong functional form, unmodelled clustering or selection bias can leave each distance modest.

The statistic is tied to the fitted model and sample, so computing it on different rows from the reported analysis gives misleading values. The rules of thumb have no calibrated error rates. They pick records for scrutiny, and the decision about each record rests on its provenance and its effect on the estimate that informs the decision.

Sources

Library

Publications

3
  • Other

    STAT 501 Regression Methods, Lesson 11 Influential Points, sections 11.5 and 11.7 — Penn State Eberly College of Science, Web page, accessed 10 October 2026 ed., 2026 (Penn State Eberly College of Science)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Cook's Distance, where it is cited as a reference for that concept.

  • Journal article

    Detection of influential observation in linear regression — Cook RD, Vol. 19, No. 1, pp. 15-18 ed., 1977 (Technometrics)

    Journal article listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Cook's Distance, where it is cited as a reference for that concept.

  • Book

    Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)

    A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.

Tools & Resources

2
  • Other

    Dataplot Reference Manual, Regression Diagnostics — NIST, 2023 (NIST)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Cook's Distance, where it is cited as a reference for that concept.

  • Other

    influence.measures: Regression Deletion Diagnostics — R Core Team, Version 4.6.1 ed., 2026 (R documentation, stats package)

    Source listed in the Sources of the HealthEconomics.wiki Concept Architecture article on Cook's Distance, where it is cited as a reference for that concept.

Frequently Asked Questions (6)

  • What is Cook's distance?

    Cook's distance is a regression diagnostic measuring how much all fitted values change when one observation, such as one patient's cost record, is removed.

    Source: Penn State Eberly College of Science 2026

  • What does Cook's distance identify in a regression?

    Cook's distance identifies observations that exert an outsized influence on a regression's estimated coefficients, by measuring how much the fitted model would shift if a given point were removed. A large value marks a case that, on its own, pulls the results noticeably, whether because it is extreme in its predictors, its outcome, or both. Flagging such points prompts a check of whether they are errors, genuine outliers, or unduly shaping the conclusions. Spotting overly influential observations is its purpose. Kirkwood and Sterne (2003) describe this diagnostic.

    Source: Kirkwood & Sterne 2003

  • How is Cook's distance calculated?

    Cook's distance for an observation is calculated from the change in all the fitted values that results from omitting that observation, scaled by the number of parameters and the error variance; equivalently, it combines the observation's residual with how far its predictor values lie from the others, so that a point with both a large residual and unusual predictor values receives a large Cook's distance. So Cook's distance is calculated as a summary of how much the fitted values shift when a case is removed, integrating the size of its residual and how extreme its predictor values are into one measure, which allows the overall influence of each observation on the regression to be quantified and compared.

    Source: Cook 1977

  • How is Cook's distance interpreted?

    Cook's distance is interpreted by its size relative to the other observations and to rough thresholds, with larger values indicating greater influence; observations with notably high Cook's distance are examined as potentially influential. Various rule-of-thumb cut-offs exist, but these are guides rather than strict rules. So Cook's distance is interpreted by flagging observations whose values are large compared with the rest, marking them as influential cases warranting scrutiny, and rather than automatically removing such points, the analyst investigates why they are influential, since a high Cook's distance signals that a single observation is strongly affecting the regression results.

    Source: Cook 1977

  • Why is Cook's distance useful?

    Cook's distance is useful because a single influential observation can distort a regression, pulling the estimated coefficients and fitted values, and identifying such points allows the analyst to check whether the results depend unduly on a few cases. This supports robust and honest modelling. So Cook's distance is useful for detecting observations that exert excessive influence on a regression, prompting investigation of whether they are errors, unusual but valid cases, or points that unduly drive the conclusions, which helps ensure that a fitted model reflects the general pattern in the data rather than being dominated by a small number of influential observations.

    Source: Cook 1977

  • What should be done about influential observations identified by Cook's distance?

    Observations flagged by Cook's distance should be investigated rather than automatically deleted: the analyst checks whether they result from data errors, represent unusual but legitimate cases, or reveal model inadequacy, and considers the sensitivity of conclusions to their inclusion. Removal is justified only for genuine errors or with clear rationale. So influential observations identified by Cook's distance are examined to understand why they are influential and how much they affect the results, with the response depending on the cause, since discarding valid data merely because it is influential can bias the analysis, whereas retaining an erroneous point can distort it.

    Source: Cook & Weisberg 1982

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 10 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-ES-SA-036
Wikidata
Q5166872

Stable URI · Machine-readable · Resolvable · CC BY 4.0