Variance
Just from the definition of the range, we can see why that wouldn't always be the best way to measure the spread of our data. It gives us upper and lower bounds on what we have in the data, however, if we have any outliers in our data, the range will be rendered useless.
Another problem with the range is that it doesn't tell us how the data is dispersed around its center; it really only tells us how dispersed the entire dataset is. Enter the variance, which describes how far apart observations are spread out from their average value (the mean). The population variance is denoted as sigma-squared (σ2), and the sample variance is written as (s2).
The variance is calculated as the average squared distance from the mean. The distances ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access