Discrete Random Variables - Complete Interactive Lesson
Part 1: Discrete Random Variables
๐ฒ Discrete Random Variables
Part 1 of 7 โ Probability Distributions
What Is a Random Variable?
A random variable assigns a numerical value to each outcome of a random process.
| Type | Values | Examples |
|---|---|---|
| Discrete | Countable (finite or countably infinite) | Number of heads in 10 flips, dice roll |
| Continuous | Any value in an interval | Height, weight, time |
๐ Key Idea: A discrete random variable has a probability distribution that lists every possible value and its probability.
Probability Distribution Table
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| 0.1 | 0.3 | 0.4 | 0.2 |
Requirements:
- Every probability is between 0 and 1:
- All probabilities sum to 1:
Reading the Table
From the table above:
Concept Check ๐ฏ
Probability Distribution Practice ๐งฎ
Given: , , ,
1) ?
2) ?
3) Do the probabilities sum to 1? (yes or no)
Part 2: Expected Value
๐ฏ Expected Value (Mean of a Random Variable)
Part 2 of 7 โ Expected Value
The Mean of a Discrete Random Variable
The expected value is the long-run average โ if you repeated the random process many times, the average outcome would approach .
Worked Example
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
| 0.1 | 0.3 | 0.4 | 0.2 |
โ ๏ธ The expected value does NOT have to be a possible outcome. canโt actually equal 1.7, but 1.7 is the long-run average.
Interpretation on the AP Exam
โIf we were to repeat this random process many, many times, the average value of would be approximately 1.7.โ
Concept Check ๐ฏ
Expected Value Calculation ๐งฎ
A game costs $5 to play. You win $20 with probability 0.2, win $5 with probability 0.3, and win $0 with probability 0.5.
Let = net gain (winnings minus cost).
1) values: $15, $0, and (third net gain value)
2) (expected net gain)
3) Is this game favorable for the player? (yes or no)
Part 3: Variance & Standard Deviation
๐ Variance & Standard Deviation of a Random Variable
Part 3 of 7 โ Spread of a Distribution
Variance
Standard Deviation
Worked Example
Using our distribution:
| 0 | -1.7 | 2.89 | 0.1 | 0.289 |
| 1 | -0.7 | 0.49 | 0.3 | 0.147 |
| 2 | 0.3 | 0.09 | 0.4 | 0.036 |
| 3 | 1.3 | 1.69 | 0.2 | 0.338 |
๐ Standard deviation measures the typical distance of outcomes from the mean.
Concept Check ๐ฏ
Variance Drill ๐งฎ
A random variable has: , and outcomes each with probability .
1) (first term of variance calculation)
2)
3) (total variance, as a fraction like a/b)
Part 4: Cumulative Distributions and Simulation
โ๏ธ Cumulative Distributions and Simulation
Part 4 of 7 โ Building and Estimating Distributions
Building a Distribution with Probability Rules
A bag holds 3 red and 2 blue marbles. Draw 2 without replacement and let = number of red marbles.
- (red then blue, or blue then red)
Cumulative Probability Distribution
A cumulative probability distribution lists for each value :
| 0 | 1 | 2 | |
|---|---|---|---|
| 0.10 | 0.60 | 0.30 | |
| 0.10 | 0.70 | 1.00 |
- Each cumulative value adds the next probability.
- The last cumulative value is always 1.
- Recover an exact probability by subtracting neighbors: .
Concept Check ๐ฏ
Estimating a Distribution by Simulation
When the rules are hard to apply, simulate.
Setting: Each cereal box holds one of 3 prizes, equally likely. Let = number of different prizes in 4 boxes ( = 1, 2 or 3).
Simulation with random digits:
- Let digits 1, 2, 3 stand for the three prizes; skip 0 and 4โ9.
- Read four usable digits (one per box) and record how many different prizes appear.
- Repeat many times.
Results of 50 repetitions:
| 1 | 2 | 3 | |
|---|---|---|---|
| Count | 2 | 26 | 22 |
| Estimated | 0.04 | 0.52 | 0.44 |
| Estimated | 0.04 | 0.56 | 1.00 |
The exact probabilities are 0.037, 0.519 and 0.444. With more repetitions, the estimates tend to get closer to them.
Simulation Practice ๐งฎ
A different simulation of the prize setting gives these counts in 80 repetitions: : 4, : 40, : 36.
1) Estimated ? (2 decimals)
2) Estimated ? (2 decimals)
3) Estimated ? (2 decimals)
Part 5: Interpreting Expected Value and Standard Deviation
๐ Interpreting Expected Value and Standard Deviation
Part 5 of 7 โ Using and in Context
Interpretation Templates
| Parameter | Interpretation |
|---|---|
| "If this random process were repeated many times, the average [value of in context] would be about []." | |
| "[ in context] typically varies by about [] from the mean of []." |
Both are parameters: single fixed numbers that describe the distribution, given in the units of .
Worked Example: A Raffle
A school sells 500 raffle tickets at $2 each. One ticket wins $300 and four tickets win $50. Let = net gain for one ticket.
| Outcome | ||
|---|---|---|
| Grand prize | $298 | 1/500 = 0.002 |
| Small prize | $48 | 4/500 = 0.008 |
| No prize | $2 | 495/500 = 0.990 |
Interpretation: Over many tickets, buyers lose about $1.00 per ticket on average. (The school raises about $1 per ticket.)
Concept Check ๐ฏ
Using to Compare Options
Two options can have the same mean but very different risk.
| Delivery route | Mean time | SD of time |
|---|---|---|
| Route A | 30 min | 2 min |
| Route B | 30 min | 9 min |
On average both routes take 30 minutes, but Route B's times typically vary by about 9 minutes from that mean, so Route B is much less predictable. If a package must arrive within 35 minutes, Route A is the safer choice.
๐ Use the mean to compare typical outcomes and the standard deviation to compare consistency or risk.
Decisions with and ๐งญ
Mean and SD in Context ๐งฎ
The number of defective items in a box, , has , , .
1) ?
2) ? (round to 2 decimals)
3) Over 100 boxes, about how many defective items in total would you expect?
Part 6: Problem-Solving Workshop
๐ Problem-Solving Workshop
Part 6 of 7 โ AP-Style Problems
Strategy for Random Variable Problems
- Define the random variable in context and list its possible values
- Check that the probabilities are between 0 and 1 and sum to 1
- Calculate using
- Calculate using
- Interpret in context for full AP credit
AP Exam Tip
When asked to interpret expected value: โIf [process] were repeated many times, the average [variable] would be approximately [value].โ
When asked to interpret standard deviation: โThe [variable] typically varies by about [value] from the mean of [mean].โ
Concept Check ๐ฏ
Insurance Problem ๐งฎ
An insurance company charges $300/year. Claims: $0 (prob 0.9), $1000 (prob 0.08), $5000 (prob 0.02).
1) Expected claim per customer?
2) Expected profit per customer?
3) Standard deviation of claims? (round to nearest dollar)
Part 7: Mixed Review
๐ Review & Applications
Part 7 of 7 โ Comprehensive Review
Key Formulas Summary
| Concept | Formula |
|---|---|
| Valid distribution | and |
| Cumulative probability | = sum of for all |
| Expected value | |
| Variance | |
| Standard deviation |
Common Mistakes on the AP Exam
- Averaging the values without weighting them by their probabilities
- Forgetting the square root when going from variance to standard deviation
- Thinking has to be a possible value
- Confusing โexpected valueโ with โmost likely valueโ
- Interpreting without context or units
Concept Check ๐ฏ
Final Challenge ๐งฎ
has , , .
1)
2) (2 decimals)
3) (round to 2 decimals)