Tutorials › Statistical Theory III - Theories of Inference, Multivariate Methods, and Contingency Tables › A Worked Curved Normal Likelihood

Exponential-Family Likelihood Theory · Tutorial 634 of 972

A Worked Curved Normal Likelihood

Work through the likelihood for a normal model with variance tied to its positive mean, from its curved exponential-family representation to its maximum.

Intermediate 10 min read

What You'll Learn

  • Express the model as a one-dimensional curve in the two-dimensional normal natural-parameter space.
  • Derive the log-likelihood and its score from the sample sums.
  • Calculate expected and observed information and explain why they differ.
  • Obtain the likelihood estimate in closed form and establish when it is the unique maximum.
  • Identify the boundary case in which no finite likelihood estimate exists.

Introduction

A normal model usually assigns separate parameters to its mean and variance. Here those quantities are tied together: the mean is \(\mu\), the variance is \(\mu^2\), and \(\mu\) must be positive. This restriction makes the model a useful concrete example of a curved exponential family. Its likelihood is simple enough to analyze directly, but the constraint matters: the estimate must maximize the likelihood along the curve of allowed parameter values, not over an unconstrained two-parameter normal family.

Assume \(X_1,\ldots,X_n\) are independent and identically distributed with \(X_i\sim N(\mu,\mu^2)\), where \(\mu>0\). Write \(S_1=\sum_{i=1}^n X_i\) and \(S_2=\sum_{i=1}^n X_i^2\). We will derive the natural-parameter curve, the score and information, and the likelihood estimate.

The Curved Natural-Parameter Representation

The density of one observation is

$$ f(x;\mu)=\frac{1}{\sqrt{2\pi}\mu} \exp\left\{-\frac{(x-\mu)^2}{2\mu^2}\right\} =\exp\left\{\frac{x}{\mu}-\frac{x^2}{2\mu^2}-\log\mu-\frac12-\frac12\log(2\pi)\right\}. $$

The sufficient-statistic terms are \(x\) and \(x^2\). In the two-dimensional normal natural-parameter representation, their coefficients are \(\eta_1=\mu/\sigma^2\) and \(\eta_2=-1/(2\sigma^2)\). Substituting \(\sigma^2=\mu^2\) gives the following restriction.

Definition: The model \(N(\mu,\mu^2)\), \(\mu>0\), has natural parameters \(\eta_1=1/\mu\) and \(\eta_2=-1/(2\mu^2)\). They are restricted to the curve \(\eta_1>0,\ \eta_2=-\eta_1^2/2\) in the two-dimensional natural-parameter space. Thus the model has one free parameter, even though its sufficient statistics are two-dimensional.

Along this curve, the log normalizing term is \(A(\eta_1,\eta_2)=-\log\eta_1+\frac12+\frac12\log(2\pi)\). Indeed, substituting \(\eta_1=1/\mu\) gives \(A=\log\mu+\frac12+\frac12\log(2\pi)\), exactly the constant term in the log density. The curve is nonlinear, so differentiation with respect to \(\mu\) must account for how both natural parameters change.

Worked Example: Locating a Parameter Value on the Curve

Let \(\mu=2\). Then \(\sigma^2=4\), so the normal natural parameters are \(\eta_1=\mu/\sigma^2=2/4=1/2\) and \(\eta_2=-1/(2\sigma^2)=-1/8\). The curve restriction gives \(-\eta_1^2/2=-(1/2)^2/2=-1/8\), as required.

At this value, \(A=-\log(1/2)+1/2+\frac12\log(2\pi)=\log 2+1/2+\frac12\log(2\pi)\). The exponent in the density is therefore \(x/2-x^2/8-A\), which agrees with the direct normal density at mean \(2\) and variance \(4\).

Log-Likelihood and Score

For the independent sample, the log-likelihood, up to no omitted parameter-dependent terms, is

$$ \ell(\mu)=-n\log\mu-\frac{S_2}{2\mu^2}+\frac{S_1}{\mu} -\frac{n}{2}-\frac{n}{2}\log(2\pi),\qquad \mu>0. $$

Differentiating each parameter-dependent term gives the score \(U(\mu)=\ell'(\mu)\) and its derivative:

$$ U(\mu)=-\frac{n}{\mu}+\frac{S_2}{\mu^3}-\frac{S_1}{\mu^2}, \qquad \ell''(\mu)=\frac{n}{\mu^2}-\frac{3S_2}{\mu^4}+\frac{2S_1}{\mu^3}. $$

The score equation can be written \(S_2-S_1\mu-n\mu^2=0\). In particular, its terms involve both the sum and the sum of squares; setting the score to zero does not amount to matching the sample mean to the model mean.

Worked Example: Score and Observed Information at a Fixed Value

Take \(n=2\) and observations \(X_1=1,\ X_2=3\). Then \(S_1=1+3=4\) and \(S_2=1^2+3^2=10\). At \(\mu=2\), the score is

$$ U(2)=-\frac{2}{2}+\frac{10}{2^3}-\frac{4}{2^2} =-1+\frac{10}{8}-1=-\frac34. $$

The observed information is \(-\ell''(2)\). Substitution gives

$$ -\ell''(2)=-\left\{\frac{2}{2^2}-\frac{3(10)}{2^4} +\frac{2(4)}{2^3}\right\} =-\left\{\frac12-\frac{30}{16}+1\right\} =-\left(-\frac38\right)=\frac38. $$

Thus the observed information at \(\mu=2\) is \(3/8\). Its value need not equal the expected information; the latter averages over possible samples under a specified value of \(\mu\).

Fisher Information

For this one-parameter model, the Fisher information is the expectation of the squared score, or equivalently the negative expectation of the second derivative when the expectation is finite and the usual score identity conditions hold. Here both calculations are direct.

Result: For \(X_1,\ldots,X_n\) independent from \(N(\mu,\mu^2)\), with \(\mu>0\), the Fisher information is \(I_n(\mu)=3n/\mu^2\).

To verify the result, write one observation as \(X=\mu(1+Z)\), where \(Z\sim N(0,1)\). Its score is \(u(\mu)=-1/\mu+X^2/\mu^3-X/\mu^2=(Z^2+Z-1)/\mu\). Since \(E[Z]=E[Z^3]=0\), \(E[Z^2]=1\), and \(E[Z^4]=3\),

$$ E[u(\mu)^2] =\frac{E[(Z^2+Z-1)^2]}{\mu^2} =\frac{E[Z^4+2Z^3-Z^2-2Z+1]}{\mu^2} =\frac{3+0-1-0+1}{\mu^2} =\frac{3}{\mu^2}. $$

The observations are independent, so the variance of the sum of their scores is the sum of their variances; each score has mean zero. Hence \(I_n(\mu)=3n/\mu^2\). The same answer follows by expectation of the negative second derivative: \(E[S_1]=n\mu\) and \(E[S_2]=nE[X^2]=2n\mu^2\), so

$$ -E[\ell''(\mu)] =-\left\{\frac{n}{\mu^2}-\frac{3(2n\mu^2)}{\mu^4} +\frac{2(n\mu)}{\mu^3}\right\} =\frac{3n}{\mu^2}. $$

Worked Example: Expected Information for a Sample

Suppose \(n=5\) and evaluate the expected information at \(\mu=2\). The formula gives \(I_5(2)=3(5)/2^2=15/4\).

For one observation, the score variance is \(3/2^2=3/4\). Five independent score contributions therefore have total variance \(5(3/4)=15/4\), matching the sample information. This is an expectation over repeated samples; it is not a claim that every observed value of \(-\ell''(2)\) equals \(15/4\).

Likelihood Estimate and Its Uniqueness

Suppose \(S_2>0\), as occurs with probability one for a sample from this continuous model. The score equation is equivalent, for \(\mu>0\), to \(n\mu^2+S_1\mu-S_2=0\). This quadratic has exactly one positive root, since its two roots have product \(-S_2/n<0\). The positive root is

$$ \hat{\mu} =\frac{-S_1+\sqrt{S_1^2+4nS_2}}{2n}. $$
Theorem: If \(n\geq1\) and the observed sample satisfies \(S_2>0\), the expression above is the unique maximum likelihood estimate over \(\mu>0\).

Proof. Multiplying the score by \(\mu^3>0\) shows that its sign is the sign of \(q(\mu)=S_2-S_1\mu-n\mu^2\). The equation \(q(\mu)=0\) has exactly one positive root: the quadratic \(n\mu^2+S_1\mu-S_2\) has roots of opposite signs because their product is \(-S_2/n<0\). Since \(q(0)=S_2>0\) and \(q(\mu)\) is negative for sufficiently large \(\mu\), the score is positive before that positive root and negative after it. Thus the log-likelihood increases up to the root and decreases thereafter, making it the unique global maximum on \((0,\infty)\). Solving the quadratic gives the displayed estimate. \(\square\)

If \(S_2=0\), every observation is zero. Then the log-likelihood contains \(-n\log\mu-n/2\) plus a constant and tends to \(+\infty\) as \(\mu\) decreases to zero. There is no finite maximum likelihood estimate in the parameter space. This boundary case is possible for an arbitrary recorded data set, although it has probability zero under the continuous model.

Worked Example: Computing the Maximum Likelihood Estimate

Return to the observations \(1\) and \(3\), for which \(n=2\), \(S_1=4\), and \(S_2=10\). The score equation becomes \(2\mu^2+4\mu-10=0\). Its positive root is

$$ \hat{\mu} =\frac{-4+\sqrt{4^2+4(2)(10)}}{2(2)} =\frac{-4+\sqrt{96}}{4} =\frac{-4+4\sqrt{6}}{4} =\sqrt{6}-1\approx1.449. $$

Checking the root in the score numerator gives \(10-4(\sqrt{6}-1)-2(\sqrt{6}-1)^2=0\), so the score is zero there. The uniqueness result establishes that this stationary point is the global maximum, not a minimum or a competing local maximum.

Common Pitfall and Why the Constraint Matters

A common mistake is to maximize the normal likelihood as if the mean and variance were unrelated, then substitute the restriction \(\sigma^2=\mu^2\) afterward. That procedure need not give the maximum on the restricted family: the unrestricted estimates optimize over a larger parameter space and may not lie on the allowed curve. The correct approach is to substitute the constraint into the likelihood first and maximize the resulting one-parameter function, as above.

A second mistake is to treat observed information as though it were always the same as Fisher information. In the worked sample, the observed information at \(2\) is \(3/8\); for that same \(n=2,\mu=2\), the expected information is \(3n/\mu^2=3/2\). The discrepancy is not an arithmetic error: one is a sample-dependent curvature, while the other is its expectation under the model. This example makes the distinction particularly visible.

Key takeaway: The relation \(\sigma^2=\mu^2\) places the normal natural parameters on a curve. Differentiate the likelihood along that curve, use both sample sums in the score equation, and distinguish sample-specific observed curvature from expected information.

Check Your Understanding

Use the model \(X_i\sim N(\mu,\mu^2)\), with independent observations and \(\mu>0\).

  1. Write the relationship between \(\eta_1\) and \(\eta_2\), and explain why this is a curved one-parameter model.
  2. For a sample with \(n=3\), \(S_1=6\), and \(S_2=20\), write the score equation and the positive-root formula for the likelihood estimate.
  3. For one observation, express the score using \(Z=X/\mu-1\), where \(Z\sim N(0,1)\), and state its variance.
  4. Why can observed information at a particular parameter value differ from Fisher information?
  5. What happens to the likelihood when every recorded observation equals zero and \(\mu\) decreases toward zero?
Clinical Biostats