Techniqueadvanced
Quasi-likelihood
Also called Wedderburn quasi-likelihood, quasi-Poisson model.
Wedderburn's estimation that specifies only the mean and the variance function of the response. It gives GLM-like estimates and standard errors with overdispersion.
Quasi-likelihood fits a regression model when only the mean and the variance of the response are specified, not its whole distribution. The model says that for a link , and that for a known variance function and an unknown dispersion . Wedderburn (1974) observed that the score equations of a generalized linear model use only these two moments. So the same equations, solved by the same iteratively reweighted least squares loop, give estimates with likelihood-like properties for any . The most common case is the quasi-Poisson model for overdispersed counts: the coefficients are the Poisson ones, and the standard errors are multiplied by , where is the Pearson statistic divided by .
In plain words
Count data often vary more than the Poisson law allows. If you fit a Poisson model anyway, the fitted line is fine, but the model claims more precision than it has, and the intervals are too narrow. Quasi-likelihood says: do not pretend to know the whole law. State only how the average depends on the predictors and how the spread grows with the average. The fitting steps are the same as for a standard model, so the fitted line does not change. What changes is the uncertainty: an extra spread factor is estimated from the data, and every standard error is widened by its square root. The same idea works for proportions and for other kinds of data where only the average and the spread can be trusted.
When it applies
- Independent responses with a correct mean model , of rank , and a variance proportional to a known function of the mean, .
- No distribution needed. The responses need not be counts, integers or members of an exponential family; for example can be a proportion of leaf area.
- The quasi-score. With , a row vector of length ,
If the mean model is right, , since each term has the factor . If the variance model is also right,
because the derivative of multiplies and has expectation 0. These are exact, and they are the two properties of a likelihood score that the asymptotic theory uses. So behaves like a score, and plays the part of the Fisher information.
- The quasi-likelihood. has , so is the gradient of . For , up to a term without , the Poisson log-likelihood; for it is the Bernoulli log-likelihood, and for it is .
The template
QUASI-LIKELIHOOD(X[1..n, 1..p], y[1..n])- 1
choose LINK g and VARIANCE-FUNCTION V ▷ holes: the mean and variance model - 2
b ← START(y) ▷ hole: e.g. least squares of g(y + c) on X - 3
repeat - 4
η ← Xb; μᵢ ← g⁻¹(ηᵢ); wᵢ ← 1 / (V(μᵢ) g′(μᵢ)²); zᵢ ← ηᵢ + (yᵢ - μᵢ) g′(μᵢ) - 5
b ← weighted least squares of z on X with weights w - 6
until b stops changing - 7
φ̂ ← Σᵢ (yᵢ - μᵢ)² / V(μᵢ) / (n - p) ▷ Pearson X² over n - p - 8
return b, φ̂, φ̂ (Xᵀ W X)⁻¹ ▷ W = diag(w) at the solution
The holes are the link and the variance function (line L1) and the start (line L2). Lines L4 and L5 are one Fisher scoring step for : with , the step is exactly the weighted least squares fit of line L5, as for a generalized linear model. The dispersion cancels from , so the estimate does not depend on it, and enters only the covariance in line L8.
What is proved and what is cited. The identities and above are exact, and the step in lines L4 and L5 is exactly Fisher scoring. The following are cited: under regularity conditions is consistent and is asymptotically normal with covariance estimated by line L8 (McCullagh 1983); is consistent; and among estimating equations with weights that depend on but not on , the quasi-score gives the smallest asymptotic covariance, a Gauss-Markov property for estimating functions (McCullagh 1983; McCullagh and Nelder 1989, Sections 9.4 and 9.5). If is wrong but the mean model is right, is still consistent, and the covariance , with computed at and , the same form as heteroscedasticity-consistent standard errors, stays valid; line L8 does not.
Classic examples
Quasi-Poisson for overdispersed counts. Log link and , so . The quasi-score equations are the Poisson ones, . Take for and
The fit converges in 5 steps to . One can check the equations by hand: and . The Pearson statistic is on degrees of freedom, so .
| standard errors | intercept | slope |
|---|---|---|
| Poisson, | 0.2870 | 0.0422 |
| quasi-Poisson, | 0.4176 | 0.0615 |
| robust form, not trusted | 0.3339 | 0.0488 |
The quasi-Poisson errors are the Poisson ones times . The deviance is , and is a second, less stable estimate of .
Measured coverage. With equally spaced in , and counts with (Poisson counts whose mean is drawn from a gamma law), the coverage of the nominal 95% Wald interval for the slope over 2000 data sets was 0.747 with Poisson errors, 0.942 with quasi-Poisson errors and 0.932 with the robust form; the mean of was 2.97. With true Poisson counts () the three were 0.959, 0.952 and 0.937. The Monte Carlo standard error of each coverage is about 0.005. These values are measured with a script, not proved.
Quasi-binomial for overdispersed proportions. For the proportion of successes out of , take the logit link and . The estimates are those of logistic regression for grouped data, and shows extra-binomial variation, for example from litter or cluster effects.
Leaf blotch. Wedderburn (1974) analysed the percentage of leaf area of barley affected by leaf blotch, for ten varieties at nine sites, with a logit link and . A binomial variance does not fit such continuous proportions, and no standard distribution has this variance function, but the quasi-likelihood fit needs none; McCullagh and Nelder (1989, Section 9.2.4) repeat the analysis.
Constant coefficient of variation. with a log link gives the same equations as gamma regression, . With only an intercept the solution is .
Nonlinear least squares. and any mean function give , the normal equations of least squares, and line L5 becomes a Gauss-Newton step; this is the link to the Gauss-Newton method in the title of Wedderburn's paper.
Variations
- Correlated responses. Replace by the inverse of a working covariance matrix for a group of responses: this is generalized estimating equations, which pairs the multivariate quasi-score with the robust covariance.
- The robust covariance in place of . When the form of is in doubt, keep the point estimate and use the robust covariance above; the example table shows both.
- Extended quasi-likelihood. To compare variance functions or to model as a function of covariates, one needs a function that also depends on and ; McCullagh and Nelder (1989, Section 9.6) describe the extended quasi-likelihood of Nelder and Pregibon.
- Quasi-deviance. with measured from plays the role of the deviance. Differences of quasi-deviances divided by and by the difference in degrees of freedom give approximate F tests between nested mean models.
- Other estimating equations. Quasi-likelihood is a special case of M-estimation and of exactly identified generalized method of moments, with the estimating function chosen from the variance model.
Pitfalls
- No likelihood, so no AIC and no likelihood ratio test. is not a log-likelihood of any distribution in general. Use F tests based on the quasi-deviance and , or Wald tests with the scaled covariance.
- Overdispersion that grows with the mean. Quasi-Poisson assumes . If the variance grows like , as in a negative binomial law, the weights are wrong for large counts. The estimates stay consistent, but they lose efficiency, and line L8 is off; check plots of squared Pearson residuals against .
- Estimating from a wrong mean model. A missing predictor or a wrong link inflates , and is then a sign of a bad mean, not of overdispersion. Larger standard errors do not repair a biased mean.
- Small expected counts. With many below about 1, is a poor estimate of ; the deviance-based estimate is worse.
- Underdispersion. is allowed and shrinks the errors. Be careful: it is often a sign of a design feature, such as counts with a fixed total, that should be modelled.
Exercises
- Find the quasi-likelihood for and for , with . Answer. For , , which is plus a term without . For , , which is plus a term without , the gamma log-likelihood with shape 1.
- Show that the quasi-Poisson estimate equals the Poisson maximum likelihood estimate, and that its standard errors are the Poisson ones times . Answer. is after cancels, which is the Poisson score equation. The covariance is , where is the Poisson information.
- With , a log link and only an intercept, show that and that . Answer. , so gives . Then , and .
- Prove when the mean and variance models are right and the responses are independent. Answer. . The first sum has expectation 0. The variance of is the sum of the variances of independent terms, , which is the same matrix.
- In the quasi-Poisson example, the slope estimate is with quasi-Poisson standard error . Give an approximate 95% interval for the factor by which the mean count grows per unit of . Answer. , so the factor lies in about . With , a quantile 2.306 in place of 1.96 is a common, more cautious choice and gives .
References
- R. W. M. Wedderburn, Quasi-likelihood functions, generalized linear models, and the Gauss-Newton method, Biometrika 61(3), 1974, pp. 439 to 447, The whole paper (the quasi-likelihood defined from the mean and the variance function, its fit by the generalized linear model algorithm, and the leaf blotch example)
- Peter McCullagh, Quasi-likelihood functions, The Annals of Statistics 11(1), 1983, pp. 59 to 67, The whole paper (asymptotic normality of quasi-likelihood estimates, the dispersion estimate, dependent observations and the optimality of the quasi-score among linear estimating functions)
- P. McCullagh and J. A. Nelder, Generalized Linear Models, second edition, Chapman and Hall, 1989, Chapter 9 (quasi-likelihood functions; Section 9.2 for independent observations, 9.2.4 for the leaf blotch example, 9.4 and 9.5 for optimal estimating functions, 9.6 for extended quasi-likelihood)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag QRYGD4 Edit this page History Report an error Markdown