Delta method

From testwiki
Revision as of 15:17, 26 November 2024 by 193.230.188.11 (talk) (Second-order delta method)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description 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.

History

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]

Univariate delta method

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 Template:Mvar satisfying

n[Xnθ]D𝒩(0,σ2),

where θ and σ2 are finite valued constants and D denotes convergence in distribution, then

n[g(Xn)g(θ)]D𝒩(0,σ2[g(θ)]2)

for any function g satisfying the property that its first derivative, evaluated at θ, g(θ) exists and is non-zero valued.

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.

Proof in the univariate case

Demonstration of this result is fairly straightforward under the assumption that g(x) is differentiable near the neighborhood of θ and g(x) is continuous at θ with g(θ)0. To begin, we use the mean value theorem (i.e.: the first order approximation of a Taylor series using Taylor's theorem):

g(Xn)=g(θ)+g(θ~)(Xnθ),

where θ~ lies between Template:Mvar and θ. Note that since XnPθ and |θ~θ|<|Xnθ|, it must be that θ~Pθ and since Template:Math is continuous, applying the continuous mapping theorem yields

g(θ~)Pg(θ),

where P denotes convergence in probability.

Rearranging the terms and multiplying by n gives

n[g(Xn)g(θ)]=g(θ~)n[Xnθ].

Since

n[Xnθ]D𝒩(0,σ2)

by assumption, it follows immediately from appeal to Slutsky's theorem that

n[g(Xn)g(θ)]D𝒩(0,σ2[g(θ)]2).

This concludes the proof.

Proof with an explicit order of approximation

Alternatively, one can add one more step at the end, to obtain the order of approximation:

n[g(Xn)g(θ)]=g(θ~)n[Xnθ]=n[Xnθ][g(θ~)+g(θ)g(θ)]=n[Xnθ][g(θ)]+n[Xnθ][g(θ~)g(θ)]=n[Xnθ][g(θ)]+Op(1)op(1)=n[Xnθ][g(θ)]+op(1)

This suggests that the error in the approximation converges to 0 in probability.

Multivariate delta method

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:

n(Bβ)DN(0,Σ),

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(β)+h(β)T(Bβ)

which implies the variance of h(B) is approximately

Var(h(B))Var(h(β)+h(β)T(Bβ))=Var(h(β)+h(β)TBh(β)Tβ)=Var(h(β)TB)=h(β)TCov(B)h(β)=h(β)TΣnh(β)

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

n(h(B)h(β))DN(0,h(β)TΣh(β))

or in univariate terms,

n(h(B)h(β))DN(0,σ2(h(β))2).

Example: the binomial proportion

Suppose Xn is binomial with parameters p(0,1] and n. Since

n[Xnnp]DN(0,p(1p)),

we can apply the Delta method with Template:Math to see

n[log(Xnn)log(p)]DN(0,p(1p)[1/p]2)

Hence, even though for any finite n, the variance of log(Xnn) does not actually exist (since Xn can be zero), the asymptotic variance of log(Xnn) does exist and is equal to

1pnp.

Note that since p>0, Pr(Xnn>0)1 as n, so with probability converging to one, log(Xnn) is finite for large n.

Moreover, if p^ and q^ are estimates of different group rates from independent samples of sizes n and m respectively, then the logarithm of the estimated relative risk p^q^ has asymptotic variance equal to

1ppn+1qqm.

This is useful to construct a hypothesis test or to make a confidence interval for the relative risk.

Alternative form

The delta method is often used in a form that is essentially identical to that above, but without the assumption that Template:Mvar 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]

Var(hr)=i(hrBi)2Var(Bi)+iji(hrBi)(hrBj)Cov(Bi,Bj)Cov(hr,hs)=i(hrBi)(hsBi)Var(Bi)+iji(hrBi)(hsBj)Cov(Bi,Bj)

where Template:Mvar is the rth element of h(B) and Bi is the ith element of B.

Second-order delta method

When Template:Math the delta method cannot be applied. However, if Template:Math exists and is not zero, the second-order delta method can be applied. By the Taylor expansion, n[g(Xn)g(θ)]=12n[Xnθ]2[g(θ)]+op(1), so that the variance of g(Xn) relies on up to the 4th moment of Xn.

The second-order delta method is also useful in conducting a more accurate approximation of g(Xn)'s distribution when sample size is small. n[g(Xn)g(θ)]=n[Xnθ]g(θ)+12n[Xnθ]2ng(θ)+op(1). For example, when Xn follows the standard normal distribution, g(Xn) can be approximated as the weighted sum of a standard normal and a chi-square with degree-of-freedom of 1.

Nonparametric delta method

A version of the delta method exists in nonparametric statistics. Let XiF be an independent and identically distributed random variable with a sample of size n with an empirical distribution function F^n, and let T be a functional. If T is Hadamard differentiable with respect to the Chebyshev metric, then

T(F^n)T(F)se^DN(0,1)

where se^=τ^n and τ^2=1ni=1nL^2(Xi), with L^(x)=LF^n(δx) denoting the empirical influence function for T. A nonparametric (1α) pointwise asymptotic confidence interval for T(F) is therefore given by

T(F^n)±zα/2se^

where zq denotes the q-quantile of the standard normal. See Wasserman (2006) p. 19f. for details and examples.

See also

References

Template:Reflist

Further reading

de:Statistischer Test#Asymptotisches Verhalten des Tests