The method of moments: constructing, solving and judging moment estimators
The idea in one sentence
If the population moments are known functions of the parameters, and the sample moments estimate the population moments, then setting the two equal and solving gives an estimator. That is the whole of the method of moments, and it is one of the oldest general-purpose estimation techniques in statistics.
Notation and the recipe
The kth population moment is μk′=E[Xk], a function of the unknown parameters. The kth sample moment is
mk′=n1∑i=1nXik
In the standard exactly identified method of moments, choose p moment conditions for p parameters. Solving yields a usable estimate only when the required moments exist and the conditions identify a unique admissible parameter vector.
Counting equations alone does not guarantee existence, uniqueness, or admissibility. Extra moment conditions can be used with a specified estimation rule, such as generalized method of moments.
In practice it is often easier to work with the mean and the variance rather than μ1′ and μ2′, since the two systems are equivalent: Var(X)=μ2′−(μ1′)2, and the corresponding sample quantity is the second central moment with divisor n,
m2=n1∑i=1n(Xi−Xˉ)2=m2′−Xˉ2
Note the divisor. The method of moments produces the 1/n version, not the 1/(n−1) sample variance, because it is the direct sample analogue of E[X2]−(E[X])2. Substituting s2 with divisor n−1 gives a different estimator, and while the difference vanishes for large n, it is not what the method returns.
Worked example: one parameter
For X1,…,Xn independent Exponential(λ) in the rate parameterisation, E[X]=1/λ. One parameter means one equation:
λ1=Xˉ⟹λ^=Xˉ1
With a sample mean of xˉ=2.5, the estimate is λ^=0.4. Note that the estimator is not the average of 1/Xi; the method equates moments and then solves, and solving happens after the substitution rather than inside it.
Worked example: two parameters
For a normal model with unknown μ and σ2, the first two population moments are E[X]=μ and E[X2]=σ2+μ2. Equating both to their sample counterparts:
μ^=Xˉ,σ^2=m2′−Xˉ2=n1∑i=1n(Xi−Xˉ)2
Take the five observations 3, 7, 8, 10, 12. Then xˉ=40/5=8 and m2′=(9+49+64+100+144)/5=366/5=73.2, so σ^2=73.2−64=9.2. The same value follows from the central form, (25+1+0+4+16)/5=46/5=9.2, which is a useful arithmetic check.
Here m2=9.2>0, so the moment estimate lies in the normal parameter space σ2>0 and agrees exactly with maximum likelihood. Both variance estimators are biased downward because of the 1/n divisor.
When the two methods agree, and when they part company
Model | Method of moments | Maximum likelihood |
|---|---|---|
Bernoulli(p) | Xˉ | Xˉ, identical |
Poisson(λ) | Xˉ, when admissible | Xˉ, identical when admissible |
Exponential(λ) | 1/Xˉ | 1/Xˉ, identical |
Normal(μ, σ2), σ2>0 | Xˉ, m2 | Xˉ, m2, identical when m2>0 |
Uniform(0, θ), θ>0 and maxiXi>0 | 2Xˉ | maxiXi, different estimators |
For the normal row, a constant sample has m2=0. Moment matching then gives a boundary value σ^2=0, outside the model parameter space σ2>0. At μ=xˉ, the likelihood grows without bound as σ2 approaches zero, so no finite normal MLE exists.
For Poisson λ>0, an all-zero sample has moment value Xˉ=0 outside the parameter space and no MLE; when λ=0 is included, both methods give 0.
For the admissible Bernoulli, Poisson, exponential and normal cases shown, the methods use the same sample summaries. The uniform row requires a positive observed maximum.
With θ>0, an all-zero sample gives the boundary moment value 2Xˉ=0, outside the parameter space; its likelihood grows without bound as θ approaches 0 from above, so no MLE exists.
The uniform model, and what can go wrong
For X∼Uniform(0,θ), E[X]=θ/2, so the moment equation gives θ^=2Xˉ. This estimator is unbiased, and it is perfectly reasonable on average.
It nonetheless has a defect that no amount of averaging repairs: it can return a value smaller than an observation that was actually recorded. Since the model assigns zero density above θ, such an estimate declares the observed data impossible.
When θ>0 and the observed maximum is positive, the maximum likelihood estimator is maxiXi. It cannot place the estimated endpoint below an observation.
It is biased downward, since the sample maximum is always at or below θ, but is feasible for such samples. For an all-zero sample, the proposed value 0 is outside the parameter space and no MLE exists.
This is the standard illustration of a general point: the method of moments uses only the moments it is given, and moments need not carry the constraints imposed by the observed support.
Nothing in the equation E[X]=θ/2 knows that θ must be at least as large as every observation.
Choosing between the methods
- In favour of moments. The equations are usually elementary and often have a closed-form solution, no numerical optimisation is needed, and only the relevant moments need to exist rather than a fully specified likelihood. It is also a common way to obtain a starting value for an iterative maximum likelihood routine.
- Against. The estimate can contradict the observed support, as the uniform case shows. In other models, moment equations can also yield values outside the parameter space. The estimator need not be a function of a sufficient statistic, so it can discard information the data contain. And it is generally less efficient than maximum likelihood, in the sense of a larger variance in large samples; the precise statement belongs to the asymptotic theory covered in the sibling concepts.
- A practical caution. Moments must exist. For a distribution with heavy tails and no finite mean, such as the Cauchy, the method cannot even be started, while the likelihood remains perfectly well defined.
Errors worth naming
- Averaging the transformation instead of transforming the average. For the exponential model the estimator is 1/Xˉ, not the mean of the reciprocals.
- Using s2 with divisor n−1. The method returns the second central moment with divisor n.
- Using the wrong number of equations. For an exactly identified setup, choose as many moment conditions as parameters and check identification, existence, and admissibility.
- Assuming the estimator is automatically sensible. Always check the estimate against the parameter space and against the observed data.
A random sample of five observations from a Normal(μ,σ2) distribution gives the values
2, 4, 4, 5, 10
Recall that for this model E[X]=μ and E[X2]=σ2+μ2.
Calculate the method of moments estimate of σ2.
Give your answer in squared units of X.
For a random sample from Uniform(0,θ) with θ>0 and a positive observed maximum, the method of moments estimator is θ^MoM=2Xˉ and the maximum likelihood estimator is θ^MLE=maxiXi.
A sample of six observations has mean xˉ=4.0 and maximum maxixi=9.1. Which statement is correct?