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 kkth population moment is μk′=E[Xk]\mu'_k = E[X^{k}], a function of the unknown parameters. The kkth sample moment is


mk′=1n∑i=1nXikm'_k = \dfrac{1}{n}\sum_{i=1}^{n} X_i^{k}


In the standard exactly identified method of moments, choose pp moment conditions for pp 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′\mu'_1 and μ2′\mu'_2, since the two systems are equivalent: Var(X)=μ2′−(μ1′)2\mathrm{Var}(X) = \mu'_2 - (\mu'_1)^2, and the corresponding sample quantity is the second central moment with divisor nn,


m2=1n∑i=1n(Xi−Xˉ)2=m2′−Xˉ2m_2 = \dfrac{1}{n}\sum_{i=1}^{n}(X_i-\bar{X})^{2} = m'_2 - \bar{X}^{2}


Note the divisor. The method of moments produces the 1/n1/n version, not the 1/(n−1)1/(n-1) sample variance, because it is the direct sample analogue of E[X2]−(E[X])2E[X^2]-(E[X])^2. Substituting s2s^2 with divisor n−1n-1 gives a different estimator, and while the difference vanishes for large nn, it is not what the method returns.

Worked example: one parameter

For X1,…,XnX_1,\dots,X_n independent Exponential(λ)\mathrm{Exponential}(\lambda) in the rate parameterisation, E[X]=1/λE[X] = 1/\lambda. One parameter means one equation:


1λ=Xˉ⟹λ^=1Xˉ\dfrac{1}{\lambda} = \bar{X} \quad\Longrightarrow\quad \hat{\lambda} = \dfrac{1}{\bar{X}}


With a sample mean of xˉ=2.5\bar{x} = 2.5, the estimate is λ^=0.4\hat{\lambda} = 0.4. Note that the estimator is not the average of 1/Xi1/X_i; 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 μ\mu and σ2\sigma^2, the first two population moments are E[X]=μE[X] = \mu and E[X2]=σ2+μ2E[X^2] = \sigma^2 + \mu^2. Equating both to their sample counterparts:


μ^=Xˉ,σ^2=m2′−Xˉ2=1n∑i=1n(Xi−Xˉ)2\hat{\mu} = \bar{X}, \qquad \hat{\sigma}^{2} = m'_2 - \bar{X}^{2} = \dfrac{1}{n}\sum_{i=1}^{n}(X_i-\bar{X})^{2}


Take the five observations 3, 7, 8, 10, 12. Then xˉ=40/5=8\bar{x} = 40/5 = 8 and m2′=(9+49+64+100+144)/5=366/5=73.2m'_2 = (9+49+64+100+144)/5 = 366/5 = 73.2, so σ^2=73.2−64=9.2\hat{\sigma}^{2} = 73.2 - 64 = 9.2. The same value follows from the central form, (25+1+0+4+16)/5=46/5=9.2(25+1+0+4+16)/5 = 46/5 = 9.2, which is a useful arithmetic check.


Here m2=9.2>0m_2=9.2>0, so the moment estimate lies in the normal parameter space σ2>0\sigma^2>0 and agrees exactly with maximum likelihood. Both variance estimators are biased downward because of the 1/n1/n divisor.

When the two methods agree, and when they part company

Model

Method of moments

Maximum likelihood

Bernoulli(p)

Xˉ\bar{X}

Xˉ\bar{X}, identical

Poisson(λ)

Xˉ\bar{X}, when admissible

Xˉ\bar{X}, identical when admissible

Exponential(λ)

1/Xˉ1/\bar{X}

1/Xˉ1/\bar{X}, identical

Normal(μ, σ2), σ2>0\sigma^2>0

Xˉ\bar{X}, m2m_2

Xˉ\bar{X}, m2m_2, identical when m2>0m_2>0

Uniform(0, θ), θ>0\theta>0 and max⁡iXi>0\max_i X_i>0

2Xˉ2\bar{X}

max⁡iXi\max_i X_i, different estimators


For the normal row, a constant sample has m2=0m_2=0. Moment matching then gives a boundary value σ^2=0\hat{\sigma}^2=0, outside the model parameter space σ2>0\sigma^2>0. At μ=xˉ\mu=\bar{x}, the likelihood grows without bound as σ2\sigma^2 approaches zero, so no finite normal MLE exists.


For Poisson λ>0\lambda>0, an all-zero sample has moment value Xˉ=0\bar{X}=0 outside the parameter space and no MLE; when λ=0\lambda=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\theta>0, an all-zero sample gives the boundary moment value 2Xˉ=02\bar{X}=0, outside the parameter space; its likelihood grows without bound as θ\theta approaches 0 from above, so no MLE exists.

The uniform model, and what can go wrong

For X∼Uniform(0,θ)X \sim \mathrm{Uniform}(0,\theta), E[X]=θ/2E[X] = \theta/2, so the moment equation gives θ^=2Xˉ\hat{\theta} = 2\bar{X}. 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 θ\theta, such an estimate declares the observed data impossible.


When θ>0\theta>0 and the observed maximum is positive, the maximum likelihood estimator is max⁡iXi\max_i X_i. It cannot place the estimated endpoint below an observation.


It is biased downward, since the sample maximum is always at or below θ\theta, 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]=θ/2E[X]=\theta/2 knows that θ\theta 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ˉ1/\bar{X}, not the mean of the reciprocals.
  • Using s2s^2 with divisor n−1n-1. The method returns the second central moment with divisor nn.
  • 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 X1,…,XnX_1,\dots,X_n is drawn from a distribution with pp unknown parameters. Which statement describes the method of moments estimator?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A random sample of five observations from a Normal(μ,σ2)\mathrm{Normal}(\mu,\sigma^{2}) distribution gives the values

2, 4, 4, 5, 10

Recall that for this model E[X]=μE[X]=\mu and E[X2]=σ2+μ2E[X^{2}]=\sigma^{2}+\mu^{2}.

Calculate the method of moments estimate of σ2\sigma^{2}.

Give your answer in squared units of X.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

For a random sample from Uniform(0,θ)\mathrm{Uniform}(0,\theta) with θ>0\theta>0 and a positive observed maximum, the method of moments estimator is θ^MoM=2Xˉ\hat{\theta}_{\text{MoM}} = 2\bar{X} and the maximum likelihood estimator is θ^MLE=max⁡iXi\hat{\theta}_{\text{MLE}} = \max_i X_i.

A sample of six observations has mean xˉ=4.0\bar{x} = 4.0 and maximum max⁡ixi=9.1\max_i x_i = 9.1. Which statement is correct?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors