CalculateQuestion 1 · Apply
Loading…
By the end you can calculate , use it to find , and take the square root to obtain the standard deviation.
Two random variables can share the same expectation and still behave completely differently. One might always give a value near its mean; the other might swing wildly.
Variance measures that difference. It is the average squared distance of from its mean, so a small variance means the values cluster tightly around , and a large variance means they spread out.
Squaring does two jobs: it removes the sign, so values above and below the mean both count as distance, and it punishes large deviations more heavily than small ones.
Variance and standard deviation
For a discrete random variable ,
where , computed by squaring each value before multiplying by its probability.
The standard deviation is , which returns to the original units of .
Variance is never negative, because a squared distance cannot be negative. If you get a negative answer, the arithmetic is wrong.
The definition of variance is : find the distance from the mean, square it, and average. That is exactly "average squared distance".
Here ("mu") is the mean, . The next step uses two facts about expectation (you do not need to prove them): the expectation of a sum is the sum of the expectations, and a constant multiplier can be taken outside, so and .
Expanding the bracket gives . Since , this becomes .
So the two forms are the same quantity. The calculation form is preferred because it needs only two sums, rather than working out separately for every value. Keep exact when you square it, or the answer can lose accuracy.
Worked example: Example 1: variance from a table
has the distribution below. Find , , and the standard deviation.