Mathwords logoMathwords

Jackknife — Definition, Formula & Example

The jackknife is a resampling method that recomputes a statistic many times, leaving out one data point each time. How much those recomputed values shift tells you how biased and how variable the original estimate is.

Let θ^=T(x1,…,xn)\hat\theta = T(x_1, \dots, x_n) be an estimator. The ii-th jackknife replicate θ^(i)\hat\theta_{(i)} is TT applied to the n−1n-1 observations left after removing xix_i. Let θˉ(⋅)=1n∑i=1nθ^(i)\bar\theta_{(\cdot)} = \frac{1}{n}\sum_{i=1}^{n} \hat\theta_{(i)}. The jackknife bias estimate is (n−1)(θˉ(⋅)−θ^)(n-1)(\bar\theta_{(\cdot)} - \hat\theta). The jackknife standard error is n−1n∑i=1n(θ^(i)−θˉ(⋅))2\sqrt{\frac{n-1}{n}\sum_{i=1}^{n}(\hat\theta_{(i)} - \bar\theta_{(\cdot)})^2}.

Key Formula

bias^=(n−1)(θˉ(⋅)−θ^),θ^jack=θ^−bias^=nθ^−(n−1)θˉ(⋅)\widehat{\text{bias}} = (n-1)\left(\bar\theta_{(\cdot)} - \hat\theta\right), \qquad \hat\theta_{\text{jack}} = \hat\theta - \widehat{\text{bias}} = n\hat\theta - (n-1)\bar\theta_{(\cdot)}
Where:
  • nn = Number of observations in the sample
  • θ^\hat\theta = The estimate computed from the full sample
  • θ^(i)\hat\theta_{(i)} = The estimate recomputed with observation i removed
  • θˉ(⋅)\bar\theta_{(\cdot)} = The mean of the n leave-one-out estimates
  • θ^jack\hat\theta_{\text{jack}} = The bias-corrected jackknife estimate

Worked Example

Problem: Over three winter days, a town records snowfall of 0, 3, and 6 inches. You estimate the variance with the plug-in formula, which divides by nn. This estimator is known to run low. Use the jackknife to estimate its bias and correct it.
Step 1: Compute the full-sample estimate. The mean is 3 inches, so divide the sum of squared deviations by n=3n = 3.
θ^=(0−3)2+(3−3)2+(6−3)23=183=6\hat\theta = \frac{(0-3)^2 + (3-3)^2 + (6-3)^2}{3} = \frac{18}{3} = 6
Step 2: Leave out each day in turn and recompute the plug-in variance on the two remaining values. Dropping 0 leaves {3, 6}. Dropping 3 leaves {0, 6}. Dropping 6 leaves {0, 3}. Then average the three replicates.
θ^(1)=2.25,θ^(2)=9,θ^(3)=2.25,θˉ(⋅)=13.53=4.5\hat\theta_{(1)} = 2.25,\quad \hat\theta_{(2)} = 9,\quad \hat\theta_{(3)} = 2.25,\qquad \bar\theta_{(\cdot)} = \frac{13.5}{3} = 4.5
Step 3: Apply the bias formula, then subtract the estimated bias from the original estimate.
bias^=(3−1)(4.5−6)=−3,θ^jack=6−(−3)=9\widehat{\text{bias}} = (3-1)(4.5 - 6) = -3, \qquad \hat\theta_{\text{jack}} = 6 - (-3) = 9
Answer: The estimated bias is −3-3 square inches, so the corrected variance is 9 square inches. That is exactly the usual sample variance s2=18/2=9s^2 = 18/2 = 9. For the plug-in variance, the jackknife removes the bias completely.

Why It Matters

Many estimators, such as ratio estimates in survey sampling or the correlation coefficient, have no simple standard-error formula. The jackknife gives you a bias estimate and a standard error using only repeated recomputation. Agencies like the U.S. Census Bureau use replication methods of this kind for survey variance estimation, and the jackknife came before the bootstrap.

Common Mistakes

Mistake: Reporting the bias as θˉ(⋅)−θ^\bar\theta_{(\cdot)} - \hat\theta without the factor n−1n-1. In the example, that gives −1.5-1.5 instead of −3-3.
Correction: Each replicate uses only n−1n-1 points, so the gap between the replicates' average and the full-sample estimate is much smaller than the bias itself. The factor (n−1)(n-1) scales that gap back up to the right size.

Related Terms