Mean and standard deviation of RVs
We have already seen that a discrete random variable with the possible outputs has the mean
and standard deviation
This means that if we repeat the experiment many times, then the average of all the outputs of is , and the typical deviation from this average is . If is a continuous random variable, we get the continuous version of these formulas, where we replace the sum with the integral:
The mean and standard deviation of a continuous random variable with probability density function is
and
Before we give arguments why these formulas are correct, let's make an example.
Consider a random experiment with a continuous random variable whose probability density function is
Determine the mean and standard deviation of .
Solution
We have to take the integral of the function
Thus,
We have used that is the anti-derivative of . And for the standard deviation we have
We have used that is the anti-derivative of . Thus, the standard deviation is
Now, to see why these formulas for the mean and standard deviation are correct, uncollapse. The proof is technical ... just try to follow.
Show
We divide the -axis into tiny bins ( of them), so that we have
where has size and the midpoint is . Now we can apply the formula for the discrete case, that is,
The proof for the standard deviation is similar.
The random variable has the density function
where is still to be determined.
-
Determine the value .
-
Determine the mean and the standard deviation of .
Solution
-
The integral has to be :
The antiderivative of is
thus we have the equation
Thus, it is .
-
For the average we have:
For the standard deviation we have
where the antiderivative of is
Thus, we get