Jackknife resampling explained

In statistics, the jackknife (jackknife cross-validation) is a cross-validation technique and, therefore, a form of resampling.It is especially useful for bias and variance estimation. The jackknife pre-dates other common resampling methods such as the bootstrap. Given a sample of size

n

, a jackknife estimator can be built by aggregating the parameter estimates from each subsample of size

(n-1)

obtained by omitting one observation.

The jackknife technique was developed by Maurice Quenouille (1924–1973) from 1949 and refined in 1956. John Tukey expanded on the technique in 1958 and proposed the name "jackknife" because, like a physical jack-knife (a compact folding knife), it is a rough-and-ready tool that can improvise a solution for a variety of problems even though specific problems may be more efficiently solved with a purpose-designed tool.

The jackknife is a linear approximation of the bootstrap.

A simple example: mean estimation

The jackknife estimator of a parameter is found by systematically leaving out each observation from a dataset and calculating the parameter estimate over the remaining observations and then aggregating these calculations.

For example, if the parameter to be estimated is the population mean of random variable

x

, then for a given set of i.i.d. observations

x1,...,xn

the natural estimator is the sample mean:

\bar{x}=

1
n
n
\sum
i=1

xi=

1
n

\sumixi,

where the last sum used another way to indicate that the index

i

runs over the set

[n]=\{1,\ldots,n\}

.

Then we proceed as follows: For each

i\in[n]

we compute the mean

\bar{x}(i)

of the jackknife subsample consisting of all but the

i

-th data point, and this is called the

i

-th jackknife replicate:

\bar{x}(i)=

1
n-1

\sumjxj,i=1,...,n.

It could help to think that these

n

jackknife replicates

\bar{x}(1),\ldots,\bar{x}(n)

give us an approximation of the distribution of the sample mean

\bar{x}

and the larger the

n

the better this approximation will be. Then finally to get the jackknife estimator we take the average of these

n

jackknife replicates:

\bar{x}jack=

1
n
n
\sum
i=1

\bar{x}(i).

One may ask about the bias and the variance of

\bar{x}jack

. From the definition of

\bar{x}jack

as the average of the jackknife replicates one could try to calculate explicitly, and the bias is a trivial calculation but the variance of

\bar{x}jack

is more involved since the jackknife replicates are not independent.

For the special case of the mean, one can show explicitly that the jackknife estimate equals the usual estimate:

1
n
n
\sum
i=1

\bar{x}(i)=\bar{x}.

This establishes the identity

\bar{x}jack=\bar{x}

. Then taking expectations we get

E[\bar{x}jack]=E[\bar{x}]=E[x]

, so

\bar{x}jack

is unbiased, while taking variance we get

V[\bar{x}jack]=V[\bar{x}]=V[x]/n

. However, these properties do not generally hold for parameters other than the mean.

This simple example for the case of mean estimation is just to illustrate the construction of a jackknife estimator, while the real subtleties (and the usefulness) emerge for the case of estimating other parameters, such as higher moments than the mean or other functionals of the distribution.

\bar{x}jack

could be used to construct an empirical estimate of the bias of

\bar{x}

, namely

\widehat{\operatorname{bias}}(\bar{x})jack=c(\bar{x}jack-\bar{x})

with some suitable factor

c>0

, although in this case we know that

\bar{x}jack=\bar{x}

so this construction does not add any meaningful knowledge, but it gives the correct estimation of the bias (which is zero).

A jackknife estimate of the variance of

\bar{x}

can be calculated from the variance of the jackknife replicates

\bar{x}(i)

:[1]

\widehat{\operatorname{var}}(\bar{x})jack=

n-1
n
n
\sum
i=1

(\bar{x}(i)-\bar{x}jack)2=

1
n(n-1)
n
\sum
i=1

(xi-\bar{x})2.

The left equality defines the estimator

\widehat{\operatorname{var}}(\bar{x})jack

and the right equality is an identity that can be verified directly. Then taking expectations we get

E[\widehat{\operatorname{var}}(\bar{x})jack]=V[x]/n=V[\bar{x}]

, so this is an unbiased estimator of the variance of

\bar{x}

.

Estimating the bias of an estimator

The jackknife technique can be used to estimate (and correct) the bias of an estimator calculated over the entire sample.

Suppose

\theta

is the target parameter of interest, which is assumed to be some functional of the distribution of

x

. Based on a finite set of observations

x1,...,xn

, which is assumed to consist of i.i.d. copies of

x

, the estimator

\hat{\theta}

is constructed:

\hat{\theta}=fn(x1,\ldots,xn).

The value of

\hat{\theta}

is sample-dependent, so this value will change from one random sample to another.

By definition, the bias of

\hat{\theta}

is as follows:

bias(\hat{\theta})=E[\hat{\theta}]-\theta.

One may wish to compute several values of

\hat{\theta}

from several samples, and average them, to calculate an empirical approximation of

E[\hat{\theta}]

, but this is impossible when there are no "other samples" when the entire set of available observations

x1,...,xn

was used to calculate

\hat{\theta}

. In this kind of situation the jackknife resampling technique may be of help.

We construct the jackknife replicates:

\hat{\theta}(1)=fn-1(x2,x3\ldots,xn)

\hat{\theta}(2)=fn-1(x1,x3,\ldots,xn)

\vdots

\hat{\theta}(n)=fn-1(x1,x2,\ldots,xn-1)

where each replicate is a "leave-one-out" estimate based on the jackknife subsample consisting of all but one of the data points:

\hat{\theta}(i)=fn-1(x1,\ldots,xi-1,xi+1,\ldots,xn)i=1,...,n.

Then we define their average:

\hat{\theta}
jack=1
n
n
\sum
i=1

\hat{\theta}(i)

The jackknife estimate of the bias of

\hat{\theta}

is given by:

\widehat{bias

}(\hat)_\mathrm =(n-1)(\hat_\mathrm - \hat)

and the resulting bias-corrected jackknife estimate of

\theta

is given by:
*
\hat{\theta}
jack

=\hat{\theta}-\widehat{bias

}(\hat)_\mathrm=n\hat - (n-1)\hat_\mathrm.

This removes the bias in the special case that the bias is

O(n-1)

and reduces it to

O(n-2)

in other cases.

Estimating the variance of an estimator

The jackknife technique can be also used to estimate the variance of an estimator calculated over the entire sample.

Literature

References

Notes and References

  1. Web site: McIntosh. Avery I.. The Jackknife Estimation Method. Boston University. Avery I. McIntosh. 2016-04-30. 2016-05-14. https://web.archive.org/web/20160514022307/http://people.bu.edu/aimcinto/jackknife.pdf. dead.

    p. 3.