Topic 15 | Statistics & Probability

Compound probability

Year 9 core: two-step experiments with and without replacement, tree diagrams, outcome tables, 'and' vs 'or' probabilities, relative frequency, and simulations.

50-65 min Printable practice Answer key Challenge included
How to use this page

Read the explanation, work through the examples, then complete the core practice before printing.

Study progress: Not started

What you will learn

Worked example 0 Real-world example: quality control

A box contains 88 good batteries and 22 faulty ones. Two batteries are selected at random without replacement. What is the probability that both are good?

  1. P(1st good)=810P(\text{1st good}) = \dfrac{8}{10}.
  2. After removing one good battery, 77 good remain out of 99 total: P(2nd good1st good)=79P(\text{2nd good} \mid \text{1st good}) = \dfrac{7}{9}.
  3. P(both good)=810×79=5690=28450.622P(\text{both good}) = \dfrac{8}{10} \times \dfrac{7}{9} = \dfrac{56}{90} = \dfrac{28}{45} \approx 0.622.

Key idea: without replacement, the second probability changes because the total and the count of favourable outcomes both decrease.

1. Two-step experiments and tree diagrams

A compound event involves two or more stages. A tree diagram shows every possible path from start to finish, with probabilities written on the branches.

3/5R2/5B2/42/4RB3/41/4RBRR: 3/5 × 2/4 = 6/20RB: 3/5 × 2/4 = 6/20BR: 2/5 × 3/4 = 6/20BB: 2/5 × 1/4 = 2/201st draw2nd draw (without replacement)
Tree diagram: drawing 2 marbles without replacement from a bag containing 3 red and 2 blue marbles.

To find the probability of any single path, multiply the probabilities along the branches. The four outcomes sum to 11:

620+620+620+220=2020=1.\dfrac{6}{20} + \dfrac{6}{20} + \dfrac{6}{20} + \dfrac{2}{20} = \dfrac{20}{20} = 1.

2. With replacement vs without replacement

FeatureWith replacementWithout replacement
The item is returned before the next drawYesNo
Total stays the sameYesNo — decreases by 1 each draw
Probabilities change between drawsNoYes
Events areIndependentDependent
Worked example 1 With replacement

A bag contains 44 red and 66 blue marbles. Two marbles are drawn with replacement. Find P(both red)P(\text{both red}).

  1. P(1st red)=410=25P(\text{1st red}) = \dfrac{4}{10} = \dfrac{2}{5}.
  2. The marble is replaced, so P(2nd red)=410=25P(\text{2nd red}) = \dfrac{4}{10} = \dfrac{2}{5}.
  3. P(both red)=25×25=425P(\text{both red}) = \dfrac{2}{5} \times \dfrac{2}{5} = \dfrac{4}{25}.
Worked example 2 Without replacement

Same bag (44 red, 66 blue). Two marbles drawn without replacement. Find P(both red)P(\text{both red}).

  1. P(1st red)=410P(\text{1st red}) = \dfrac{4}{10}.
  2. Now 33 red remain out of 99: P(2nd red1st red)=39=13P(\text{2nd red} \mid \text{1st red}) = \dfrac{3}{9} = \dfrac{1}{3}.
  3. P(both red)=410×13=430=215P(\text{both red}) = \dfrac{4}{10} \times \dfrac{1}{3} = \dfrac{4}{30} = \dfrac{2}{15}.

Note: 215<425\dfrac{2}{15} < \dfrac{4}{25} — removing a red marble on the first draw makes a second red less likely.

3. “And” vs “or” probabilities

Probability rules for compound events

And rule (multiplication)

P(A and B)=P(A)×P(BA)P(A \text{ and } B) = P(A) \times P(B \mid A) If AA and BB are independent: P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B).

Or rule (addition)

P(A or B)=P(A)+P(B)P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B) If AA and BB are mutually exclusive: P(A or B)=P(A)+P(B)P(A \text{ or } B) = P(A) + P(B).

Worked example 3 Using the 'or' rule

A standard deck of 5252 cards. One card is drawn. Find P(heart or king)P(\text{heart or king}).

  1. P(heart)=1352P(\text{heart}) = \dfrac{13}{52}, P(king)=452P(\text{king}) = \dfrac{4}{52}.
  2. P(heart and king)=152P(\text{heart and king}) = \dfrac{1}{52} (the king of hearts).
  3. P(heart or king)=1352+452152=1652=413P(\text{heart or king}) = \dfrac{13}{52} + \dfrac{4}{52} - \dfrac{1}{52} = \dfrac{16}{52} = \dfrac{4}{13}.

4. Relative frequency and simulations

Theoretical probability is calculated from known, equally likely outcomes. Experimental probability (or relative frequency) is calculated from observed data:

Relative frequency

P(event)number of times event occurredtotal number of trialsP(\text{event}) \approx \dfrac{\text{number of times event occurred}}{\text{total number of trials}}

As the number of trials increases, relative frequency tends to approach theoretical probability — this is the law of large numbers.

A simulation models a random experiment using a tool (coin flips, random number generators, spreadsheets) when theoretical calculation is difficult or impossible.

Worked example 4 Simulation design

Estimate the probability that a family with 33 children has exactly 22 girls.

  1. Model each child as a coin flip: heads == girl, tails == boy.
  2. Flip 33 coins and record whether exactly 22 are heads. This is one trial.
  3. Repeat for 100100 trials. Suppose 3838 trials gave exactly 22 heads.
  4. Relative frequency =38100=0.38= \dfrac{38}{100} = 0.38.
  5. Theoretical probability =(32)×(12)3=3×18=38=0.375= \dbinom{3}{2} \times \left(\dfrac{1}{2}\right)^3 = 3 \times \dfrac{1}{8} = \dfrac{3}{8} = 0.375.

The simulation result (0.380.38) is close to the theoretical value (0.3750.375).


Practice

Fluency

Tier 1: basic skills

    1. A coin is tossed twice. List all outcomes using a tree diagram.
    2. Two dice are rolled. How many outcomes are in the sample space?
    3. A bag has 55 red and 33 green marbles. One marble is drawn and replaced, then another is drawn. Find P(both red)P(\text{both red}).
    4. Repeat Q3 but without replacement.
    5. A spinner has sections labelled 1,2,3,41, 2, 3, 4 (equally likely). It is spun twice. Find P(both even)P(\text{both even}).
    6. From a standard deck of 5252 cards, one card is drawn. Find P(spade or ace)P(\text{spade or ace}).
    7. A coin is tossed 200200 times and lands heads 114114 times. Calculate the relative frequency of heads.
    8. Are the events “rolling a 66” and “rolling an odd number” on a single die mutually exclusive? Explain.
    9. A tree diagram has two branches at the first stage (AA and BB) and two at the second stage (CC and DD from each). How many outcomes are there in total?
    10. In 5050 trials of a simulation, an event occurred 1818 times. Estimate the probability of the event.
Reasoning

Tier 2: mixed practice

    1. A bag contains 66 red, 44 blue, and 22 green marbles. Two marbles are drawn without replacement. Draw a full tree diagram and find P(both blue)P(\text{both blue}).
    2. Two cards are drawn without replacement from a standard deck. Find P(both aces)P(\text{both aces}).
    3. A box has 33 defective items out of 2020. Two items are selected at random without replacement. Find the probability that (a) both are defective, (b) neither is defective, (c) exactly one is defective.
    4. Events AA and BB are independent with P(A)=0.3P(A) = 0.3 and P(B)=0.5P(B) = 0.5. Find P(A and B)P(A \text{ and } B) and P(A or B)P(A \text{ or } B).
    5. A student rolls a die and flips a coin. Find the probability of getting an even number and heads.
    6. In a class of 3030, there are 1212 students who play sport and 88 who play music. Of these, 33 play both. A student is chosen at random. Find P(sport or music)P(\text{sport or music}).
    7. Explain the difference between independent events and mutually exclusive events, using an example of each.
    8. Design a simulation to estimate the probability that when 44 coins are tossed, at least 33 are tails. Describe the steps clearly.
Reasoning

Tier 3: explain and apply

    1. A medical test has a 95%95\% chance of correctly detecting a disease (sensitivity) and a 90%90\% chance of correctly identifying a healthy person (specificity). If 2%2\% of the population has the disease, draw a tree diagram and find the probability that a person who tests positive actually has the disease.
    2. Two events satisfy P(A)=0.4P(A) = 0.4, P(B)=0.5P(B) = 0.5, and P(A or B)=0.7P(A \text{ or } B) = 0.7. Determine whether AA and BB are independent. Justify.
    3. Three marbles are drawn without replacement from a bag of 55 red and 44 white. Find the probability of drawing at least one red marble.
    4. A game costs $2 to play. You roll two dice: if the sum is 77 you win $10, otherwise you win nothing. Find the expected profit per game and decide whether the game is fair.
    5. Explain why P(A or B)P(A)+P(B)P(A \text{ or } B) \leq P(A) + P(B), and state when equality holds.

Challenge

Reasoning

Harder reasoning

    1. Five cards numbered 11 to 55 are placed face down. Two cards are selected at random without replacement. Find the probability that the sum of the two cards is even.
    2. A bag contains nn red and 33 blue marbles. Two marbles are drawn without replacement. If P(both red)=12P(\text{both red}) = \dfrac{1}{2}, find nn.
    3. In a best-of-three game series, Team A has a 0.60.6 probability of winning each game (games are independent). Draw a tree diagram and find the probability that Team A wins the series.
    4. Three students independently attempt a problem. Their probabilities of solving it are 0.70.7, 0.80.8, and 0.90.9 respectively. Find the probability that at least one student solves the problem.
Answers

Answer key

Attempt the practice first. When you're ready to check, expand the answers below.

Show the full answer key

Tier 1

    1. Outcomes: HH, HT, TH, TT (4 outcomes).
    2. 6×6=366 \times 6 = 36 outcomes.
    3. P(both red)=58×58=2564P(\text{both red}) = \dfrac{5}{8} \times \dfrac{5}{8} = \dfrac{25}{64}.
    4. P(both red)=58×47=2056=514P(\text{both red}) = \dfrac{5}{8} \times \dfrac{4}{7} = \dfrac{20}{56} = \dfrac{5}{14}.
    5. Even numbers are 22 and 44, so P(even)=24=12P(\text{even}) = \dfrac{2}{4} = \dfrac{1}{2}. P(both even)=12×12=14P(\text{both even}) = \dfrac{1}{2} \times \dfrac{1}{2} = \dfrac{1}{4}.
    6. P(spade)=1352P(\text{spade}) = \dfrac{13}{52}, P(ace)=452P(\text{ace}) = \dfrac{4}{52}, P(spade and ace)=152P(\text{spade and ace}) = \dfrac{1}{52}. P(spade or ace)=1352+452152=1652=413P(\text{spade or ace}) = \dfrac{13}{52} + \dfrac{4}{52} - \dfrac{1}{52} = \dfrac{16}{52} = \dfrac{4}{13}.
    7. Relative frequency =114200=0.57= \dfrac{114}{200} = 0.57.
    8. Yes, they are mutually exclusive. A single die cannot show 66 (even) and an odd number at the same time — the events have no outcomes in common.
    9. 2×2=42 \times 2 = 4 outcomes.
    10. P1850=0.36P \approx \dfrac{18}{50} = 0.36.

Tier 2

    1. Total =12= 12. P(1st blue)=412=13P(\text{1st blue}) = \dfrac{4}{12} = \dfrac{1}{3}. P(2nd blue1st blue)=311P(\text{2nd blue} \mid \text{1st blue}) = \dfrac{3}{11}. P(both blue)=13×311=333=111P(\text{both blue}) = \dfrac{1}{3} \times \dfrac{3}{11} = \dfrac{3}{33} = \dfrac{1}{11}.
    2. P(both aces)=452×351=122652=1221P(\text{both aces}) = \dfrac{4}{52} \times \dfrac{3}{51} = \dfrac{12}{2652} = \dfrac{1}{221}.
    3. (a) P(both defective)=320×219=6380=3190P(\text{both defective}) = \dfrac{3}{20} \times \dfrac{2}{19} = \dfrac{6}{380} = \dfrac{3}{190}. (b) P(neither defective)=1720×1619=272380=6895P(\text{neither defective}) = \dfrac{17}{20} \times \dfrac{16}{19} = \dfrac{272}{380} = \dfrac{68}{95}. (c) P(exactly one)=131906895=13190136190=51190=51190P(\text{exactly one}) = 1 - \dfrac{3}{190} - \dfrac{68}{95} = 1 - \dfrac{3}{190} - \dfrac{136}{190} = \dfrac{51}{190} = \dfrac{51}{190}.
    4. P(A and B)=0.3×0.5=0.15P(A \text{ and } B) = 0.3 \times 0.5 = 0.15. P(A or B)=0.3+0.50.15=0.65P(A \text{ or } B) = 0.3 + 0.5 - 0.15 = 0.65.
    5. P(even)=36=12P(\text{even}) = \dfrac{3}{6} = \dfrac{1}{2}. P(heads)=12P(\text{heads}) = \dfrac{1}{2}. Events are independent, so P(even and heads)=12×12=14P(\text{even and heads}) = \dfrac{1}{2} \times \dfrac{1}{2} = \dfrac{1}{4}.
    6. P(sport or music)=12+8330=1730P(\text{sport or music}) = \dfrac{12 + 8 - 3}{30} = \dfrac{17}{30}.
    7. Independent events: the occurrence of one does not affect the probability of the other. Example: rolling a die and flipping a coin — the die result does not change the coin probability. Mutually exclusive events: the events cannot both occur at the same time. Example: rolling a 33 and rolling a 55 on a single die. Note: mutually exclusive events with non-zero probabilities are never independent (if one occurs, the probability of the other becomes 00).
    8. Simulation steps: (i) Assign heads == tails outcome for a coin. (ii) Flip 44 coins and record the number of tails. (iii) If 33 or 44 tails, record a success. (iv) Repeat for 100100 or more trials. (v) Estimate P(at least 3 tails)=number of successestotal trialsP(\text{at least 3 tails}) = \dfrac{\text{number of successes}}{\text{total trials}}. Theoretical value: P=(43)(12)4+(44)(12)4=4+116=516=0.3125P = \dbinom{4}{3}\left(\dfrac{1}{2}\right)^4 + \dbinom{4}{4}\left(\dfrac{1}{2}\right)^4 = \dfrac{4+1}{16} = \dfrac{5}{16} = 0.3125.

Tier 3

    1. Let D=D = has disease, T+=T^+ = tests positive. P(D)=0.02P(D) = 0.02, P(T+D)=0.95P(T^+ \mid D) = 0.95, P(T+no D)=0.10P(T^+ \mid \text{no } D) = 0.10. By tree diagram: P(T+)=0.02×0.95+0.98×0.10=0.019+0.098=0.117P(T^+) = 0.02 \times 0.95 + 0.98 \times 0.10 = 0.019 + 0.098 = 0.117. P(DT+)=0.0190.1170.162P(D \mid T^+) = \dfrac{0.019}{0.117} \approx 0.162. Only about 16%16\% of positive results are true positives — the low disease rate means most positives are false alarms.
    2. P(A and B)=P(A)+P(B)P(A or B)=0.4+0.50.7=0.2P(A \text{ and } B) = P(A) + P(B) - P(A \text{ or } B) = 0.4 + 0.5 - 0.7 = 0.2. If independent: P(A)×P(B)=0.4×0.5=0.2P(A) \times P(B) = 0.4 \times 0.5 = 0.2. Since P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B), yes, AA and BB are independent.
    3. It is easier to find P(no red)=P(all white)=49×38×27=24504=121P(\text{no red}) = P(\text{all white}) = \dfrac{4}{9} \times \dfrac{3}{8} \times \dfrac{2}{7} = \dfrac{24}{504} = \dfrac{1}{21}. So P(at least one red)=1121=2021P(\text{at least one red}) = 1 - \dfrac{1}{21} = \dfrac{20}{21}.
    4. P(sum=7)=636=16P(\text{sum} = 7) = \dfrac{6}{36} = \dfrac{1}{6}. Expected winnings =16×10+56×0=1061.67= \dfrac{1}{6} \times 10 + \dfrac{5}{6} \times 0 = \dfrac{10}{6} \approx 1.67 dollars. Expected profit =1.672=0.33= 1.67 - 2 = -0.33 dollars. The game is not fair — on average, the player loses about 3333 cents per game.
    5. P(A or B)=P(A)+P(B)P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B). Since P(A and B)0P(A \text{ and } B) \geq 0, we have P(A or B)P(A)+P(B)P(A \text{ or } B) \leq P(A) + P(B). Equality holds when P(A and B)=0P(A \text{ and } B) = 0, i.e. when AA and BB are mutually exclusive.

Challenge

    1. Cards 1155: odd numbers are 1,3,51, 3, 5 (three), even numbers are 2,42, 4 (two). For an even sum, both cards must be the same parity. P(both odd)=35×24=620P(\text{both odd}) = \dfrac{3}{5} \times \dfrac{2}{4} = \dfrac{6}{20}. P(both even)=25×14=220P(\text{both even}) = \dfrac{2}{5} \times \dfrac{1}{4} = \dfrac{2}{20}. P(even sum)=620+220=820=25P(\text{even sum}) = \dfrac{6}{20} + \dfrac{2}{20} = \dfrac{8}{20} = \dfrac{2}{5}.
    2. P(both red)=nn+3×n1n+2=12P(\text{both red}) = \dfrac{n}{n+3} \times \dfrac{n-1}{n+2} = \dfrac{1}{2}. So 2n(n1)=(n+3)(n+2)2n(n-1) = (n+3)(n+2), giving 2n22n=n2+5n+62n^2 - 2n = n^2 + 5n + 6, i.e. n27n6=0n^2 - 7n - 6 = 0. Using the quadratic formula: n=7+49+242=7+7327+8.54427.77n = \dfrac{7 + \sqrt{49 + 24}}{2} = \dfrac{7 + \sqrt{73}}{2} \approx \dfrac{7 + 8.544}{2} \approx 7.77. Since nn must be a positive integer, we check n=8n = 8: 811×710=56110=285512\dfrac{8}{11} \times \dfrac{7}{10} = \dfrac{56}{110} = \dfrac{28}{55} \neq \dfrac{1}{2}. Check n=6n = 6: 69×58=3072=51212\dfrac{6}{9} \times \dfrac{5}{8} = \dfrac{30}{72} = \dfrac{5}{12} \neq \dfrac{1}{2}. Since no integer solution exists, the equation n27n6=0n^2 - 7n - 6 = 0 has no positive integer root. Revisiting: if we allow P(both red)=12P(\text{both red}) = \dfrac{1}{2} to be approximate, n=8n = 8 gives 28550.509\dfrac{28}{55} \approx 0.509, which is closest. However, for an exact solution: no integer value of nn works — this demonstrates that not every target probability is achievable with whole numbers of marbles.
    3. Team A wins in 2 games: P=0.6×0.6=0.36P = 0.6 \times 0.6 = 0.36. Team A loses game 1, wins games 2 and 3: P=0.4×0.6×0.6=0.144P = 0.4 \times 0.6 \times 0.6 = 0.144. Team A wins game 1, loses game 2, wins game 3: P=0.6×0.4×0.6=0.144P = 0.6 \times 0.4 \times 0.6 = 0.144. Total: P(A wins series)=0.36+0.144+0.144=0.648P(\text{A wins series}) = 0.36 + 0.144 + 0.144 = 0.648.
    4. P(none solve)=(10.7)(10.8)(10.9)=0.3×0.2×0.1=0.006P(\text{none solve}) = (1 - 0.7)(1 - 0.8)(1 - 0.9) = 0.3 \times 0.2 \times 0.1 = 0.006. P(at least one solves)=10.006=0.994P(\text{at least one solves}) = 1 - 0.006 = 0.994.

Prefer paper? Print the answer key as a separate booklet: open print view ->