|Previous tutorial: Part A: Variance and Standard Deviation of a Set of Scores|
|This tutorial: Part B: Variance and Standard Deviation of a Random Variable|
Variance and Standard Deviation of a Random Variable
If X is a finite random variable taking on values x1, x2, . . . , xn, then the variance of X is
The best way to compute the variance and standard deviation) from the probability distribution of X is to use a tabular approach similar to the one we used in the preceding tutorial. Here is an example that illustrates this method:
Let us start with the distribution we looked at in the tutorial for Section 8.3:
First, we get the expected value as before:
So, = Sum of numbers in the third row = 0 + .2 + .8 + .6 + .4 = 2. (So far, we have done nothing new.)
Now comes the new part: we need to find the expected value of the square distance from the mean, so we add three new rows:
Then 2 = Sum of numbers in the bottom row = .4 + .2 + 0 + .2 + .4 = 1.2. The standard deviation is its square root: 1.0954.
Note that we got the bottom row by multiplying the probabilities (Row 2) by the square deviations from the mean (Row 5).
Here is one for you to do. It is really a continuation of the one you did in the tutorial for Section 8.3.
Distribution of X:
You already computed the the mean in the earlier tutorial, so we are giving you that part and asking you to fill out the rest of the table yourself.
Note: Do not use commas when entering large numbers. For instance, 10,000 should be entered as 10000.
Q Why didn't we divide by n or n-1 as we did for sets of scores?
A Look at how we computed the expected value . Instead of adding and dividing by n -- which is wrong unless each of the values of X is equally likely -- we multipled each value of X by its probability and then added the results. Similarly, to get the variance, which is the expected value of the square deviation from the mean, we multiply each square deviation by its probability and add.
Q Do the Empirical Rule and Chebyshev's Rule still hold for random variables?
A Yes. For instance, in the first example above, the distribution looks bell shaped and symmetric (draw its graph to see) and so, by the Empirical Rule, there is an approximately .68 probability that X will lie within one standard deviation of the mean. That is, between
For notes on the expected value and standard deviation of a binomial random variable, consult the textbook.
Now try some of the exercises in Section 8.4 of Finite Mathematics and Finite Mathematics and Applied Calculus.