Chapter 3: computing the variance of a distribution