Topics: Probability - Expected Value
(theorem)
Let be a random variable and let be a function such that is also a random variable.
If we wanted to calculate , the expected value of , we would have to first find (its density function). There is, however, a simpler way to calculate it, called the law of the unconscious statistician.
Example
Let be a discrete random variable where whose density function is defined as:
Let . What’s ?
Normal way:
We can calculate in the normal way. We first determine its density function:
Then we use the definition of an expected value:
With the law of the unconscious statistician:
However, it is much easier if we just use the law of the unconscious statistician. Since is a discrete random variable, then:
Discrete Case
If is a discrete random variable, then:
Continuous Case
If is an absolutely continuous random variable, then: