Lesson 4.6 · Probability, Random Variables and Distributions
Mean and standard deviation of random variables
A probability distribution tells you everything about a random variable, but you often want a quick summary: what value do you expect on average, and how much do results typically vary? The mean and standard deviation of a random variable answer those questions, and they drive decisions about games, insurance and business plans.
The mean (expected value)
The mean of a random variable is a weighted average of its values, where each value is weighted by its probability.
Mean of a discrete random variable
The mean is also called the expected value. It is the long-run average of over many, many repetitions of the random process.
The expected value does not have to be a possible value of . A family can't own cars, but can still be the long-run average number of cars per household.
The standard deviation
The variance of is the weighted average of squared deviations from the mean, and the standard deviation is its square root:
The standard deviation measures how much the values of typically vary from the mean, in the same units as .
Worked example: Cars per household
Let = the number of cars owned by a randomly selected household in a town.
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0.08 | 0.32 | 0.38 | 0.16 | 0.06 |
Find the mean and standard deviation of , and interpret the mean.
Solution. Mean:
Variance, using deviations from :
So car.
Interpretation. If you selected many, many households at random from this town, the average number of cars per household would be about . The number of cars for a randomly chosen household typically varies from the mean of by about car.
Tip
Your calculator can do this. On a TI-84, put the values in L1 and the probabilities in L2, then run 1-Var Stats with List: L1 and FreqList: L2. The output is and is . On the AP exam, still show the formula with at least the first few terms substituted.
Expected value and decisions
Expected value tells you whether a game or a policy pays off in the long run.
Worked example: Is the game worth playing?
A carnival game costs $5 to play. You win $20 with probability , win $5 with probability , and win nothing otherwise. Let = your net gain on one play. Find .
Solution. Subtract the $5 cost from each prize to get net gains.
| Net gain (dollars) | 15 | 0 | |
|---|---|---|---|
| 0.1 | 0.3 | 0.6 |
On average you lose $1.50 per play over many plays. The game operator makes about $1.50 per play in the long run.
Worked example: Insurance
An insurance company charges $300 per year for a policy that pays $10,000 if a certain event occurs. The event happens to of policyholders each year. What is the company's expected profit per policy?
Solution. Profit is if no claim and if there is a claim.
The company expects to earn about $100 per policy on average. It will lose big on some policies, but across thousands of policies, the law of large numbers makes the average profit close to $100.
Common mistake
Don't interpret the expected value as what will happen on one trial, or as the "most likely" value. It is a long-run average. Say "over many repetitions, the average … would be about …" and include context. Also remember to square the deviations and multiply by probabilities, not divide by or as for sample data.
Practice
The random variable has this distribution. Find .
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0.10 | 0.25 | 0.30 | 0.20 | 0.15 |
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Find the standard deviation of from the previous problem. Round to 2 decimal places.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Flip a fair coin 3 times and let = number of heads, with , , and . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A raffle sells 500 tickets at $2 each. One ticket wins $300 and two tickets win $50 each. Let = net gain (in dollars) for a person who buys one ticket. Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A random variable is the number of customers who enter a small shop in a 10-minute period, and . Which is the best interpretation?
An insurance company sells a one-year policy for $450. It pays $25,000 if the policyholder has a certain type of claim, which happens with probability . Find the company's expected profit per policy, in dollars.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A random variable takes values 1, 2 and 3, with . The mean of is . Find .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.