Random Variables and PMF vs PDF
A random variable turns random outcomes into numbers, letting us do math with chance. It maps qualitative results to quantitative values.
| Type | Values | Probability Rule | Total Sum / Area |
|---|---|---|---|
| Discrete | Countable / separate | Probability mass function | Sum to 1 |
| Continuous | Any value in a range | Probability density function via areas | Area is 1 |
For continuous variables, .
Common pitfall: For a continuous variable, the probability of any single exact value is zero (). Probability lives in intervals, not points; a point has zero width and zero area.
Expectation and Variance
Two core numbers summarise a random variable:
- Expected value (): The long-run average, or centre of mass. Discrete: . Continuous: .
- Variance (): Expected squared deviation , measuring spread. Standard deviation is its square root.
Expectation is linear: , and for any variables, whether independent or not.
Variance is not linear: . Crucially, variances add () only for independent variables.