Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Conditioning a mixture

Fix the model first

Let ZZ be standard normal and let W0W\geq0 be independent of ZZ. For constants μ,βR\mu,\beta\in\mathbb R and σ>0\sigma>0, define

X=μ+βW+σWZ.X=\mu+\beta W+\sigma\sqrt W\,Z.

Conditional on W=w>0W=w>0, this is normal with mean μ+βw\mu+\beta w and variance σ2w\sigma^2w. At w=0w=0 it is a point mass at μ\mu. This conditional description does not require choosing a particular distribution for WW.

One exact calculation

Assume in addition that E[W2]<\mathbb E[W^2]<\infty. Conditional expectation gives

E[X]=μ+βE[W].\mathbb E[X]=\mu+\beta\mathbb E[W].

The law of total variance separates variation inside each conditional normal from variation of its mean:

Var(X)=E[Var(XW)]+Var(E[XW])=σ2E[W]+β2Var(W).\operatorname{Var}(X) =\mathbb E[\operatorname{Var}(X\mid W)] +\operatorname{Var}(\mathbb E[X\mid W]) =\sigma^2\mathbb E[W]+\beta^2\operatorname{Var}(W).

For the limiting case W=1W=1 almost surely, this reduces to a normal variable with mean μ+β\mu+\beta and variance σ2\sigma^2. The second-moment assumption is a sufficient condition for the displayed calculation, not a definition of every possible normal mixture.

The normal-mixtures note extends this calculation to vectors. The GH note uses the literature symbols Y=WY=W, γ=β\gamma=\beta, and Σ=σ2\Sigma=\sigma^2 in one dimension, while keeping ZZ standard normal and independent. Choosing a GIG law for the mixing variable leads to the posterior calculations in EM for GH.

This original derivation introduces a mathematical model, not an assertion about a specific normix constructor or parameterization. Consult the upstream package when writing executable package examples. Compare counting exceedances for a quantity that describes observations without specifying their model.