Exam prep · AP Statistics · Unit guide
AP Statistics Unit 4: Probability, random variables and probability distributions
How to combine probabilities, describe random variables, and spot binomial vs geometric
On the exam: Rules of probability, binomial and geometric distributions. 10 to 20%.

Do you add probabilities every time you see the word or? That's the most common slip in this unit of your stats course. We'll fix it, then build up to random variables, binomial and geometric distributions, and a full worked problem.
The Addition and Complement Rules
Let's start with the general addition rule. The probability of A or B is the probability of A plus the probability of B, minus the probability of A and B. Draw one card: the chance of a heart or a face card is thirteen over fifty-two, plus twelve over fifty-two, minus the three heart face cards, which gives twenty-two over fifty-two, about zero point four two three.
P(A ∪ B) = P(A) + P(B) − P(A ∩ B) P(heart or face) = 13/52 + 12/52 − 3/52 = 22/52 ≈ 0.423 P(not A) = 1 − P(A)
Key points.
- P(A or B) = P(A) + P(B) − P(A and B)
- Subtract the overlap so it isn't counted twice
- Complement: P(not A) = 1 − P(A)
Conditional Probability and Independence
Conditional probability means you already know B happened, so you shrink the world to just B. The probability of A given B is the probability of A and B divided by the probability of B. Say forty percent of students play a sport and twenty-five percent play a sport and an instrument. Then the probability of an instrument given a sport is zero point two five over zero point four, which is zero point six two five.
P(A | B) = P(A ∩ B) / P(B) P(inst | sport) = 0.25 / 0.40 = 0.625 Independent if P(A | B) = P(A) then P(A ∩ B) = P(A) × P(B)
Key points.
- P(A | B) = P(A and B) / P(B)
- Independent when P(A | B) = P(A)
- Then P(A and B) = P(A) × P(B)
Mutually Exclusive Is Not Independent
Students mix these two up all the time, so let's pull them apart. Mutually exclusive events can't happen at the same time, so the probability of both is zero. Independent events can happen together, but knowing one happened doesn't change the chance of the other. In fact, if two events are mutually exclusive and each has a positive probability, they can't be independent, because learning one happened tells you the other didn't.
Mutually exclusive
- Can't occur together
- P(A and B) = 0
- Add: P(A or B) = P(A) + P(B)
- Knowing A tells you B didn't happen
Independent
- Can occur together
- P(A | B) = P(A)
- Multiply: P(A and B) = P(A)P(B)
- Knowing A tells you nothing about B
Mean and Standard Deviation of a Random Variable
A discrete random variable takes a list of values, each with a probability. Suppose X is zero, one or two with probabilities zero point five, zero point three and zero point two. The mean is the sum of each value times its probability, which gives zero point seven. The variance weights each squared deviation from zero point seven, giving zero point six one, so the standard deviation is about zero point seven eight.
x: 0, 1, 2 P: 0.5, 0.3, 0.2 μ = Σ x·P(x) = 0 + 0.3 + 0.4 = 0.7 σ² = Σ (x − μ)²·P(x) = 0.245 + 0.027 + 0.338 = 0.61 σ = √0.61 ≈ 0.78
Key points.
- Mean: multiply each value by its probability, then add
- Variance: weighted squared deviations from the mean
- Standard deviation is the square root of the variance
Combining Random Variables
When you combine random variables, the means behave nicely: the mean of X plus Y is the mean of X plus the mean of Y, and the same goes for subtraction. Spread is trickier. If X and Y are independent, their variances add, even when you subtract. So standard deviations of three and four combine to a variance of twenty-five and a standard deviation of five, not seven.
For independent random variables, variances add, whether you add or subtract the variables. Standard deviations never add directly. Rules for combining random variables
Key points.
- Means add or subtract directly
- For independent variables, variances always add
- Linear change a + bX: mean a + bμ, SD |b|σ
Checking the Binomial Setting
Before you use a binomial model, check four conditions, often remembered as BINS. Each trial must be binary, a success or a failure. Trials must be independent, and when you sample without replacement, the ten percent condition lets you treat them as independent if the sample is under ten percent of the population. The number of trials is fixed, and the success probability stays the same every time.
- Binary: success or failure on each trial
- Independent: trials don't affect each other (10% rule)
- Number: fixed count of trials, n
- Same: success probability p stays constant
Worked Problem: A Binomial Probability
Here's a typical problem. A player makes thirty percent of three-point shots and takes ten independent shots. What's the chance she makes exactly three? We write ten choose three, times zero point three cubed, times zero point seven to the seventh. That's one hundred twenty times zero point zero two seven times about zero point zero eight two four, roughly zero point two six seven. The mean is n p, three makes, and the standard deviation is the square root of two point one, about one point four five.
n = 10, p = 0.3, X = 3 P(X=3) = C(10,3)(0.3)³(0.7)⁷ = 120 × 0.027 × 0.0824 ≈ 0.267 μ = np = 3 σ = √(np(1−p)) = √2.1 ≈ 1.45
Key points.
- n = 10 shots, p = 0.3, find P(X = 3)
- Use n choose k times p to the k times (1 − p) to the n − k
- Mean np = 3, SD about 1.45
The Geometric Distribution
A geometric random variable counts the trials until the first success, so there's no fixed number of trials. If each cereal box has a zero point two chance of holding a prize, the chance the first prize is in box three is two failures then a success: zero point eight squared times zero point two, which is zero point one two eight. On average you'd open one over p, or five boxes.
p = 0.2, first success on trial 3 P(X=3) = (1 − p)² × p = (0.8)² × 0.2 = 0.128 μ = 1/p = 1/0.2 = 5 P(X > 3) = (0.8)³ = 0.512
Key points.
- Counts trials until the first success
- P(X = k) = (1 − p) to the k − 1, times p
- Mean is 1 / p
Binomial or Geometric?
To finish, ask yourself one question: what am I counting? If the number of trials is fixed and you're counting successes, it's binomial, and X runs from zero to n. If you keep going until the first success and count the trials, it's geometric, and X starts at one with no upper limit. Both models still need independent trials and the same success probability every time.
Binomial
- Fixed number of trials n
- X counts successes, 0 to n
- Mean np, SD √(np(1−p))
- Ex: makes in 10 shots
Geometric
- No fixed number of trials
- X counts trials to first success, 1, 2, 3…
- Mean 1/p
- Ex: boxes opened until a prize
Remember this
If you remember one thing, make it this: subtract the overlap when you add, and check the setting before you pick a model. Now quiz yourself on these rules and a few binomial and geometric problems.
Practice this unit
- AP Statistics: Probability, Random Variables and Sampling Distributions quiz14 multiple-choice questions with explanations · no account needed
- SAT Math: Statistics, Probability and Data Interpretation quiz15 multiple-choice questions with explanations · no account needed
- Statistics 101: Core Concepts30 flashcards · study free
- Statistics: Hypothesis Testing Practice30 flashcards · study free
- AP Statistics: Probability, Random Variables and Sampling Distributions38 flashcards · study free
- SAT Math: Statistics, Probability and Data Interpretation38 flashcards · study free
Every AP Statistics deck and quiz: the AP Statistics page.
Other AP Statistics unit guides
- Unit 3: Collecting dataStudy guide
- Unit 5: Sampling distributionsStudy guide
- Unit 7: Inference for quantitative data: meansStudy guide
- Unit 8: Inference for categorical data: chi-squareStudy guide
Try it with your own material
Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.