Discrete Random Variables
A random variable assigns a number to each outcome; its probability distribution lists each value with its probability (summing to ). is the long-run average; and . A shortcut: .
Expected value is a weighted mean with probabilities as weights, so everything you know about means transfers: it is linear, it can be a value never takes, and it is what the average of many repetitions settles toward. If the distribution were drawn as a bar chart cut from cardboard, is where it would balance. Variance measures how far from that balance point a single trial typically lands.
A ticket wins with probability and nothing otherwise. Net winnings : with probability , with probability . : over many tickets you lose a dollar per ticket on average, though no single ticket ever loses exactly a dollar.
In a town, the number of cars per household is with probabilities (these sum to , as a distribution must). . , so and .
Reading the expected value as the most likely value. A fair die has , a value it can never show, and in the cars example the most likely count is , not . Expected value is a long-run average, not a prediction for one trial.
Roll a fair die; you win the number shown in dollars. Find and .
Show the answerHide the answer
. , so .
Expected Value in Decisions
A game is fair when the expected net gain is . Expected value prices risk: an insurer charges more than the expected payout, a casino offers games with negative expected value for the player. Linearity, , holds for ANY random variables, independent or not, which makes expectations of complicated counts easy.
The law of large numbers is what gives expected value its authority: over many independent plays the average gain gets close to , so a negative expectation is a guaranteed loss in the long run however lucky any single night is. Linearity is the trick that makes hard problems easy: write a complicated count as a sum of simple 0/1 indicators, and add up their probabilities.
It costs to play; roll two dice and if the sum is you are paid . Six of the outcomes sum to , so . Net gain: with probability , with probability . per play. A fair payout would be .
A policy costs a year and pays if a loss occurring with probability happens. The insurer's expected payout per policy is , so it expects to keep per policy. The customer accepts a small expected loss to avoid a small chance of a ruinous one — expected value is not the only thing that matters to a person, but it is what matters to a company selling a million policies.
letters are put into addressed envelopes at random. Expected number in the right envelope? Let if letter is right, else ; . Then , for every . The are not independent, and it does not matter: linearity needs no independence.
Forgetting the cost. In the dice game, "win with probability , so " ignores the dollar paid to play; the net outcomes are and . Define the random variable as the NET gain before computing anything.
A multiple-choice question has options. A right answer scores , a wrong one . What is the expected score of a random guess?
Show the answerHide the answer
. The penalty is designed to make blind guessing exactly fair.
Combining Random Variables
For any random variables, . For independent and , — variances add even when you subtract, because is positive. For one variable, and .
Standard deviations never add; variances do, and only for independent variables. That makes standard deviations combine like the sides of a right triangle: . The difference of two independent measurements is MORE variable than either one, not less, which is why comparing two groups needs bigger samples than measuring one.
Boxes weigh kg on average with SD kg, independently. Five boxes: mean kg; variance ; SD kg — not kg. Random errors partly cancel: some boxes are heavy, some light.
Math scores have SD and verbal scores SD , independent. The total has SD , and so does the difference math verbal: . The spreads combine like the legs of a right triangle.
Using the cars-per-household variable (, ), a parking permit costs plus per car: . Then and . The fixed moves the centre and adds no spread.
Writing . It is for independent variables. With equal SDs the wrong formula would give a difference with no variability at all — two random things whose difference is certain.
has SD and has SD , independent. Find the SD of .
Show the answerHide the answer
Variances add: , so the SD is .
Why It Works
For independent with means : . Independence makes the cross term the product of two expectations, each zero. Without independence the cross term is , which is where correlation enters — and why the formula fails for, say, a value and itself: , not .