Method of moments (statistics)

From testwiki
Jump to navigation Jump to search

Template:Short descriptionTemplate:ForIn statistics, the method of moments is a method of estimation of population parameters. The same principle is used to derive higher moments like skewness and kurtosis.

It starts by expressing the population moments (i.e., the expected values of powers of the random variable under consideration) as functions of the parameters of interest. Those expressions are then set equal to the sample moments. The number of such equations is the same as the number of parameters to be estimated. Those equations are then solved for the parameters of interest.[1] The solutions are estimates of those parameters. The method of moments was first introduced by Karl Pearson in 1895.[2][3]

Method

Suppose that the parameter θ = (θ1,θ2,…,θk) characterizes the distribution fW(w;θ) of the random variable W.[4] Suppose the first k moments of the true distribution (the "population moments") can be expressed as functions of the θs:

m1≡E⁡[W]=g1(θ1,θ2,…,θk),m2≡E⁡[W2]=g2(θ1,θ2,…,θk),⋮mk≡E⁡[Wk]=gk(θ1,θ2,…,θk).

Suppose a sample of size n is drawn, resulting in the values w1,…,wn. For j=1,…,k, let m̂j=1n∑i=1nwij be the j-th sample moment, an estimate of mj. The method of moments estimator for θ1,θ2,…,θk denoted by θ̂1,θ̂2,…,θ̂k is defined to be a solution (if one exists) to the equations:[3]

m̂1=g1(θ̂1,θ̂2,…,θ̂k),m̂2=g2(θ̂1,θ̂2,…,θ̂k),⋮m̂k=gk(θ̂1,θ̂2,…,θ̂k).

The method described here for single random variables generalizes in an obvious manner to multiple random variables leading to multiple choices for moments to be used. Different choices generally lead to different solutions.[5][6]

Properties

If it exists, a moment estimator θ̂(n)=(θ̂1,…,θ̂k) based on an independent sample of n observations drawn from the distribution fW(w;θ) has the following statistical properties.

Consistency

Provided that the function g=(g1,…,gk) is invertible and continuous, and the first k moments exist (E⁡[|W|k]<∞), the moment estimator is strongly consistent. This is a direct consequence of the strong law of large numbers.[7]

In the typical case, where the second moment 𝔼[(θ̂(n))2]=Var(θ̂(n))+𝔼[θ̂(n)]2 does not explode as n goes to infinity, the above implies (by the Vitali convergence theorem) that the moment estimator is also unbiased in the limit, that is,

limn→∞𝔼[θ̂(n)]=θ.

Asymptotic normality

If the function g=(g1,…,gk) is even differentiable and E⁡[|W2|k]<∞, then the moment estimator is also asymptotically normal in the sense[7]n(θ̂(n)−𝔼θ[θ̂(n)]) ⟶d 𝒩(0,(∇g−1(θ))TCovθ(W)∇g−1(θ)),where Covθ(W) is the covariance matrix of W. This is a consequence of the central limit theorem and the delta method.

Advantages and disadvantages

On the one hand, the method of moments is fairly simple and broadly applicable, since it does not require any assumptions on the data distribution besides existence of the first few moments. This is particularly useful in settings, where the general shape of the distribution may not be known (e.g. utility functions). Moreover, the resulting estimators are almost always consistent and asymptotically unbiased.[7]

On the other hand, the moment equations do not always have a solution, in which case the method does not provide any estimator. In other cases, there might exist multiple solutions. In view of parameter estimation in a parametric model, moment estimators are, in general, not asymptotically efficient, in contrast to maximum likelihood estimators.[8] Moreover, the method does not necessarily lead to sufficient estimators, i.e., they sometimes fail to take into account all relevant information in the sample.[9]

Alternative method of moments

Template:More citations needed section The equations to be solved in the method of moments (MoM) are in general nonlinear and there are no generally applicable guarantees that tractable solutions existTemplate:Citation needed. But there is an alternative approach to using sample moments to estimate data model parameters in terms of known dependence of model moments on these parameters, and this alternative requires the solution of only linear equations or, more generally, tensor equations. This alternative is referred to as the Bayesian-Like MoM (BL-MoM), and it differs from the classical MoM in that it uses optimally weighted sample moments. Considering that the MoM is typically motivated by a lack of sufficient knowledge about the data model to determine likelihood functions and associated a posteriori probabilities of unknown or random parameters, it is odd that there exists a type of MoM that is Bayesian-Like. But the particular meaning of Bayesian-Like leads to a problem formulation in which required knowledge of a posteriori probabilities is replaced with required knowledge of only the dependence of model moments on unknown model parameters, which is exactly the knowledge required by the traditional MoM.[5][6][10][11] The BL-MoM also uses knowledge of a priori probabilities of the parameters to be estimated, when available, but otherwise uses uniform priors.Template:Citation needed

The BL-MoM has been reported on in only the applied statistics literature in connection with parameter estimation and hypothesis testing using observations of stochastic processes for problems in Information and Communications Theory and, in particular, communications receiver design in the absence of knowledge of likelihood functions or associated a posteriori probabilities[12] and references therein. In addition, the restatement of this receiver design approach for stochastic process models as an alternative to the classical MoM for any type of multivariate data is available in tutorial form at the university website.[13] The applications in[12] and references demonstrate some important characteristics of this alternative to the classical MoM, and a detailed list of relative advantages and disadvantages is given in,[13] but the literature is missing direct comparisons in specific applications of the classical MoM and the BL-MoM.Template:Citation needed

Examples

Poisson distribution

Let W∼Poiss(λ) be Poisson distributed with parameter λ>0. The first moment (that is, the mean) is

m1=E⁡[W]=λ.

Since this is already an explicit equation for λ, the moment estimator is simply the sample mean.

Normal distribution

Let W∼𝒩(μ,σ2) be normally distributed with unknown parameters μ∈ℝ and σ2>0. Since two parameters must be determined, two equations are needed. The first two moments are given by

m1=E⁡[W]=μ,m2=E⁡[W2]=Var(W)+E⁡[W]2=σ2+μ2.

Solving the equations for the parameters yields

μ=m1,σ2=m2−m12.

Given a sample X1,…,Xn∼𝒩(μ,σ2), the corresponding estimators are

μ̂=1n∑i=1nXi=X‾,σ̂2=1n∑i=1nXi2−1n2(∑i=1nXi)2=1n∑i=1n(Xi−X‾)2,

which are the sample mean and the (biased) sample variance. In this case, they coincide with the maximum likelihood estimators.

Uniform distribution

Consider the uniform distribution on the interval [a,b], U(a,b), with unknown parameters −∞<a<b<∞. If W∼U(a,b) then we have[9]

m1=E⁡[W]=12(a+b)m2=E⁡[W2]=13(a2+ab+b2)

Solving these equations gives

â=m1−3(m2−m12)b̂=m1+3(m2−m12)

Given a set of samples {wi} we can use the sample moments m̂1 and m̂2 in these formulae in order to estimate a and b.

Note, however, that this method can produce inconsistent results in some cases. For example, the set of samples {0,0,0,0,1} results in the estimate â=15(1−23)=−0.4928, b̂=15(1+23)=0.8928. Since b̂<1 it is impossible for the set {0,0,0,0,1} to have been drawn from U(â,b̂) in this case.

Binomial distribution

Let W∼Bin(n,p) be binomially distributed with unknown parameters n∈ℕ and p∈(0,1). The first two moments read as[14]

m1=E⁡[W]=np,m2=E⁡[W2]=np(1−p)+n2p2.

Solving these equations for the parameters yieldsp=m1+m12−m2m1=1+m1−m2m1,n=m1p=m12m1+m12−m2.

Inserting the estimators m̂1 and m̂2 for m1 and m2 gives the corresponding moment estimators p̂ and n̂.

This is a negative example, where the moment estimators have multiple issues: First, the estimator n̂ does not necessarily provide integers, although this can be easily resolved by rounding to the nearest integer.[14] A more serious issue is that both estimators can lead to negative estimates, namely when m̂1+m̂12−m̂2<0, which is equivalent to the sample variance Sn2=m̂2−m̂12 being larger than the sample mean m̂1. This can happen, for example, in small data sets with large variation. In such cases, the moment estimators are useless.

Nonparametric estimation of mean and variance

The method of moment does not actually need any assumptions on the data distribution besides the existence of a certain number of moments. For the estimation of the mean μ and the variance σ2 using observations X1,…,Xn, assuming only E⁡[Xi2]<∞, the very same derivation as for the normal distribution (see above) applies, yielding the estimators

μ̂=1n∑i=1nXi=X‾,σ̂2=1n∑i=1n(Xi−X‾)2.

Estimation of polynomial probability densities

Another example application of the method of moments is to estimate polynomial probability density distributions. In this case, an approximating polynomial of order N is defined on an interval [a,b]. The method of moments then yields a system of equations, whose solution involves the inversion of a Hankel matrix.[15]

See also

References

Template:Reflist