If is a random variable with corresponding probability density function , then we define the expected value of to be
We define the variance of to be
As with the variance of a discrete random variable, there is a simpler formula for the variance.
The expected value should be regarded as the average value. When is a discrete random variable, then the expected value of is precisely the mean of the corresponding data.
The variance should be regarded as (something like) the average of the difference of the actual values from the average. A larger variance indicates a wider spread of values.
As with discrete random variables, sometimes one uses the standard deviation, , to measure the spread of the distribution instead.
The uniform distribution on the interval has the
probability density function
Letting be the associated random variable, compute and .
We compute
Hence,
Let be the random variable with probability density function .
Compute and .
Integrating by parts with and , we see that . Thus,
[We used L'Hôpital's rule to see that .]
We compute
So,
This gives .
Suppose that the random variable has a cumulative distribution function
Compute and .
First, we must find the probability density function of . Differentiating we find that the function
is the derivative of at all but two points. Thus, is a probability density function for .
Integrating by parts, we compute