Exam 3 Study Guide
This guide covers chapters 5 and 6, the language of chance. You will list sample spaces, use the addition, multiplication and complement rules, work with conditional probability and read probabilities from two-way tables and trees. Then you will turn outcomes into numbers with random variables, check that a distribution is valid, find expected values, and use the binomial, Poisson and geometric models. Work one chapter at a time, try each worked example with the steps covered, and finish with the ten self-test items. The cram sheet at the end holds every formula.
What this guide covers
- Chapter 5 · sample spaces and events, classical probability, the complement, addition and multiplication rules, mutually exclusive versus independent events, conditional probability, two-way tables, trees and reversing a condition.
- Chapter 6 · discrete and continuous random variables, valid distributions, expected value and standard deviation, the binomial model with μ = np and σ = √(npq), the Poisson and geometric models, and how to choose among them.
Chapter 5Probability Basics
Read it in full: Chapter 5 in the textbook. Practice it in the lab: Sample Space and Two-Way Tables.
What to know
A random process has a known list of possible results but an unknown result this time. Each result is an outcome, and the complete, non-overlapping list is the sample space S. An event is any subset of S. Two coin flips give S = {HH, HT, TH, TT}: four outcomes, not three, because HT and TH are different. Two dice give 6 × 6 = 36 ordered pairs.
When outcomes are equally likely, P(A) = (outcomes in A) ÷ (outcomes in S). Every probability lies between 0 and 1, P(S) = 1, and the complement rule says P(Ac) = 1 − P(A). With two dice, six pairs sum to 7, so P(7) = 6/36 = 1/6. A probability is a long-run relative frequency. The law of large numbers says observed proportions settle toward the true probability, but nothing is ever "due": a fair coin after ten tails is still 0.5.
"Or" is inclusive. The general addition rule is P(A or B) = P(A) + P(B) − P(A and B); the subtraction removes the overlap counted twice. Mutually exclusive (disjoint) events cannot happen together, so P(A and B) = 0 and P(A or B) = P(A) + P(B). For one card, P(heart or face card) = 13/52 + 12/52 − 3/52 = 22/52.
The general multiplication rule is P(A and B) = P(A) × P(B | A). Events are independent when P(B | A) = P(B), so then P(A and B) = P(A) × P(B). That equation is also the test: if P(A and B) differs from P(A)P(B), the events are dependent. Sampling without replacement creates dependence: two hearts in a row is (13/52)(12/51) ≈ 0.0588 without replacement and (13/52)² = 0.0625 with it. Below about 10% of a population, treating draws as independent is a fair approximation.
Mutually exclusive is not independent. If two events with nonzero probability are disjoint, knowing one happened tells you the other did not, so they are dependent. "At least one" problems are complement problems: P(at least one) = 1 − P(none). Four rolls of a die give at least one six with probability 1 − (5/6)4 ≈ 0.518, not 4/6.
Conditional probability P(A | B) = P(A and B) ÷ P(B) shrinks the sample space to B. Told a die roll is even, the chance it is a 6 is 1/3. Reversing the bar changes the question: P(even | 6) = 1. Confusing P(A | B) with P(B | A) is the confusion of the inverse. A p-value is P(data this extreme | null true), not P(null true | data).
A two-way table gives every probability by choosing the denominator. Joint = cell ÷ grand total. Marginal = row or column total ÷ grand total. Conditional = cell ÷ its row or column total. In the book's 300 applicants, P(offer | certified) = 90/150 = 0.600 while P(certified | offer) = 90/135 ≈ 0.667. Since P(certified)P(offer) = 0.225 differs from the joint 0.300, the two are dependent, though the table cannot show that certification caused the offers.
A tree diagram stages the same facts. Multiply along a path to get its probability; add across paths that end the same way. Path probabilities must sum to 1. Adding paths gives the law of total probability, and dividing the path you want by the total of all paths with that ending reverses the conditioning. That reversal is the engine behind Bayes' rule.
- P(A) = outcomes in A ÷ outcomes in S, for equally likely outcomes only.
- Complement: P(Ac) = 1 − P(A). "At least one" = 1 − P(none).
- Addition: P(A or B) = P(A) + P(B) − P(A and B).
- Multiplication: P(A and B) = P(A) × P(B | A); independent means P(B | A) = P(B).
- Mutually exclusive means P(A and B) = 0, and that makes the events dependent.
- Conditional: P(A | B) = P(A and B) ÷ P(B). Reversing the bar changes the answer.
- Joint ÷ grand total; marginal = margin ÷ grand total; conditional = cell ÷ its row or column.
- Trees: multiply along, add across, and the ends sum to 1.
Formulas and when to use them
| Rule | Formula | When to use it |
|---|---|---|
| Classical probability | P(A) = n(A) ÷ n(S) | Equally likely outcomes |
| Complement | P(Ac) = 1 − P(A) | "Not" and "at least one" questions |
| General addition | P(A or B) = P(A) + P(B) − P(A and B) | Any "or" question |
| Disjoint addition | P(A or B) = P(A) + P(B) | Events that cannot co-occur |
| General multiplication | P(A and B) = P(A) × P(B | A) | Any "and" question, including without replacement |
| Independent multiplication | P(A and B) = P(A) × P(B) | Independent events; also the test for independence |
| Conditional | P(A | B) = P(A and B) ÷ P(B) | "Given" questions |
| At least one in n independent tries | 1 − (1 − p)n | Repeated trials |
| Total probability | P(B) = P(A)P(B | A) + P(Ac)P(B | Ac) | Adding tree paths |
| Reverse a condition | P(A | B) = path(A then B) ÷ P(B) | Screening, Bayes style questions |
Words that decide the rule
| Word or idea | Meaning | Check |
|---|---|---|
| Or | At least one happens (inclusive) | Subtract the overlap |
| And | Both happen | Multiply, with a condition if dependent |
| Mutually exclusive | Cannot happen together | P(A and B) = 0 |
| Independent | One does not change the other | P(A | B) = P(A) |
| Given | Restrict to a smaller world | New denominator |
| Without replacement | The pool changes after each draw | Dependent draws |
| Law of large numbers | Long-run share approaches P | No "correction" in the short run |
Worked examples
Worked example 1 · counting with two dice
Roll two fair dice. Find P(sum = 8), P(sum ≤ 4) and P(sum is not 8).
Step 1 · the sample spaceKeep the dice distinct: 6 × 6 = 36 equally likely ordered pairs.
Step 2 · sum of 8(2,6), (3,5), (4,4), (5,3), (6,2): 5 pairs, so P = 5/36 ≈ 0.139.
Step 3 · sum at most 4Sum 2: 1 pair; sum 3: 2 pairs; sum 4: 3 pairs; total 6. P = 6/36 = 1/6 ≈ 0.167.
Step 4 · complementP(not 8) = 1 − 5/36 = 31/36 ≈ 0.861.
Worked example 2 · the general addition rule with cards
Draw one card from a standard 52-card deck. Find P(red or king).
Step 1 · redHearts and diamonds: 26 cards, so P(red) = 26/52.
Step 2 · kingFour kings, so P(king) = 4/52.
Step 3 · overlapThe red kings are the king of hearts and king of diamonds: 2/52.
Step 4 · combine26/52 + 4/52 − 2/52 = 28/52 = 7/13 ≈ 0.538.
Check by counting26 red cards plus the 2 black kings is 28 cards. Forgetting the subtraction gives 30/52, which counts the two red kings twice.
Worked example 3 · with and without replacement, and at least one
Draw two cards. Find P(both aces) with and without replacement. Then find the chance of at least one six in three rolls of a die.
Step 1 · without replacement(4/52)(3/51) = 12/2,652 = 1/221 ≈ 0.0045. The second draw faces 3 aces in 51 cards.
Step 2 · with replacement(4/52)(4/52) = 1/169 ≈ 0.0059. The draws are independent.
Step 3 · at least one sixP(no six in 3) = (5/6)³ = 125/216 ≈ 0.5787. So P(at least one) = 1 − 125/216 = 91/216 ≈ 0.421.
Why not 3/6?Adding 1/6 three times assumes the events cannot overlap. Two sixes in three rolls would be counted twice, and six rolls would give an impossible 6/6 for "certain."
Worked example 4 · a two-way table, start to finish
400 adults are classified by flu shot and whether they caught the flu: vaccinated with flu 24, vaccinated without 216, unvaccinated with flu 36, unvaccinated without 124.
Step 1 · marginsVaccinated 240, unvaccinated 160; caught flu 60, did not 340; total 400.
Step 2 · joint and marginalP(vaccinated and flu) = 24/400 = 0.060. P(vaccinated) = 240/400 = 0.600. P(flu) = 60/400 = 0.150.
Step 3 · conditionalP(flu | vaccinated) = 24/240 = 0.100. P(flu | unvaccinated) = 36/160 = 0.225.
Step 4 · independence testP(vaccinated) × P(flu) = 0.600 × 0.150 = 0.090, but the joint is 0.060. They differ, so the variables are dependent.
Step 5 · reverse the barP(vaccinated | flu) = 24/60 = 0.400. Same cell, different denominator, different question. The table shows association; only an experiment could show the shot caused the difference.
- Listing three outcomes for two coins. HT and TH are different outcomes. S has four.
- Thinking an outcome is "due." Independent trials have no memory. The law of large numbers works by dilution, not correction.
- Forgetting to subtract the overlap. P(A or B) needs − P(A and B) unless the events are disjoint.
- Calling disjoint events independent. Disjoint events with nonzero probability are dependent.
- Multiplying when events are dependent. Use P(B | A), especially when sampling without replacement.
- Adding probabilities across repeated tries. Use 1 − P(none) for "at least one."
- Swapping P(A | B) and P(B | A). Ask "what is my denominator now?" before you divide.
- Reading cause from a two-way table. A table shows association. Cause needs random assignment.
Chapter 5 self-test · ten items
- 4
- 6
- 3
- 8
- 1/36
- 2/36
- 3/36
- 4/36
- 0.7
- 0.9
- 0.2
- 1.1
- They are independent
- P(A or B) = P(A)P(B)
- P(A and B) = P(A)P(B)
- They are dependent
- (13/52)(12/51) ≈ 0.0588
- (13/52)(13/52) = 0.0625
- (13/52) + (12/51) ≈ 0.485
- (13/52)(12/52) ≈ 0.0577
- 0.900
- 0.027
- 0.657
- 0.343
- 1/6
- 1/3
- 1/2
- 1/4
- 0.225
- 0.75
- 0.30
- 0.45
- Yes, because 0.3 × 0.5 = 0.15
- No, because 0.3 + 0.5 is not 1
- No, because P(A and B) is above 0
- Yes, because P(A) is less than P(B)
- 0.75
- 0.20
- 0.15
- 0.35
Chapter 6Discrete Random Variables
Read it in full: Chapter 6 in the textbook. Practice it in the lab: Expected Value and Binomial Distribution.
What to know
A random variable attaches a number to each outcome of a chance process. Capital X names the variable; lowercase x names one of its values, so P(X = x) is the chance X equals that number. A random variable is discrete if its values can be listed (counts), even if the list never ends, and continuous if it fills an interval (measurements). For a continuous variable the probability of any single exact value is 0, so we ask about intervals.
A probability distribution lists every value with its probability. It is valid only if ΣP(x) = 1 (allowing for rounding) and 0 ≤ P(x) ≤ 1 for every x. A table that sums to 0.90 has lost an outcome; a table with a negative entry is invalid even if it sums to 1. One missing probability can always be recovered as 1 minus the rest. Compound events are sums, because the values are mutually exclusive.
The mean or expected value is μ = E(X) = Σ[x · P(x)], a probability-weighted average with no final division. It describes the long run, not the next trial, and it need not be a possible value. The variance is σ² = Σ[(x − μ)² · P(x)], or the shortcut σ² = Σ[x² · P(x)] − μ². The square root σ returns to the original units. By the range rule of thumb, values outside μ ± 2σ are unusual.
Expected value prices bets and policies. In the book's raffle, 500 tickets at $3 with one $1,000 prize give a net gain of $997 with probability 1/500 and −$3 with probability 499/500, so E(X) = −$1.00 per ticket. That is what the buyer loses on average and what the club clears on average.
A binomial experiment needs all four: a fixed number of trials n, two outcomes per trial, independent trials and a constant success probability p. "Success" is just the outcome you count. Then P(X = x) = nCx px qn−x, with q = 1 − p and nCx = n! ÷ [x!(n − x)!]. The coefficient counts arrangements; pxqn−x is the chance of one arrangement. A student guessing on 6 four-choice questions gets exactly 2 right with probability 0.2966.
For a binomial, μ = np and σ = √(npq), exactly. The guessing student averages 1.5 correct with σ ≈ 1.06, so 4 or more correct is unusual, and the exact tail P(X ≥ 4) = 0.0376 agrees. Sampling without replacement is treated as binomial when the sample is no more than 5% of the population.
The Poisson distribution counts events in a fixed interval at a constant average rate λ: P(X = x) = λxe−λ ÷ x!, for x = 0, 1, 2, and so on. Its mean and variance are both λ, so σ = √λ. With λ = 3 calls per hour, P(5 calls) ≈ 0.1008. It approximates a binomial with λ = np when n is large and p small (n ≥ 100 and np ≤ 10).
The geometric distribution counts trials until the first success: P(X = x) = qx−1p for x = 1, 2, 3 and so on, with μ = 1 ÷ p and σ = √q ÷ p. With p = 0.20 the first success lands on call 4 with probability 0.1024, and it takes 5 calls on average. P(X > k) = qk. The geometric is memoryless: past failures build no credit. To choose a model, ask what is fixed: the trials (binomial), the interval (Poisson) or the single success (geometric).
- Valid distribution: ΣP(x) = 1 and 0 ≤ P(x) ≤ 1 for every x.
- μ = E(X) = Σx·P(x); σ² = Σx²·P(x) − μ²; σ = √σ².
- Expected value is the long-run average, not the next result.
- Binomial needs fixed n, two outcomes, independence and constant p.
- P(X = x) = nCx px qn−x; μ = np; σ = √(npq).
- Poisson: P(x) = λxe−λ ÷ x!; mean = variance = λ.
- Geometric: P(x) = qx−1p; μ = 1/p; P(X > k) = qk.
- Unusual: outside μ ± 2σ.
Formulas and when to use them
| Quantity | Formula | When to use it |
|---|---|---|
| Validity | ΣP(x) = 1; 0 ≤ P(x) ≤ 1 | Checking any discrete table |
| Mean | μ = Σ[x · P(x)] | Long-run average of a random variable |
| Variance | σ² = Σ[x² · P(x)] − μ² | Spread; take √ for σ |
| Unusual values | Outside μ ± 2σ | Range rule of thumb |
| Binomial probability | nCx px qn−x | Fixed n, two outcomes, independent, constant p |
| Combinations | nCx = n! ÷ [x!(n − x)!] | Counting arrangements |
| Binomial mean and SD | μ = np; σ = √(npq) | Exact shortcuts |
| Poisson probability | λxe−λ ÷ x! | Events in a fixed interval at rate λ |
| Poisson mean and SD | μ = σ² = λ; σ = √λ | Variance far above the mean means Poisson fits poorly |
| Geometric probability | qx−1 p | Trial of the first success |
| Geometric mean and SD | μ = 1/p; σ = √q ÷ p | Average wait for the first success |
Which model?
| Model | What is fixed | What is random |
|---|---|---|
| Binomial | Number of trials n | Number of successes, 0 to n |
| Poisson | The interval (time, area, length) | Number of events, 0, 1, 2, ... |
| Geometric | One success | Number of trials needed, 1, 2, 3, ... |
Worked examples
Worked example 1 · a missing probability, the mean and the SD
X is the number of streaming services a household pays for, with P(0) = 0.10, P(1) = 0.25, P(2) = k, P(3) = 0.20, P(4) = 0.10. Find k, μ and σ.
Step 1 · find k0.10 + 0.25 + k + 0.20 + 0.10 = 1, so 0.65 + k = 1 and k = 0.35, a legal probability.
Step 2 · mean(0)(0.10) + (1)(0.25) + (2)(0.35) + (3)(0.20) + (4)(0.10) = μ = 1.95.
Step 3 · Σx²P(x)(0)(0.10) + (1)(0.25) + (4)(0.35) + (9)(0.20) + (16)(0.10) = 5.05.
Step 4 · variance and SDσ² = 5.05 − 1.95² = 5.05 − 3.8025 = 1.2475, so σ ≈ 1.12.
Step 5 · unusual?μ ± 2σ = −0.28 to 4.18. Every possible value lies inside, so none is unusual.
Worked example 2 · is the extended warranty worth it?
A $60 warranty covers a repair that costs $450 and is needed with probability 0.08 in the warranty period. Find the expected cost of buying versus not buying.
Step 1 · buy itYou pay $60 for sure. Expected cost = $60.
Step 2 · skip itCost is $450 with probability 0.08 and $0 otherwise: E = 450(0.08) + 0(0.92) = $36.
Step 3 · compareSkipping saves $24 per item on average. From the seller's side, E(profit) = 60 − 36 = $24 per warranty.
Read it rightExpected value is the long-run average over many purchases. A person who cannot absorb a large surprise bill might still choose the warranty; the number prices the bet, it does not make the choice.
Worked example 3 · a binomial from start to finish
A clinic finds that 20% of patients miss appointments, independently. Of the next 8 patients, find P(exactly 2 miss), P(at least 1 misses), μ and σ.
Step 1 · check the fourn = 8 fixed; miss or not; independent; p = 0.2 each time. Binomial.
Step 2 · exactly 28C2 = 28. 28 × 0.2² × 0.8⁶ = 28 × 0.04 × 0.262144 = 0.2936.
Step 3 · at least 1P(0) = 0.8⁸ = 0.1678, so P(X ≥ 1) = 1 − 0.1678 = 0.8322.
Step 4 · mean and SDμ = np = 8(0.2) = 1.6. σ = √(8 × 0.2 × 0.8) = √1.28 ≈ 1.13.
Step 5 · unusualμ + 2σ = 3.86, so 5 or more no-shows out of 8 would be unusual.
Worked example 4 · Poisson and geometric
A web page gets λ = 2.5 error reports per day. Find P(exactly 4) and P(none). Separately, 15% of cold emails get a reply; find P(first reply is the 3rd email) and the mean wait.
Step 1 · Poisson, x = 42.5⁴ = 39.0625; e−2.5 = 0.082085; 4! = 24. P = 39.0625 × 0.082085 ÷ 24 = 0.1336.
Step 2 · Poisson, x = 0λ⁰ = 1 and 0! = 1, so P(0) = e−2.5 = 0.0821; σ = √2.5 ≈ 1.58.
Step 3 · geometric, x = 3Two misses then a reply: 0.85² × 0.15 = 0.7225 × 0.15 = 0.1084.
Step 4 · average waitμ = 1/p = 1/0.15 ≈ 6.67 emails, counting the email that gets the reply. P(more than 3 needed) = 0.85³ = 0.6141.
- Thinking discrete means "few values." An endless list 0, 1, 2, ... is still discrete.
- Checking only the sum. A table that sums to 1 with a negative entry is invalid. Check both rules.
- Dividing by n after Σx·P(x). The weights already sum to 1. No final division.
- Reading E(X) as the next result. It is the long-run average and may be impossible on one trial.
- Using the binomial without fixed n. "Until the first success" is geometric, and "per hour" with no cap is Poisson.
- Forgetting the coefficient. pxqn−x is one arrangement. Multiply by nCx.
- Mismatching p and "success." If you count defects, p is the chance of a defect.
- Believing a success is overdue. The geometric is memoryless; past failures change nothing.
Chapter 6 self-test · ten items
- The time a battery lasts
- The number of calls in an hour
- The number of heads in 5 flips
- The number of defects in a lot
- Yes, because the entries sum to 1
- No, because the sum is above 1
- No, because one probability is negative
- Yes, because there are four values
- 2.0
- 0.57
- 1.7
- 1.5
- 0.61
- 3.50
- 0.78
- 2.89
- $1.50
- −$2.00
- $28.00
- −$0.50
- Flipping until the first head appears
- Counting typos on one printed page
- Drawing 5 cards from a 10-card deck
- Counting heads in 12 flips of a fair coin
- 0.0346
- 0.3456
- 0.2304
- 0.4000
- μ = 10, σ = 8.00
- μ = 10, σ ≈ 2.83
- μ = 2.5, σ ≈ 1.58
- μ = 40, σ ≈ 2.83
- 0.5000
- 0.2707
- 0.1353
- 0.0000
- 3
- 4
- 0.25
- 1.33
One pageCram sheet
Everything from chapters 5 and 6 in one place. Cover the right column and see if you can rebuild each row.
Formulas
| Name | Formula | Note |
|---|---|---|
| Classical | P(A) = n(A) ÷ n(S) | Equally likely outcomes |
| Complement | P(Ac) = 1 − P(A) | At least one = 1 − P(none) |
| Addition | P(A) + P(B) − P(A and B) | Drop the last term if disjoint |
| Multiplication | P(A) × P(B | A) | P(A)P(B) if independent |
| Conditional | P(A and B) ÷ P(B) | New denominator |
| Expected value | Σx·P(x) | Long-run average |
| Variance | Σx²P(x) − μ² | σ = √σ² |
| Binomial | nCxpxqn−x; μ = np; σ = √(npq) | Four conditions |
| Poisson | λxe−λ ÷ x!; μ = σ² = λ | Fixed interval |
| Geometric | qx−1p; μ = 1/p | First success |
Rules that are not formulas
| Topic | The rule |
|---|---|
| Sample space | List ordered outcomes; HT and TH differ. |
| Long run | Proportions settle toward P; nothing is due. |
| Disjoint vs independent | Disjoint events with nonzero P are dependent. |
| Two-way table | Joint over total; marginal over total; conditional over its row or column. |
| Trees | Multiply along, add across; ends sum to 1. |
| Inverse | P(A | B) is not P(B | A). |
| Valid table | Sum to 1 and every entry in [0, 1]. |
| Unusual | Outside μ ± 2σ. |
| Model choice | Fixed trials: binomial. Fixed interval: Poisson. One success: geometric. |