In statistics, the delta method is a method of deriving the asymptotic distribution of a random variable. It is applicable when the random variable being considered can be defined as a differentiable function of a random variable which is asymptotically Gaussian.
The delta method was derived from propagation of error, and the idea behind was known in the early 20th century.[1] Its statistical application can be traced as far back as 1928 by T. L. Kelley.[2] A formal description of the method was presented by J. L. Doob in 1935.[3] Robert Dorfman also described a version of it in 1938.[4]
While the delta method generalizes easily to a multivariate setting, careful motivation of the technique is more easily demonstrated in univariate terms. Roughly, if there is a sequence of random variables satisfying
2)}, | |
{\sqrt{n}[X | |
n-\theta]\xrightarrow{D}l{N}(0,\sigma |
where θ and σ2 are finite valued constants and
\xrightarrow{D}
2 ⋅ [g'(\theta)] | |
{\sqrt{n}[g(X | |
n)-g(\theta)]\xrightarrow{D}l{N}(0,\sigma |
2)}
for any function g satisfying the property that its first derivative, evaluated at
\theta
g'(\theta)
The intuition of the delta method is that any such g function, in a "small enough" range of the function, can be approximated via a first order Taylor series (which is basically a linear function). If the random variable is roughly normal then a linear transformation of it is also normal. Small range can be achieved when approximating the function around the mean, when the variance is "small enough". When g is applied to a random variable such as the mean, the delta method would tend to work better as the sample size increases, since it would help reduce the variance, and thus the taylor approximation would be applied to a smaller range of the function g at the point of interest.
Demonstration of this result is fairly straightforward under the assumption that
g(x)
\theta
g'(x)
\theta
g'(\theta) ≠ 0
g(Xn)=g(\theta)+g'(\tilde{\theta})(Xn-\theta),
\tilde{\theta}
Xn\xrightarrow{P}\theta
|\tilde{\theta}-\theta|<|Xn-\theta|
\tilde{\theta}\xrightarrow{P}\theta
g'(\tilde{\theta})\xrightarrow{P}g'(\theta),
\xrightarrow{P}
Rearranging the terms and multiplying by
\sqrt{n}
\sqrt{n}[g(Xn)-g(\theta)]=g'\left(\tilde{\theta}\right)\sqrt{n}[Xn-\theta].
{\sqrt{n}[Xn-\theta]\xrightarrow{D}l{N}(0,\sigma2)}
{\sqrt{n}[g(Xn)-g(\theta)]\xrightarrow{D}l{N}(0,\sigma2[g'(\theta)]2)}.
Alternatively, one can add one more step at the end, to obtain the order of approximation:
\begin{align} \sqrt{n}[g(Xn)-g(\theta)]&=g'\left(\tilde{\theta}\right)\sqrt{n}[Xn-\theta]\\[5pt] &=\sqrt{n}[Xn-\theta]\left[g'(\tilde{\theta})+g'(\theta)-g'(\theta)\right]\\[5pt] &=\sqrt{n}[Xn-\theta]\left[g'(\theta)\right]+\sqrt{n}[Xn-\theta]\left[g'(\tilde{\theta})-g'(\theta)\right]\\[5pt] &=\sqrt{n}[Xn-\theta]\left[g'(\theta)\right]+Op(1) ⋅ op(1)\\[5pt] &=\sqrt{n}[Xn-\theta]\left[g'(\theta)\right]+op(1) \end{align}
By definition, a consistent estimator B converges in probability to its true value β, and often a central limit theorem can be applied to obtain asymptotic normality:
\sqrt{n}\left(B-\beta\right)\xrightarrow{D}N\left(0,\Sigma\right),
where n is the number of observations and Σ is a (symmetric positive semi-definite) covariance matrix. Suppose we want to estimate the variance of a scalar-valued function h of the estimator B. Keeping only the first two terms of the Taylor series, and using vector notation for the gradient, we can estimate h(B) as
h(B) ≈ h(\beta)+\nablah(\beta)T ⋅ (B-\beta)
which implies the variance of h(B) is approximately
\begin{align} \operatorname{Var}\left(h(B)\right)& ≈ \operatorname{Var}\left(h(\beta)+\nablah(\beta)T ⋅ (B-\beta)\right)\\[5pt] &=\operatorname{Var}\left(h(\beta)+\nablah(\beta)T ⋅ B-\nablah(\beta)T ⋅ \beta\right)\\[5pt] &=\operatorname{Var}\left(\nablah(\beta)T ⋅ B\right)\\[5pt] &=\nablah(\beta)T ⋅ \operatorname{Cov}(B) ⋅ \nablah(\beta)\\[5pt] &=\nablah(\beta)T ⋅
\Sigma | |
n |
⋅ \nablah(\beta) \end{align}
One can use the mean value theorem (for real-valued functions of many variables) to see that this does not rely on taking first order approximation.
The delta method therefore implies that
\sqrt{n}\left(h(B)-h(\beta)\right)\xrightarrow{D}N\left(0,\nablah(\beta)T ⋅ \Sigma ⋅ \nablah(\beta)\right)
or in univariate terms,
\sqrt{n}\left(h(B)-h(\beta)\right)\xrightarrow{D}N\left(0,\sigma2 ⋅ \left(h\prime(\beta)\right)2\right).
Suppose Xn is binomial with parameters
p\in(0,1]
{\sqrt{n}\left[
Xn | |
n |
-p\right]\xrightarrow{D}N(0,p(1-p))},
we can apply the Delta method with to see
{\sqrt{n}\left[log\left(
Xn | |
n |
\right)-log(p)\right]\xrightarrow{D}N(0,p(1-p)[1/p]2)}
Hence, even though for any finite n, the variance of
log\left( | Xn |
n |
\right)
log\left(
Xn | |
n |
\right)
1-p | |
np |
.
Note that since p>0,
\Pr\left(
Xn | |
n |
>0\right) → 1
n → infty
log\left( | Xn |
n |
\right)
Moreover, if
\hatp
\hatq
\hatp | |
\hatq |
1-p | + | |
pn |
1-q | |
qm |
.
This is useful to construct a hypothesis test or to make a confidence interval for the relative risk.
The delta method is often used in a form that is essentially identical to that above, but without the assumption that or B is asymptotically normal. Often the only context is that the variance is "small". The results then just give approximations to the means and covariances of the transformed quantities. For example, the formulae presented in Klein (1953, p. 258) are:[5]
\begin{align} \operatorname{Var}\left(hr\right)=&\sumi\left(
\partialhr | |
\partialBi |
\right)2\operatorname{Var}\left(Bi\right)+\sumi\sumj\left(
\partialhr | |
\partialBi |
\right)\left(
\partialhr | |
\partialBj |
\right)\operatorname{Cov}\left(Bi,Bj\right)\\ \operatorname{Cov}\left(hr,hs\right)=&\sumi\left(
\partialhr | |
\partialBi |
\right)\left(
\partialhs | |
\partialBi |
\right)\operatorname{Var}\left(Bi\right)+\sumi\sumj\left(
\partialhr | |
\partialBi |
\right)\left(
\partialhs | |
\partialBj |
\right)\operatorname{Cov}\left(Bi,Bj\right) \end{align}
where is the rth element of h(B) and Bi is the ith element of B.
When the delta method cannot be applied. However, if exists and is not zero, the second-order delta method can be applied. By the Taylor expansion,
n[g(X | ||||
|
2\left[g''(\theta)\right]+o | |
n[X | |
p(1) |
g\left(Xn\right)
Xn
The second-order delta method is also useful in conducting a more accurate approximation of
g\left(Xn\right)
\sqrt{n}[g(Xn)-g(\theta)]=\sqrt{n}[Xn-\theta]g'(\theta)+
1 | |
2 |
| |||||||
\sqrt{n |
Xn
g\left(Xn\right)
A version of the delta method exists in nonparametric statistics. Let
Xi\simF
n
\hat{F}n
T
T
T(\hat{F | |
n) |
-T(F)}{\widehat{se
where
\widehat{se
\hat{\tau}2=
1 | |
n |
n | |
\sum | |
i=1 |
2(X | |
\hat{L} | |
i) |
\hat{L}(x)=L\hat{Fn}(\deltax)
T
(1-\alpha)
T(F)
T(\hat{F}n)\pmz\alpha/2\widehat{se
where
zq
q