All the information about the distribution of a continuous random variable is contained in either the cdf or the pdf . However it is often helpful to summarise the main characteristics of the distribution in terms of a few values, analogously to in the discrete case.
The expected value of a continuous random variable can be thought of as the average of the different values that may take, weighted according to their chance of occurrence.
The expected value of a continuous random variable is
Notice the similarity with the definition of expectation of a discrete random variable. Similarly for a real-valued function of a continuous random variable , one can show that the expected value is
For example,
(Alternative triangular pdf) For , with pdf given by
find , and .
Also
using the same method to split the range.
For continuous variables linearity properties of expectation are very similar to those stated in Chapter 4 for discrete random variables.
For arbitrary functions and , constants , and , and a continuous random variable
Derivation (of first property):
The other properties are shown similarly.
The variance, measuring of the spread or dispersion of a random variable about the expectation, for a continuous distribution is
As with discrete rvs, the easiest way to evaluate the variance is usually
Note that the calculation of this formula on page 4.5 uses only the properties of expectation given above, and so is just as valid for continuous random variables as it was for discrete random variables. ∎
From the previous example we know that and . Therefore
Warning: Sometimes the expectation and variance do not exist. This occurs when the chance of obtaining very large values is too big.