Expected Value and Variance
Expected Value (Mean)
The expected value of a discrete random variable is the weighted average of all possible values:
Intuition
Think of expected value as the “center of mass” or “center of gravity” of the PMF when plotted as a bar graph. It represents the long-run average if you repeated the experiment many times.
Properties
- Non-negativity: If , then
- Linearity: for constants
- Linearity for sums: (always true, even if and are dependent!)
Example: Travel Time
You travel 200 miles. With probability 1/2, you fly at 200 mph. With probability 1/2, you walk at 1 mph.
- Speed : mph
- Time : hours
Important: ! You cannot reason on averages when dealing with non-linear functions.
Variance
The variance measures the spread of a distribution around its mean:
Why Not Average Distance?
The average distance from the mean is zero: (positive and negative deviations cancel). So we square the deviations first.
Alternative Formula
This is often easier to compute in practice.
Standard Deviation
The standard deviation has the same units as , making it easier to interpret. It tells you the “typical” distance from the mean.
Properties of Variance
- Scaling:
- Shifting: (adding a constant doesn’t change spread)
- Sum of independent RVs: If and are independent,
Warning: Variance does NOT add for dependent random variables!
Example: Travel Speed Variance
For the travel example:
- mph
The standard deviation tells us the “typical” distance from the mean—speeds are typically about 100 mph away from the average.
Conditional Expectation
Given an event with :
The conditional expectation is just an ordinary expectation in the “conditional universe” where we know occurred.
Example
If is uniform on and we’re told :