Quant Memo
Advanced

The Jackknife

A way to estimate an estimator's own bias and standard error using nothing but the data itself — leave out one observation at a time, recompute, and see how much the answer moves.

Prerequisites: Standard Deviation, Maximum Likelihood Estimation (MLE)

You've computed a statistic — a correlation, a Sharpe ratio, a regression coefficient — and you want to know two things: is this estimate systematically biased, and how much would it wobble if you'd collected a slightly different sample? You don't have a formula for either, and simulating from an assumed distribution feels circular, since you don't fully trust the distributional assumption either. The jackknife answers both questions using nothing but the one dataset you already have: recompute the statistic with each observation removed, one at a time, and read the bias and spread off of how the answers move.

An analogy: testing a bridge by removing one support at a time

An engineer wants to know how much any single support beam matters to a bridge's overall stability, and whether the bridge's design has some hidden systematic weakness. One way to find out: remove each support beam, one at a time, and measure how much the bridge sags each time. If removing any single beam causes roughly the same, small amount of sag, the bridge is stable and no beam is doing outsized work — you'd also expect the "with all beams" measurement to be reasonably trustworthy. If removing one particular beam causes a huge sag, that beam — and by extension your original "all beams" measurement — was hiding an outsized dependency. The jackknife applies the same "remove one, see what changes" logic to a dataset instead of a bridge.

The procedure, one symbol at a time

Let θ^\hat\theta be your statistic computed from the full sample of nn observations. Define θ^(i)\hat\theta_{(i)} as the same statistic recomputed after deleting observation ii — so you compute nn "leave-one-out" versions of your statistic, one for each data point removed. The jackknife estimate of bias is

bias^jack=(n1)(θˉ()θ^),where θˉ()=1ni=1nθ^(i)\widehat{\text{bias}}_{jack} = (n-1)\left(\bar\theta_{(\cdot)} - \hat\theta\right), \quad \text{where } \bar\theta_{(\cdot)} = \frac{1}{n}\sum_{i=1}^n \hat\theta_{(i)}

Read θˉ()\bar\theta_{(\cdot)} ("theta-dot-bar") as simply the average of all nn leave-one-out estimates. In plain English: compare the average of the leave-one-out estimates to your original full-sample estimate; if they differ, that difference — scaled up by (n1)(n-1) — is the jackknife's estimate of how much bias is baked into θ^\hat\theta. The jackknife estimate of the standard error is

SE^jack=n1ni=1n(θ^(i)θˉ())2\widehat{\text{SE}}_{jack} = \sqrt{\frac{n-1}{n}\sum_{i=1}^n \left(\hat\theta_{(i)} - \bar\theta_{(\cdot)}\right)^2}

In plain English: measure how much the leave-one-out estimates spread out around their own average, and that spread — with a specific scaling factor n1n\frac{n-1}{n} built in to correct for the fact that leave-one-out samples overlap heavily — is your estimate of how much θ^\hat\theta itself would wobble from sample to sample.

Convergence explorer
true meansamples →
after n = 200estimate -0.025error 0.025std error 0.071

The explorer above shows a running estimate settling as more data arrives — the jackknife asks a related but different question about the same fixed dataset: not "what happens as nn grows," but "how much does the answer move if I quietly remove one observation at a time from the nn I already have?" Both are ways of probing an estimator's stability, from two different angles.

Sampling distribution
sample mean →
sample size n 10spread of means 0.332predicted 1/√n 0.316

The explorer above shows how much a statistic bounces around across genuinely different samples — the spread you see there is the thing the jackknife is trying to estimate using only one sample, by simulating "slightly different data" through deletion instead of through drawing a fresh sample entirely.

The jackknife recomputes your statistic nn times, once per observation removed, and reads bias and standard error off how much those nn recomputed values move relative to the original — a fully data-driven check that requires no assumption about the underlying distribution.

Worked example 1: jackknife standard error of a sample mean

Five daily returns, in percent: 1,2,3,2,21, 2, 3, 2, 2. Full-sample mean: θ^=1+2+3+2+25=105=2.0\hat\theta = \frac{1+2+3+2+2}{5} = \frac{10}{5}=2.0.

Leave-one-out means: drop the 11: 2+3+2+24=2.25\frac{2+3+2+2}{4}=2.25. Drop a 22 (first one): 1+3+2+24=2.0\frac{1+3+2+2}{4}=2.0. Drop the 33: 1+2+2+24=1.75\frac{1+2+2+2}{4}=1.75. Drop a 22 (second one): 1+2+3+24=2.0\frac{1+2+3+2}{4}=2.0. Drop a 22 (third one): 1+2+3+24=2.0\frac{1+2+3+2}{4}=2.0.

So the five leave-one-out values are 2.25,2.0,1.75,2.0,2.02.25, 2.0, 1.75, 2.0, 2.0. Their average: θˉ()=2.25+2.0+1.75+2.0+2.05=10.05=2.0\bar\theta_{(\cdot)} = \frac{2.25+2.0+1.75+2.0+2.0}{5}=\frac{10.0}{5}=2.0 — matching θ^\hat\theta exactly, so jackknife bias =(51)(2.02.0)=0=(5-1)(2.0-2.0)=0, correctly signalling the sample mean is unbiased.

Sum of squared deviations from 2.02.0: 0.252+0+0.252+0+0=0.0625+0.0625=0.1250.25^2+0+0.25^2+0+0=0.0625+0.0625=0.125. SE^jack=45×0.125=0.1=0.316\widehat{\text{SE}}_{jack} = \sqrt{\frac{4}{5}\times0.125} = \sqrt{0.1}=0.316. Compare to the ordinary textbook standard error of the mean, s/ns/\sqrt n: sample standard deviation of the five points is s0.707s\approx0.707, giving 0.707/5=0.3160.707/\sqrt5=0.316 — an exact match, confirming the jackknife recovers the known formula here without ever using it directly.

Worked example 2: jackknife catching bias in a ratio estimator

Suppose you estimate a strategy's win/loss ratio from 4 days of P&L: wins of 3,53, 5 and losses of 2,1-2, -1 (in $thousands). Define θ^=sum of winssum of losses=83=2.667\hat\theta = \dfrac{\text{sum of wins}}{|\text{sum of losses}|} = \dfrac{8}{3}=2.667.

Leave-one-out: drop the win of 33: wins sum 55, losses sum 33, ratio =1.667=1.667. Drop the win of 55: wins sum 33, losses sum 33, ratio =1.0=1.0. Drop the loss of 2-2: wins sum 88, losses sum 11, ratio =8.0=8.0. Drop the loss of 1-1: wins sum 88, losses sum 22, ratio =4.0=4.0.

Average of leave-one-out ratios: θˉ()=1.667+1.0+8.0+4.04=14.6674=3.667\bar\theta_{(\cdot)}=\frac{1.667+1.0+8.0+4.0}{4}=\frac{14.667}{4}=3.667.

Jackknife bias: (41)(3.6672.667)=3×1.0=3.0(4-1)(3.667-2.667)=3\times1.0=3.0 — a substantial estimated bias relative to the point estimate of 2.6672.667 itself, flagging that ratio estimators built from a handful of observations (especially with a small denominator like the loss sum here) can be badly biased, exactly the kind of warning sign the jackknife is built to surface without any distributional assumption about P&L.

What this means in practice

  • Ratio and other nonlinear statistics (Sharpe ratios, win/loss ratios, correlation coefficients) are the cases where the jackknife earns its keep most, since these are exactly the statistics without simple, closed-form bias or standard-error formulas.
  • With small samples, the jackknife's bias and standard-error estimates are themselves noisy — computing nn leave-one-out values from a small nn doesn't manufacture new information, it only re-examines the information already present, so the jackknife is a diagnostic tool, not a way to make a small sample behave like a large one.
  • The bootstrap is the jackknife's more flexible cousin — instead of leaving out exactly one observation at a time, it resamples with replacement many times, generally giving better standard-error estimates for statistics that respond in a jumpy, non-smooth way to individual data points, where the jackknife's smoother leave-one-out approach can misbehave.

The jackknife can fail badly for statistics that are not "smooth" functions of the data — the sample median is the classic trap. Because the median only depends on the rank of the middle observation(s), removing one point often changes it by a large, discontinuous jump rather than the small, graceful nudge the jackknife's bias and standard-error formulas assume. Applying the plain jackknife to a median (or to other rank-based statistics) can give a badly wrong or even inconsistent standard error; a specially modified version, or the bootstrap, is needed instead.

Related concepts

Practice in interviews

Further reading

  • Efron & Tibshirani, An Introduction to the Bootstrap, ch. 11
  • Tukey, Bias and Confidence in Not-Quite Large Samples
ShareTwitterLinkedIn