Tutorials › Generalized Linear Models › Matching Variance Growth to a Family

Choosing Continuous Families · Tutorial 635 of 981

Matching Variance Growth to a Family

Learn to compare the variance growth implied by Gaussian, gamma, and inverse-Gaussian models and use it as one piece of evidence when choosing a family.

Intermediate 10 min read

What You'll Learn

  • State the variance functions for Gaussian, gamma, and inverse-Gaussian models.
  • Compare how their variances change as the mean increases.
  • Derive the gamma and inverse-Gaussian variance relationships from their distributions.
  • Use numerical mean–variance patterns to assess which variance growth is more compatible with observations.
  • Explain why a matching variance pattern is evidence about a family, not proof of a distribution.

Why Compare Variance Growth?

For a positive response, a plausible mean is not the only feature a model must represent. The amount of variation around that mean matters too. In particular, does the response variance stay roughly constant as the mean changes, or does it rise with the mean? If it rises, does it grow at a rate closer to the square or the cube of the mean? These questions distinguish three familiar continuous families.

The comparison is about the relationship between a response’s mean and variance, not simply about whether the response is positive or skewed. A variance pattern can help screen candidate models, but it cannot by itself establish a full probability distribution. The shape of the distribution, its support, and the scientific setting also matter.

Definition: For a response with mean \(\mu\), a variance function \(V(\mu)\) describes how its variance depends on that mean. In the models considered here, \(\operatorname{Var}(Y)=\phi V(\mu)\), where \(\phi>0\) is a dispersion parameter. The three variance functions are \(V(\mu)=1\) for a Gaussian model, \(V(\mu)=\mu^2\) for a gamma model, and \(V(\mu)=\mu^3\) for an inverse-Gaussian model.

Here \(\mu>0\) for the gamma and inverse-Gaussian models, whose responses have positive support. The Gaussian response can take any real value. Its constant variance may still be a useful approximation for a positive outcome in some settings, but positivity alone does not make a Gaussian model appropriate. The dispersion parameter scales each variance function; the key comparison is how the variance changes with \(\mu\) when \(\phi\) is held fixed.

The Three Growth Patterns

The Gaussian variance does not depend on the mean. The gamma variance is proportional to \(\mu^2\), so multiplying the mean by a factor \(c\) multiplies the variance by \(c^2\). The inverse-Gaussian variance is proportional to \(\mu^3\), so the same change multiplies the variance by \(c^3\). Thus the inverse-Gaussian variance grows fastest as the mean increases.

FamilyVariance relationshipVariance change when \(\mu\) is multiplied by \(c\)
Gaussian\(\operatorname{Var}(Y)=\phi\)Unchanged
Gamma\(\operatorname{Var}(Y)=\phi\mu^2\)Multiplied by \(c^2\)
Inverse-Gaussian\(\operatorname{Var}(Y)=\phi\mu^3\)Multiplied by \(c^3\)

A useful comparison is the ratio of variances at two means. If both observations follow the same variance function with the same dispersion, then for positive means \(\mu_1\) and \(\mu_2\), the variance ratio is \(1\), \((\mu_2/\mu_1)^2\), or \((\mu_2/\mu_1)^3\), respectively. The ratio removes the shared dispersion parameter. This makes the rate of growth easier to compare, although real data provide estimates, not exact population variances.

Result: Suppose \(\operatorname{Var}(Y\mid\mu)=\phi\mu^p\) at each of two positive means, with the same \(\phi>0\) and the same power \(p\). Then \[ \frac{\operatorname{Var}(Y\mid\mu_2)}{\operatorname{Var}(Y\mid\mu_1)} =\left(\frac{\mu_2}{\mu_1}\right)^p. \] The Gaussian case is the constant-variance case, corresponding to \(p=0\); gamma and inverse-Gaussian cases have \(p=2\) and \(p=3\).

Proof. Substituting the assumed variance at each mean gives \[ \frac{\operatorname{Var}(Y\mid\mu_2)}{\operatorname{Var}(Y\mid\mu_1)} =\frac{\phi\mu_2^p}{\phi\mu_1^p} =\left(\frac{\mu_2}{\mu_1}\right)^p, \] because \(\phi\) is positive and cancels. For a constant variance, the ratio is \(\phi/\phi=1\). \(\square\)

The same idea can be expressed as a local growth rate. For a power variance, the logarithm of the variance is a straight-line function of the logarithm of the mean, with slope equal to the power. This is a concise way to describe why “squared” and “cubed” refer to distinctly different rates.

Result: If \(V(\mu)=\phi\mu^p\) for \(\mu>0\) and fixed \(\phi>0\), then the log–log slope of the variance against the mean is \(p\): \[ \frac{d\log V(\mu)}{d\log\mu}=p. \]

Proof. Since \(\log V(\mu)=\log\phi+p\log\mu\), differentiating with respect to \(\log\mu\) gives \(p\). Equivalently, using the chain rule, \(\frac{d\log V}{d\log\mu}=\frac{\mu}{V(\mu)}\frac{dV(\mu)}{d\mu}=\frac{\mu}{\phi\mu^p}p\phi\mu^{p-1}=p\). \(\square\)

Where the Gamma and Inverse-Gaussian Variances Come From

The powers in the variance functions are properties of the distributions’ parameterizations, not labels chosen from a visual impression. For the gamma model, take shape \(a=1/\phi\) and scale \(b=\phi\mu\). A gamma random variable with shape \(a\) and scale \(b\) has mean \(ab\) and variance \(ab^2\). Substitution gives \[ E[Y]=\frac{1}{\phi}(\phi\mu)=\mu,\qquad \operatorname{Var}(Y)=\frac{1}{\phi}(\phi\mu)^2=\phi\mu^2. \]

For the inverse-Gaussian model, use mean parameter \(\mu>0\) and shape parameter \(\lambda=1/\phi>0\). Its density for \(y>0\) is \[ f(y)=\left(\frac{\lambda}{2\pi y^3}\right)^{1/2} \exp\left\{-\frac{\lambda(y-\mu)^2}{2\mu^2y}\right\}. \] Its moment-generating function, for \(t<\lambda/(2\mu^2)\), is \[ M(t)=\exp\left\{\frac{\lambda}{\mu}\left(1-\sqrt{1-\frac{2\mu^2t}{\lambda}}\right)\right\}. \] Let \(g(t)=\log M(t)\). Direct differentiation gives \[ g'(t)=\mu\left(1-\frac{2\mu^2t}{\lambda}\right)^{-1/2}, \qquad g''(t)=\frac{\mu^3}{\lambda}\left(1-\frac{2\mu^2t}{\lambda}\right)^{-3/2}. \] Since \(M(0)=1\), \(M'(0)=g'(0)=\mu\), and \(M''(0)=g''(0)+[g'(0)]^2=\mu^3/\lambda+\mu^2\). Therefore \(\operatorname{Var}(Y)=M''(0)-[M'(0)]^2=\mu^3/\lambda=\phi\mu^3\).

Worked Comparisons

Worked Example: Doubling the Mean

Suppose the mean changes from \(\mu_1=2\) to \(\mu_2=4\), while the dispersion is fixed at \(\phi=0.25\). Calculate both variances under each candidate family.

Gaussian. The variance is \(\phi=0.25\) at both means, so the ratio is \(0.25/0.25=1\).

Gamma. At mean 2, the variance is \(0.25(2^2)=1\). At mean 4, it is \(0.25(4^2)=4\). The ratio is \(4/1=4=2^2\).

Inverse-Gaussian. At mean 2, the variance is \(0.25(2^3)=2\). At mean 4, it is \(0.25(4^3)=16\). The ratio is \(16/2=8=2^3\).

All three models can have the same mean at either point, but their predicted variance changes differ: no change, a fourfold increase, or an eightfold increase. Matching the mean alone would not reveal this difference.

Worked Example: Comparing Growth From a Common Anchor

Suppose three models are calibrated to have variance 3 when \(\mu=2\). What does each predict for the variance at \(\mu=6\)? Since the mean triples, the variance ratios are 1, \(3^2=9\), and \(3^3=27\).

For the Gaussian model, the variance remains 3. For the gamma model, it becomes \(3\times9=27\). For the inverse-Gaussian model, it becomes \(3\times27=81\).

The implied dispersions, if needed to check the calibration, are \(\phi=3\) for Gaussian, \(\phi=3/2^2=0.75\) for gamma, and \(\phi=3/2^3=0.375\) for inverse-Gaussian. Substitution at \(\mu=6\) gives \(3\), \(0.75(36)=27\), and \(0.375(216)=81\), as above. The three values illustrate how strongly the candidate variance patterns separate over a wider range of means.

Worked Example: Reading Two Mean–Variance Summaries

Suppose two groups of positive responses have estimated means 2 and 4, and estimated variances 1 and 4. Assess which of the three variance patterns these summaries most closely follow.

The estimated variance ratio is \(4/1=4\), while the estimated mean ratio is \(4/2=2\). A constant-variance pattern predicts a ratio of 1, a squared-mean pattern predicts \(2^2=4\), and a cubed-mean pattern predicts \(2^3=8\). Of these simple predictions, the squared-mean pattern matches the observed ratio.

The same conclusion follows by checking variance divided by the relevant power of the mean. For the squared-mean pattern, the values are \(1/2^2=0.25\) and \(4/4^2=0.25\), exactly equal. For the constant pattern, the variances 1 and 4 are not equal. For the cubed-mean pattern, the corresponding values are \(1/2^3=0.125\) and \(4/4^3=0.0625\), which are not equal.

This calculation makes gamma-type variance growth a reasonable candidate for further consideration. It does not prove that the responses follow a gamma distribution: the summaries are estimates, and distinct distributions can share the same first two moments.

Using the Pattern Without Overclaiming

A practical comparison asks whether the observed variation changes little, approximately with the square of the mean, or more steeply in a way compatible with cubic growth. Means and variances are most informative when they summarize comparable observations under similar conditions. If observations within a group have different underlying means, the group variance can reflect that extra variation as well as the response’s conditional variance. Thus a rough match in summaries should be treated as a clue, not a definitive test.

The dispersion parameter also matters. Two families may have very different values of \(\phi\), yet each can match the variance at one particular mean. The distinction appears in how variance then changes across means. This is why comparing growth across a range of means is more informative than comparing a single variance in isolation.

Finally, variance growth is only one feature of a distribution. A Gaussian model has support on the whole real line, whereas gamma and inverse-Gaussian distributions are positive. Even among positive families, similar variance functions do not guarantee the same tail behavior or distributional shape. A proposed family should be assessed using the response’s support and other relevant features as well as its variance pattern.

Common Pitfall

  • Wrong reasoning: “The variance is larger in the group with the larger mean, so the inverse-Gaussian model must be correct.”
  • Correction: A larger variance alone does not identify cubic growth. Compare the variance ratio with the predictions from each candidate power, and account for uncertainty in estimated means and variances. Even a clear match to cubic growth supports a variance relationship, not a proof of the full inverse-Gaussian distribution.
  • Wrong reasoning: “The variance function has a squared mean, so the variance must equal \(\mu^2\).”
  • Correction: In this parameterization, the variance is \(\phi\mu^2\). The dispersion \(\phi\) scales the variance; the exponent describes its growth with the mean.
Key takeaway: With dispersion held fixed, Gaussian, gamma, and inverse-Gaussian models imply constant, squared-mean, and cubed-mean variance growth, respectively. Compare these rates across means, and treat the result as evidence for family choice rather than a distributional verdict.

Check Your Understanding

Use the variance functions and growth-rate comparisons to answer the following.

  1. If the mean is multiplied by 3, by what factor does the variance change under each of the three families?
  2. A gamma model has \(\phi=0.2\) and mean \(\mu=5\). Calculate its variance.
  3. Two groups have means 3 and 6. What variance ratio does each family predict if dispersion is the same?
  4. Why can matching an observed variance ratio to a squared-mean pattern not prove that the response is gamma distributed?
  5. What feature of a Gaussian model’s support is relevant when considering a response known to be strictly positive?
Clinical Biostats