Unit 4: Probability, Random Variables & Probability Distributions
Mean & Variance of Random Variables
Calculating the mean and variance of a discrete random variable.
Prerequisites
- Conditional Probability
The Long-Run Average of an Outcome That Varies
A raffle ticket pays $0 with probability 0.70, $10 with probability 0.20, $50 with probability 0.08, and $100 with probability 0.02. Before reading on: no single ticket will ever actually win exactly some 'average' amount — so what would it even mean to compute one number summarizing this raffle's typical payout?
Definition — Mean and Variance of a Discrete Random Variable
Worked Example — Computing Expected Value and Variance
E(X) also supports a practical decision: if a ticket costs $10 to buy, the expected net result is E(X) − 10 = 8 − 10 = −$2 per ticket — on average, a player loses $2 per ticket in the long run, even though many individual tickets win more than that.
Tip
Common Mistakes
Treating E(X) as the most likely single outcome.
The most likely outcome here is $0 (probability 0.70) — E(X) = $8 is a probability-weighted average across all outcomes, not the mode, and the two can be very different.
Computing variance using the sample formula's n−1 correction.
A random variable's variance sums over its actual probabilities, p(x) — there's no 'minus one' correction here, since this isn't estimating a variance from a limited sample; the probabilities are treated as exactly known.
Key Takeaways
- E(X) = Σx·p(x) is a probability-weighted average — the long-run average outcome over many repetitions, not a prediction about any one trial.
- Var(X) = Σ(x−μ)²p(x) measures the typical squared distance of outcomes from the mean, weighted by probability.
- Expected value can directly answer practical questions, like whether a game or ticket is a good deal on average.
Summary
Mean and variance describe any discrete random variable. The next lesson studies two specific, especially common random-variable patterns — repeated yes/no trials with a fixed probability of success.
Sign in to track your progress and mark this lesson complete.
Track your progress