Estimating equations

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Statistical inference.

In statistical inference, estimating equations are mean-zero restrictions on the data and a parameter, solved in the sample to produce an estimator. An estimator is a function of the sample, and the number it produces in one sample is the estimate. Two classical ways of building the function set an equation to zero. Pearson’s method of moments matches sample moments to population moments. Fisher’s maximum likelihood sets the derivative of the log-likelihood to zero. A broader instruction covers both, and also covers cases with no full density: write a function of the data and the parameter that has mean zero at the true parameter, and solve the sample version, or make that sample version as close to zero as a weight matrix allows. That sample equation is an estimating equation. Generalised estimating equations for clustered data are one family. They are not the whole idea.[1][2]

Estimating equations

Estimating equations
Fact Value
Topic Statistical inference
Listed on Statistical inference
Worked example 1

Motivating example

A sample y1,…,yny_1,\ldots,y_n has an unknown mean μ\mu. The deviations yi−μy_i-\mu have mean zero at the true μ\mu, so the sample equation ∑i(yi−μ)=0\sum_i(y_i-\mu)=0 is an estimating equation. Its solution is the sample mean. If a second, different function of (yi,μ)(y_i,\mu) also has mean zero, there are more equations than unknowns. No single μ\mu will satisfy both sample equations exactly. The generalised method of moments replaces solving by making the vector of sample moments as close to zero as a chosen weighting allows. The mean example is the just-identified case, where close to zero means equal to zero. The same distinction appears in instrumental variables. When the instrument matrix and the regressor matrix have the same number of columns, the estimator solves a square system. When there are more instruments than regressors, a weight matrix combines the extra moments.[2]

Intuition

An estimating equation encodes a fact that is true on average when the parameter is right, and false on average when it is wrong. The sample analogue is noisy, but the noise averages out as the sample grows, which is why a root of the sample equation can be a consistent estimator under conditions that include a growing sample. A likelihood score is the estimating equation that comes from differentiating the log-likelihood, which is Fisher’s construction. A moment restriction does not need that density. For a regression error uu and instruments ZZ, the condition used for instrumental variables is E[u∣Z]=0\mathbb{E}[u\mid Z]=0. That conditional statement implies unconditional moments such as E[Z′u]=0\mathbb{E}[Z'u]=0, and those moments are what the sample equation sets toward zero. Specifying the mean-zero function is weaker than specifying the whole distribution, and it is enough to define an estimator.[1][2]

Definition

Let h(β)h(\beta) be a vector of sample moments whose expectation is zero at the parameter value one intends to estimate. A nonlinear illustration is a mean E[y∣x]=exp⁡(x′β)\mathbb{E}[y\mid x]=\exp(x'\beta) with instruments zz that satisfy

E[y−exp⁡(x′β)∣z]=0.\mathbb{E}\bigl[y-\exp(x'\beta)\bigm| z\bigr]=0.

The sample moment is the sum h(β)=∑izi(yi−exp⁡(xi′β))h(\beta)=\sum_i z_i\bigl(y_i-\exp(x_i'\beta)\bigr), and the estimator minimises the weighted square h(β)′Wh(β)h(\beta)'Wh(\beta) for a positive definite weight WW. Dividing hh by the sample size does not change the minimiser. It only changes the scale of the criterion. When hh has as many coordinates as β\beta has free parameters, a root of h(β)=0h(\beta)=0 exists under the usual rank condition, and every nonsingular weight selects that same root. When hh is longer than β\beta, the model is overidentified, an exact root need not exist, and the weight chooses the compromise. The efficient two-step choice replaces WW by the inverse of a consistent estimator of the variance of hh. With clustered errors that variance is summed one cluster at a time, and the matrix is invertible only when there are more clusters than instruments.[2]

A linear version is y=Xβ+uy=X\beta+u with E[u∣Z]=0\mathbb{E}[u\mid Z]=0. Ordinary least squares is the case Z=XZ=X, one moment per coefficient, solved by the normal equations. An instrument matrix with more columns than XX overidentifies the same coefficient. The just-identified instrumental-variable estimator is (Z′X)−1Z′y(Z'X)^{-1}Z'y. Two-stage least squares is the generalised-method-of-moments estimator whose weight is (Z′Z)−1(Z'Z)^{-1}.[2]

Statistical use

Use an estimating equation when the trusted restriction is a mean-zero function of data and parameter, and a full likelihood is either unavailable or not credible. Write the moment so that its expectation really is zero at the parameter of interest. Check the dimensions. If there are as many moments as parameters, solve h(β)=0h(\beta)=0. If there are more, minimise a weighted quadratic in hh and report which weight was used. The cluster-robust variance is the companion standard error when the observations are grouped and the variance of the moment is estimated from the cluster totals rather than from a correctly specified likelihood. The asymptotics are in the number of clusters.[2]

Generalised estimating equations are the version for a marginal mean in a generalised linear model. A population-averaged logit keeps E[yig∣xig]=Λ(xig′β)\mathbb{E}[y_{ig}\mid x_{ig}]=\Lambda(x_{ig}'\beta) after within-cluster correlation has been averaged out. A working correlation, such as equicorrelation, can be placed inside the fit. A robust variance stays valid when that working correlation is wrong, provided the mean is right and the number of clusters grows. A random-effects logit, with a cluster intercept inside Λ\Lambda, is a different parameter. The population-averaged coefficient and the conditional coefficient are not two estimates of one number. Maximum likelihood solves the score of a fully specified density. A method of moments estimator is the just-identified case in which sample moments are matched to population moments. The sandwich estimator is the variance formula that uses the empirical variability of the moment instead of the model-based one.[2][1]

Worked example

The observations 2,4,62,4,6 and the estimating function g(y,μ)=y−μg(y,\mu)=y-\mu have sample equation (2−μ)+(4−μ)+(6−μ)=0(2-\mu)+(4-\mu)+(6-\mu)=0, so 12−3μ=012-3\mu=0 and μ^=4\hat\mu=4, the sample mean. Suppose a second function g2(y,μ)=y2−(μ2+1)g_2(y,\mu)=y^2-(\mu^2+1) is added because a model claims E(Y2)=μ2+1\mathbb{E}(Y^2)=\mu^2+1. At μ=4\mu=4 the second sample average is (4+16+36)/3−(16+1)=18.667−17=1.667(4+16+36)/3-(16+1)=18.667-17=1.667, not zero. The two equations cannot be solved together. A one-parameter fit must compromise. With equal weight on the two sample averages after they are left in their raw units, the criterion gn1(μ)2+gn2(μ)2g_{n1}(\mu)^2+g_{n2}(\mu)^2 is a generalised-method-of-moments objective. Its minimiser is not required to zero either coordinate. The just-identified estimator from g1g_1 alone remains μ^=4\hat\mu=4, and it simply does not use g2g_2.[2]

Your turn. Observations 1,3,81,3,8. Solve the estimating equation ∑i(yi−μ)=0\sum_i(y_i-\mu)=0. Then evaluate the sample average of yi2−(μ2+1)y_i^2-(\mu^2+1) at that solution. Is the second equation satisfied?

The first equation gives μ^=(1+3+8)/3=4\hat\mu=(1+3+8)/3=4. The second sample average is (1+9+64)/3−(16+1)=74/3−17=7.666…(1+9+64)/3-(16+1)=74/3-17=7.666\ldots, which is not zero. The second equation is not satisfied at the solution of the first.

Common misconceptions

An estimating equation is not a generalised estimating equation unless the mean-zero function is the clustered marginal score those equations use. Solving the sample moment equals zero is not maximum likelihood unless the moment is the score of a correctly specified likelihood. Overidentification is not a defect to be ignored: extra valid moments can improve asymptotic precision when the weight is the inverse of their variance, and extra invalid moments pull the estimator toward a value where the population moment is not zero. A weight matrix changes the estimator when there are more moments than parameters. It does not change the estimator in the just-identified case, where every nonsingular weighting still selects the unique root. In a nonlinear clustered model, a robust standard error after a random-effects fit does not convert that fit into the population-averaged parameter. The two likelihoods are aimed at different coefficients.[2]

Connections

The method of moments solves a just-identified estimating equation by matching sample moments to population moments, the procedure Pearson formulated in the 1890s. Maximum likelihood solves the score. Fisher introduced that method in 1912 and, in 1922, set out estimation as its own subject, with the later terms biased, efficient, and sufficient attached to estimators in 1925. Generalised estimating equations are the marginal-mean system for clustered responses associated with Liang and Zeger. The sandwich estimator estimates the variance of a root from the empirical moments. Instrumental variables are the case E[u∣Z]=0\mathbb{E}[u\mid Z]=0 with ZZ not equal to the regressors. An estimator, in Dodge’s distinction, is the function of the sample. The estimate is the number that function takes in one sample. A root of an estimating equation is an estimator. The fitted μ^=4\hat\mu=4 in the worked example is an estimate.[1][2]

Check yourself

Try these questions before opening an answer.

Sample mean

Observations 2, 4, and 6. What solves the sum of (y minus mu) equals 0?

The solution is mu = 4.

A second sample

Observations 1, 3, and 8. What solves the same estimating equation?

The solution is mu = 4.

A second moment

At mu = 4 for observations 1, 3, and 8, is the average of y squared minus (mu squared + 1) equal to zero?

No. The average is 74/3 minus 17, about 7.667.

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d a. (pp. 184–185) b. (p. 184) c. (p. 184) d. (pp. 184–185) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
  2. ^ a b c d e f g h i j a. (§VII, §VII.C) b. (§VII.B) c. (§VII.B, §VII.B.3) d. (§VII.B.3, §VII.C) e. (§VII.B) f. (§VII.B, §VII.C) g. (§VII.C) h. (§VII.B) i. (§VII.B.3, §VII.C) j. (§VII.C) Cameron, A. C. & Miller, D. L. (2015). A Practitioner's Guide to Cluster-Robust Inference. Journal of Human Resources, 50(2), 317–372. https://doi.org/10.3368/jhr.50.2.317
Cite this page
Plain text
StatWiki (2026). "Estimating equations." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/estimating-equations.html
BibTeX
@misc{statwiki_estimating_equations,
  author = {{StatWiki}},
  title = {{Estimating equations}},
  year = {2026},
  url = {https://www.statwiki.io/articles/estimating-equations.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}