Concept 06 / 08Statistics and Probability
Random Variables, Probability Distributions, Mean and Variance
Discrete random variables and their probability distributions, checking a distribution, the mean E(X) = sum x p, variance E(X^2) - [E(X)]^2 and standard deviation, linearity of expectation, and expected value in games and decisions.
A random variable assigns a real number to each outcome of an experiment, for example the sum of two dice or the number of heads in three tosses. A discrete random variable takes a list of values with probabilities . The table of values and probabilities is its probability distribution. It is valid iff every and . The figure shows the distribution of the sum of two dice: triangular, peaking at .
Mean (expectation):
.
It is the long-run average value of over many repetitions, the 'centre of mass' of the distribution. It need not be a possible value: the expected number shown by a die is .
Variance and standard deviation:
, with .
The standard deviation is . These are exactly the formulas for the mean and variance of a frequency distribution, with relative frequencies replaced by probabilities.
Properties.
and .
Linearity of expectation: always, even when and are dependent. This is extremely powerful: to find the expected number of something, write it as a sum of indicator variables (each if a particular thing happens and otherwise) and add their probabilities.
If and are independent, and . Without independence these can fail.
Example: one die. , , . For the sum of two independent dice, and , as noted in the figure.
Expected value in games. A game is fair if the expected gain is . To compute the expected gain, list each outcome's net gain (winnings minus stake) with its probability and take gain probability.
Key Takeaways:
- Valid distribution: , .
- ; .
- ; .
- always; variance adds only for independent variables.
- Indicator variables turn 'expected number' questions into sums of probabilities.
- One die: mean , variance .
- Pitfall: writing ; for independent variables it is the sum.
Brain-Teaser 1: A random variable has for . Find , and .
Solution: , so . . . . The normalisation condition always comes first.
Brain-Teaser 2: letters are put at random into envelopes. What is the expected number of letters in the correct envelope?
Solution: Let be if letter is correct and otherwise. . By linearity, , for every . The indicators are dependent, but linearity does not care; computing the full distribution (which involves derangements) would be far harder.
Brain-Teaser 3: You pay ₹10 to roll a die and receive ₹ (5 times the number shown) if it is even, nothing otherwise. Is the game fair?
Solution: Winnings: each with probability , and with probability . Expected winnings . The expected net gain is , so the game is fair. Fairness is a statement about expectation, even though any single play has a definite gain or loss.
Practice this concept
Free · no account required · instant solutions