Law of total variance (source code)

= Law of total variance
{wiki}

Variance equals the variance of a conditional mean plus the mean conditional variance.