Tutorials › Econometrics (Graduate) › Extra-Binomial Variation in Grouped Responses

Binary Choice Models · Tutorial 475 of 952

Extra-Binomial Variation in Grouped Responses

Learn to diagnose excess grouped-response variation and understand what quasi-binomial and beta-binomial models change about inference and fit.

Intermediate 10 min read

What You'll Learn

  • State the binomial mean and variance assumptions for grouped responses.
  • Use Pearson residual variation to flag extra-binomial dispersion.
  • Explain how a quasi-binomial adjustment changes standard errors and inference.
  • Derive the beta-binomial variance and interpret its within-group correlation.
  • Compare the inferential and model-fit implications of the two approaches.

Why Grouped Responses Can Vary More Than the Binomial Model Predicts

A grouped binary outcome records, for each group, how many of its members have an outcome of interest. A grouped binomial logit model describes the expected count through a probability that depends on covariates. But a correct mean model does not guarantee that the counts vary as much as the binomial model predicts. If their observed spread is larger, standard errors based on the binomial variance can be too small, and goodness-of-fit summaries can signal a poor fit.

This excess spread is called extra-binomial variation or overdispersion. It is a feature of the variation around the fitted means, not a specific explanation for why that variation occurs. It can reflect unmodeled differences among groups, dependence among individuals within a group, or another mismatch between the data and the binomial variance assumption.

Definition: For group \(j\), let \(Y_j\) be the number of outcomes among \(m_j\) individuals, and let \(p_j\) be the probability of the outcome under the fitted model. The binomial model assumes \(Y_j\sim\operatorname{Binomial}(m_j,p_j)\), so \(E(Y_j)=m_jp_j\) and \(\operatorname{Var}(Y_j)=m_jp_j(1-p_j)\). Extra-binomial variation means that the observed counts vary more than this binomial variance model accounts for.

The standard grouped binomial specification also assumes that groups are independent and that, within each group, individuals have the same outcome probability and are independent conditional on the model. These assumptions produce the binomial variance. When they are not adequate, the estimated mean relationship may still be useful, but binomial-based uncertainty and fit assessments need reconsideration.

Diagnosing Excess Variation

A common diagnostic is the Pearson dispersion ratio. Let \(\hat p_j\) be the fitted probability for group \(j\), and let \(G\) be the number of groups. The Pearson statistic sums squared differences between observed and fitted counts, scaled by their fitted binomial variances. Dividing by residual degrees of freedom gives a rough estimate of dispersion.

$$ X^2_{\text{Pearson}} = \sum_{j=1}^{G} \frac{(y_j-m_j\hat p_j)^2}{m_j\hat p_j(1-\hat p_j)}, \qquad \hat\phi = \frac{X^2_{\text{Pearson}}}{G-k}, $$

Here \(y_j\) is the observed count and \(k\) is the number of estimated mean-model parameters, so the residual degrees of freedom are \(G-k\). Under a well-fitting binomial model and suitable large-sample conditions, the Pearson statistic is often roughly comparable to its degrees of freedom, making \(\hat\phi\) near 1. A ratio substantially above 1 is evidence of extra variation; it is a diagnostic, not a universal formal test. Sparse groups, probabilities near 0 or 1, and a small number of groups can make this approximation unreliable.

Worked Example: A Pearson Dispersion Diagnostic

Suppose four hypothetical groups each contain 20 individuals. Their observed positive counts are 1, 2, 7, and 6. Fit an intercept-only grouped binomial model, so all groups share one estimated probability.

The fitted probability is the total count divided by the total number of individuals:

$$ \hat p=\frac{1+2+7+6}{4(20)}=\frac{16}{80}=0.20. $$

Each fitted count is \(20(0.20)=4\), and each fitted binomial variance is \(20(0.20)(0.80)=3.2\). Therefore,

$$ X^2_{\text{Pearson}} = \frac{(1-4)^2+(2-4)^2+(7-4)^2+(6-4)^2}{3.2} = \frac{9+4+9+4}{3.2} = 8.125. $$

There are \(G-k=4-1=3\) residual degrees of freedom, giving \(\hat\phi=8.125/3=2.708\). This ratio is considerably above 1 and flags more group-to-group variation than the fitted binomial model predicts. With only four groups, it should be treated as a warning rather than a precise estimate of a population dispersion level.

The residual deviance divided by residual degrees of freedom is another commonly inspected summary. Like the Pearson ratio, it can indicate excess variation, but it is not an exact diagnostic in every finite sample. Neither ratio identifies the source of the discrepancy. Plots of residuals against fitted probabilities or covariates can help reveal patterns, but a large dispersion ratio alone does not establish which alternative model is appropriate.

Quasi-Binomial Adjustment

A quasi-binomial specification retains the binomial mean structure but allows the variance to be multiplied by a dispersion parameter \(\phi\). For grouped counts, its variance assumption is \(\operatorname{Var}(Y_j)=\phi m_jp_j(1-p_j)\). When \(\phi>1\), groups have more count variation than the binomial model allows at the same fitted probability.

Definition: A quasi-binomial mean-variance model specifies \(E(Y_j)=m_jp_j\) and \(\operatorname{Var}(Y_j)=\phi m_jp_j(1-p_j)\), where \(\phi\) is a dispersion parameter. It specifies these moments without asserting a complete probability distribution for \(Y_j\).

With a logit mean model and one common \(\phi\), the estimated regression coefficients are the same as under the grouped binomial model: the quasi score is the binomial score multiplied by the common factor \(1/\phi\), which does not change its zero. The variance adjustment therefore changes estimated uncertainty, not the fitted mean probabilities. A model-based standard error is multiplied by approximately \(\sqrt{\hat\phi}\), when the same common dispersion estimate is used.

Worked Example: Adjusting a Logit Standard Error

Suppose a hypothetical grouped binomial logit fit estimates a coefficient of \(0.40\) log-odds units per one-unit increase in a covariate, with binomial-model standard error \(0.12\). The Pearson diagnostic gives an estimated dispersion of \(\hat\phi=2.25\).

The quasi-binomial standard error is approximately

$$ SE_{\text{quasi}} = SE_{\text{binomial}}\sqrt{\hat\phi} = 0.12\sqrt{2.25} = 0.12(1.5) = 0.18. $$

The coefficient remains \(0.40\), but the standard error increases. A normal-reference statistic for testing a zero coefficient is \(0.40/0.18=2.22\), with a two-sided p-value of about \(0.026\). Using the unadjusted standard error instead gives \(0.40/0.12=3.33\), with a two-sided p-value of about \(0.0009\). Thus, in this hypothetical calculation, allowing for excess variation makes the evidence against a zero coefficient less strong. The coefficient describes a change in log odds, not a change in probability.

Quasi-binomial inference is appealing when the mean model is the main target and a variance adjustment is sufficient. However, quasi-likelihood does not supply a full probability distribution for counts. Consequently, ordinary likelihood-based criteria such as AIC are not defined for comparing a quasi-binomial fit in the same way they are for a fully specified likelihood model. Inference also relies on adequate large-sample approximations; a dispersion correction does not repair a misspecified mean relationship or dependence between groups.

Beta-Binomial Model

The beta-binomial model gives a specific distributional account of extra variation. It treats the outcome probability within each group as varying across groups. Conditional on a group-specific probability \(Q_j\), the count is binomial; across groups, \(Q_j\) follows a beta distribution. This is a model for grouped heterogeneity, not a claim that the variation must have a particular real-world cause.

Definition: In a beta-binomial model, \(Q_j\sim\operatorname{Beta}(a_j,b_j)\) and \(Y_j\mid Q_j\sim\operatorname{Binomial}(m_j,Q_j)\). Define \(\mu_j=a_j/(a_j+b_j)\) and \(\rho_j=1/(a_j+b_j+1)\). Then \(E(Y_j)=m_j\mu_j\) and \(\operatorname{Var}(Y_j)=m_j\mu_j(1-\mu_j)\{1+(m_j-1)\rho_j\}\).

The beta distribution allows the underlying probability to vary among groups. The parameter \(\mu_j\) is its mean, while \(\rho_j\) measures the resulting within-group association between two binary outcomes. In regression applications, \(\mu_j\) can be modeled as a function of covariates, for example with a logit link, while \(\rho\) is often taken to be common across groups.

Why the Beta-Binomial Variance Is Larger

The variance formula follows from conditioning on \(Q_j\). Given \(Q_j\), the binomial count has mean \(m_jQ_j\) and variance \(m_jQ_j(1-Q_j)\). The law of total variance says that the unconditional variance is the expected conditional variance plus the variance of the conditional mean.

$$ \begin{aligned} \operatorname{Var}(Y_j) &=E\{\operatorname{Var}(Y_j\mid Q_j)\} +\operatorname{Var}\{E(Y_j\mid Q_j)\}\\ &=m_jE\{Q_j(1-Q_j)\}+m_j^2\operatorname{Var}(Q_j)\\ &=m_j\mu_j(1-\mu_j)\{1+(m_j-1)\rho_j\}. \end{aligned} $$

For the last equality, a beta random variable with mean \(\mu_j\) and concentration \(a_j+b_j\) has variance \(\mu_j(1-\mu_j)\rho_j\). Also, \(E\{Q_j(1-Q_j)\}=\mu_j(1-\mu_j)-\operatorname{Var}(Q_j)\). Substituting these two identities into the preceding line gives the stated variance. When \(\rho_j=0\), the variance reduces to the binomial variance; for positive \(\rho_j\) and \(m_j>1\), it is larger.

Worked Example: Beta-Binomial Variance Inflation

Consider hypothetical groups of \(m=10\) individuals with mean outcome probability \(\mu=0.30\) and within-group correlation \(\rho=0.15\). Under the binomial model, the expected count is \(10(0.30)=3\) and the variance is

$$ 10(0.30)(0.70)=2.10. $$

The beta-binomial variance is

$$ 10(0.30)(0.70)\{1+(10-1)(0.15)\} = 2.10(2.35) = 4.935. $$

The corresponding standard deviation is \(\sqrt{4.935}\approx2.221\), compared with \(\sqrt{2.10}\approx1.449\) under the binomial model. The beta distribution parameters implied by these values are \(a+b=1/\rho-1=5.667\), \(a=\mu(a+b)=1.700\), and \(b=(1-\mu)(a+b)=3.967\). This shows how a group-level distribution of probabilities can produce substantially more variation in counts while preserving the same mean probability.

Choosing Between the Approaches

FeatureQuasi-binomialBeta-binomial
MeanBinomial mean structureMean probability modeled across groups
Extra variationMultiplies binomial variance by \(\phi\)Uses a beta distribution of group probabilities
DistributionSpecifies moments, not a full count distributionSpecifies a full marginal count distribution
Typical useAdjust uncertainty when a common variance scale is adequateModel group-level probability heterogeneity explicitly
Likelihood-based comparisonNot available in the ordinary likelihood senseAvailable through its specified likelihood

These approaches are not interchangeable in every application. The quasi-binomial variance inflation is a simple adjustment; its multiplier does not depend on group size beyond the binomial variance already in the formula. In the beta-binomial model, the inflation factor is \(1+(m_j-1)\rho\), so it increases with group size. The beta-binomial approach is useful when that structure is plausible and a full count distribution is needed. Either approach still depends on a suitable mean model and independent groups.

Common Pitfall: Treating Overdispersion as a New Mean Effect

A large Pearson ratio does not show that a covariate has a stronger effect, nor does it identify a particular omitted variable or dependence mechanism. It says that the observed counts vary more than expected under the fitted binomial variance. Adding a dispersion correction changes uncertainty estimates; it does not automatically change the fitted probabilities or correct a wrong mean structure. Likewise, selecting a beta-binomial model does not prove that group probabilities truly follow a beta distribution.

A practical analysis first checks the grouped mean specification and examines residual patterns, then assesses whether excess variation is present. If a common variance inflation is adequate for the intended inference, quasi-binomial methods may suffice. If the distribution of counts or a group-probability heterogeneity structure matters, a beta-binomial model may be more informative. Report the approach and its assumptions rather than presenting a dispersion ratio as a diagnosis of cause.

Key takeaway: The binomial model links the grouped mean to a specific variance. Extra-binomial variation challenges that variance assumption. Quasi-binomial methods inflate it with a common dispersion parameter; beta-binomial methods model group probabilities as varying and imply a size-dependent variance inflation.

Check Your Understanding

Use the definitions and calculations above to answer these questions.

  1. What conditional independence and common-probability assumptions give a grouped count its binomial variance?
  2. If the Pearson statistic is 24 and the residual degrees of freedom are 8, calculate the estimated dispersion and interpret it cautiously.
  3. Under a common quasi-binomial dispersion of 4, by what factor is a binomial-model standard error multiplied?
  4. For a beta-binomial group of size \(m=6\) with \(\rho=0.10\), calculate the variance inflation factor relative to the binomial variance.
  5. Why does quasi-binomial adjustment not, by itself, fix a misspecified mean relationship?
Clinical Biostats