Paper ZeroSign in

IB Maths Analysis and Approaches SL

Probability (Venn diagrams, trees and conditional probability): question types and practice

Probability: Venn diagrams, trees and conditional probability carried 4% of the marks in the 20 recent exams, through 5 kinds of question. The one worth the most marks is Tree diagrams and repeated draws.

Syllabus: AA SL 4.5, 4.6 and 4.11. SL 4.5 is the language of probability: trial, outcome, equally likely outcomes, relative frequency, the sample space UU and an event; P(A)=n(A)n(U)\mathrm{P}(A) = \frac{n(A)}{n(U)}; complementary events; the expected number of occurrences. SL 4.6 is Venn diagrams, tree diagrams, sample space diagrams and tables of outcomes; combined events and the addition rule; mutually exclusive events; conditional probability; independent events. SL 4.11 gives the formal definitions: P(A∣B)=P(A∩B)P(B)\mathrm{P}(A \mid B) = \frac{\mathrm{P}(A \cap B)}{\mathrm{P}(B)}, and P(A∣B)=P(A)=P(A∣B′)\mathrm{P}(A \mid B) = \mathrm{P}(A) = \mathrm{P}(A \mid B') for independent events.
Papers: Both. On Paper 1 the probabilities are fractions or short decimals, and every answer is exact: 59\frac{5}{9}, not 0.5560.556. On Paper 2 the same diagrams carry decimals, often values found in an earlier part (from a normal or binomial model), and answers go to 3 s.f. The GDC does the arithmetic and solves the quadratic when there is an unknown; the set-up (which paths, which regions, which equation) is still yours to write down.
Scope: AA SL only. Bayes' theorem as a formula (for up to three events) is AHL 4.13, but reversing a two-branch tree with the conditional-probability formula is SL, and it is examined. Counting with permutations and combinations is AHL 1.10: at SL, draws without replacement are products along a tree path, not (nr)\binom{n}{r} counts. Probabilities for a random variable in a range ("given that X>50X > 50") are in Given that X is in a range.
Formula booklet: P(A)=n(A)n(U)\mathrm{P}(A) = \frac{n(A)}{n(U)} and P(A)+P(A′)=1\mathrm{P}(A) + \mathrm{P}(A') = 1 (SL 4.5); P(A∪B)=P(A)+P(B)−P(A∩B)\mathrm{P}(A \cup B) = \mathrm{P}(A) + \mathrm{P}(B) - \mathrm{P}(A \cap B), P(A∪B)=P(A)+P(B)\mathrm{P}(A \cup B) = \mathrm{P}(A) + \mathrm{P}(B) for mutually exclusive events, P(A∣B)=P(A∩B)P(B)\mathrm{P}(A \mid B) = \frac{\mathrm{P}(A \cap B)}{\mathrm{P}(B)}, and P(A∩B)=P(A) P(B)\mathrm{P}(A \cap B) = \mathrm{P}(A)\,\mathrm{P}(B) for independent events (SL 4.6).

  • Not given: the multiplication form P(A∩B)=P(A∣B) P(B)\mathrm{P}(A \cap B) = \mathrm{P}(A \mid B)\,\mathrm{P}(B); the expected number n×P(A)n \times \mathrm{P}(A); "neither" =1−P(A∪B)= 1 - \mathrm{P}(A \cup B) and "AA only" =P(A)−P(A∩B)= \mathrm{P}(A) - \mathrm{P}(A \cap B); "at least one" =1−P(none)= 1 - \mathrm{P}(\text{none}); the tree rules (multiply along a path, add the paths; without replacement the total drops by one at each draw, and so does the number of the kind just taken); the equivalent forms of independence, P(A∣B)=P(A)=P(A∣B′)\mathrm{P}(A \mid B) = \mathrm{P}(A) = \mathrm{P}(A \mid B'); the first success on trial kk, (1−p)k−1p(1 - p)^{k-1}p.

Try one now

A Probability question of the type "Tree diagrams and repeated draws". Work it out on paper, then type your answer here.

No calculator[1]

A bag contains nn marbles, where n>3n > 3, of which 33 are blue. Two marbles are taken at random without replacement.

Write down, in terms of nn, the probability that the first marble is blue.

Free, with no account. You see where each mark went.

The 5 question types

  1. Tree diagrams and repeated draws

    Multiply along, add across

    • In 8 of 20 recent exams
    • 1% of the marks

    Paper 2 (calculator) more than Paper 1 (no calculator) (6 exam versions have a Paper 2 (calculator) part, 3 a Paper 1 (no calculator) part), 1–4 marks a part, usually a chain inside a Section B question: complete the tree, show a total, then a conditional or an expected value. Common (8 of 20 exam versions). On Paper 2 (calculator) the branch values are often probabilities found in an earlier part, from a normal or binomial model.

  2. Probabilities in terms of an unknown

    Form an equation, solve, reject

    • In 7 of 20 recent exams
    • 1% of the marks

    Paper 1 (no calculator) mostly (4 exam versions on Paper 1 (no calculator), 3 on Paper 2 (calculator)), 3–6 marks, often split into "complete the tree" or "show that" parts before the solve. Common (7 of 20 exam versions). The equation is a quadratic in 5 of them, and a root is rejected in 3.

  3. Conditional probability

    Find P(A | B), or use it to find P(A ∩ B)

    • In 8 of 20 recent exams

    Paper 1 (no calculator) mostly (6 exam versions have a Paper 1 (no calculator) part, 3 a Paper 2 (calculator) part), 2–4 marks, nearly always the last part after a Venn diagram or a tree has been filled. Common (8 of 20 exam versions). A tree is the tool in 4 of them, and 3 of those are reversals ("given the result, which bag?").

  4. Two events

    Fill the Venn diagram, use the addition rule

    • In 6 of 20 recent exams

    Paper 1 (no calculator) mostly, as a short Section A question of 4–6 marks in two or three parts; on Paper 2 (calculator) as the opening parts of a longer question, often with counts. Parts are 1–3 marks each. Common (6 of 20 exam versions, 4 of them on Paper 1 (no calculator)). It is also the first step of most Conditional probability and Are the events independent? parts, which follow it in the same question.

  5. Are the events independent?

    Test, then conclude with a reason

    • In 6 of 20 recent exams

    Paper 1 (no calculator) and Paper 2 (calculator) equally (3 exam versions each), 1–3 marks, the last part of a Venn, table or tree question, after the numbers it needs have been found. Common (6 of 20 exam versions). Three times the conclusion was given ("show that … are independent", or "… are not independent"), so the marks were all for the numbers.

The ideas you need

Probability and the sample space

A trial is one go of an experiment (one roll, one draw, one person chosen). Each possible result is an outcome, and the set of all outcomes is the sample space, UU. An event is a set of outcomes, such as "the score is even".

  • Equally likely outcomes: P(A)=n(A)n(U)\mathrm{P}(A) = \frac{n(A)}{n(U)}, the number of outcomes in AA over the number in UU. A letter chosen at random from STATISTICS (10 letters) is a T with probability 310\frac{3}{10}.
  • Every probability is between 00 and 11. A value outside [0,1][0, 1] is a mistake, or a root to reject (see Probabilities in terms of an unknown).
  • The complement A′A' ("not AA") has P(A′)=1−P(A)\mathrm{P}(A') = 1 - \mathrm{P}(A). It is the quick way to "at least one", "not all" and "any other colour": STATISTICS has 3 vowels, so P(not a vowel)=1−310=710\mathrm{P}(\text{not a vowel}) = 1 - \frac{3}{10} = \frac{7}{10}.
  • Relative frequency estimates a probability from data: the number of times an outcome happened over the number of trials. It is how a probability is found when the outcomes are not equally likely and nothing else gives it (a drawing pin, a biased die of unknown bias, a survey), and a bigger sample gives a more reliable estimate. A theoretical probability comes from the model instead (16\frac{1}{6} for a fair die).

Mini-example: in a survey of 50 households, 7 have no car, 24 have one, 15 have two and 4 have three. An estimate of the probability that a household has at least one car is 1−750=43501 - \frac{7}{50} = \frac{43}{50} (by the complement, one subtraction instead of three additions).

Working backwards: a bag contains 8 green counters, and a counter taken at random is green with probability 0.320.32. So 8n(U)=0.32\frac{8}{n(U)} = 0.32, and the bag holds 8÷0.32=258 \div 0.32 = 25 counters.

The expected number of occurrences

If a trial is repeated nn times and P(A)\mathrm{P}(A) stays the same, the expected number of times AA happens is

n×P(A)n \times \mathrm{P}(A)
  • A fair die rolled 9090 times: the expected number of sixes is 90×16=1590 \times \frac{1}{6} = 15.
  • It is a long-run average, not a prediction, so it need not be a whole number: a spinner that lands on red with probability 0.430.43, spun 5050 times, has an expected 50×0.43=21.550 \times 0.43 = 21.5 reds. Markschemes accept the unrounded value (and usually the whole number either side).
  • When the trials are independent with the same pp, this is the mean of the binomial distribution, npnp (Binomial probabilities). A probability found in an earlier part (say from a normal model) is often the pp: "how many of 200200 are expected to …" is 200×200 \times that probability.
  • From a sample to a population is the same idea, with the sample proportion as the probability: 4444 large eggs in a random sample of 200200 suggest 44200×5000=1100\frac{44}{200} \times 5000 = 1100 among the day's 50005000 eggs. Inside a cumulative frequency question that step stays in Cumulative frequency graphs.

Venn diagrams and the addition rule

Two events split the sample space into four regions: AA only, both (A∩BA \cap B), BB only, and neither. The four regions add to 11 (or to the total, with counts).

P(A∪B)=P(A)+P(B)−P(A∩B)\mathrm{P}(A \cup B) = \mathrm{P}(A) + \mathrm{P}(B) - \mathrm{P}(A \cap B)

P(A)+P(B)\mathrm{P}(A) + \mathrm{P}(B) counts the overlap twice, so it is subtracted once. "AA or BB" in probability is inclusive: it means AA, or BB, or both.

In the exam, draw two overlapping circles inside a rectangle and put a value in all four regions; here the regions are listed in a table.

Mini-example: P(A)=0.54\mathrm{P}(A) = 0.54, P(B)=0.3\mathrm{P}(B) = 0.3 and P(A∩B)=0.09\mathrm{P}(A \cap B) = 0.09. Fill the overlap first, then the rest:

RegionProbability
AA only0.54−0.09=0.450.54 - 0.09 = 0.45
both0.090.09
BB only0.3−0.09=0.210.3 - 0.09 = 0.21
neither1−0.75=0.251 - 0.75 = 0.25

P(A∪B)=0.45+0.09+0.21=0.75\mathrm{P}(A \cup B) = 0.45 + 0.09 + 0.21 = 0.75, the same as 0.54+0.3−0.090.54 + 0.3 - 0.09.

  • Names for regions: A∩B′A \cap B' is "AA but not BB" (AA only); A′∩B′A' \cap B' is "neither"; "exactly one" is the two "only" regions together, P(A∪B)−P(A∩B)\mathrm{P}(A \cup B) - \mathrm{P}(A \cap B).
  • Mutually exclusive events can't happen together: P(A∩B)=0\mathrm{P}(A \cap B) = 0, so P(A∪B)=P(A)+P(B)\mathrm{P}(A \cup B) = \mathrm{P}(A) + \mathrm{P}(B). On a Venn diagram the circles don't overlap. (On the syllabus, but not asked about directly in the 2021–26 papers.)
  • Counts work the same way: n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B). Divide by the total only at the end.
  • Label every region. A markscheme gives the method mark for a Venn diagram only if every region is labelled correctly, and a number in the right region still has to be stated as the answer.

Two-way tables and sample space diagrams

A two-way table sorts one group by two features. Each cell is an "and" (an intersection), and the totals are the single events.

Mini-example: 60 students, by year and by whether they have a part-time job.

  • Year 12
    Job
    1414
    No job
    2121
    Total
    3535
  • Year 13
    Job
    1616
    No job
    99
    Total
    2525
  • Total
    Job
    3030
    No job
    3030
    Total
    6060
  • Missing entries come from the totals: every row and every column adds up. Here the Year 13 row total is 60−35=2560 - 35 = 25, and its "no job" cell is 25−16=925 - 16 = 9.
  • "And" is a cell over the grand total: P(Year 13 and a job)=1660=415\mathrm{P}(\text{Year 13 and a job}) = \frac{16}{60} = \frac{4}{15}.
  • "Of the Year 12 students" restricts the table to one row: 1435=25\frac{14}{35} = \frac{2}{5} of them have a job. That is a conditional probability read straight off the table (Conditional probability).

A sample space diagram is the same idea for two equally likely experiments: a grid of all the outcome pairs. Two fair four-sided dice (1 to 4) give 1616 pairs. The total is 55 for (1,4)(1, 4), (2,3)(2, 3), (3,2)(3, 2) and (4,1)(4, 1), so P(total=5)=416=14\mathrm{P}(\text{total} = 5) = \frac{4}{16} = \frac{1}{4}; at least one die shows 44 in 77 of the 1616 cells (a row and a column of 44, with their shared corner once), so that probability is 716\frac{7}{16}.

Tree diagrams

A tree shows the stages of an experiment in order. Each branch carries a probability, and the branches from any one point add to 11. In this guide a tree is written as a table, one row per path: the first branch, the second branch, then the product along the path. In the exam, draw the branches, with the probability written on every branch.

  • Multiply along a path to get the probability of that whole sequence of results.
  • Add across the paths that make up the event.
  • The second-stage branches depend on what happened first whenever the first result changes the situation: a different bag, different weather, a ball taken out.

Mini-example: a bag holds 4 red and 3 blue balls, and two are taken without replacement. After a red is taken, 3 red and 3 blue are left.

  • red, 47\frac{4}{7}
    Second ball
    red, 36\frac{3}{6}
    Path probability
    47×36=27\frac{4}{7} \times \frac{3}{6} = \frac{2}{7}
  • red, 47\frac{4}{7}
    Second ball
    blue, 36\frac{3}{6}
    Path probability
    47×36=27\frac{4}{7} \times \frac{3}{6} = \frac{2}{7}
  • blue, 37\frac{3}{7}
    Second ball
    red, 46\frac{4}{6}
    Path probability
    37×46=27\frac{3}{7} \times \frac{4}{6} = \frac{2}{7}
  • blue, 37\frac{3}{7}
    Second ball
    blue, 26\frac{2}{6}
    Path probability
    37×26=17\frac{3}{7} \times \frac{2}{6} = \frac{1}{7}

P(one of each colour)=27+27=47\mathrm{P}(\text{one of each colour}) = \frac{2}{7} + \frac{2}{7} = \frac{4}{7}: two paths, because the red can come first or second. The four paths add to 11, which checks the tree.

  • Without replacement, every second-stage fraction has one fewer on the bottom (66, not 77), and only the colour just taken has one fewer on top: after a red, red is 36\frac{3}{6} and blue stays 36\frac{3}{6}; after a blue, red stays 46\frac{4}{6} and blue is 26\frac{2}{6}.
  • With replacement, the second stage is a copy of the first: P(both red)=47×47=1649\mathrm{P}(\text{both red}) = \frac{4}{7} \times \frac{4}{7} = \frac{16}{49}.

Conditional probability

P(A∣B)\mathrm{P}(A \mid B), "the probability of AA given BB", is the probability of AA when you already know that BB has happened. Knowing BB shrinks the sample space to BB, so

P(A∣B)=P(A∩B)P(B)and, multiplied up,P(A∩B)=P(A∣B) P(B)\mathrm{P}(A \mid B) = \frac{\mathrm{P}(A \cap B)}{\mathrm{P}(B)} \qquad \text{and, multiplied up,} \qquad \mathrm{P}(A \cap B) = \mathrm{P}(A \mid B)\,\mathrm{P}(B)

The event after the bar is the condition: it goes on the bottom.

Mini-example (reduced sample space): a fair die shows an even number. The outcomes left are 2,4,62, 4, 6, and two of them are more than 33, so P(more than 3∣even)=23\mathrm{P}(\text{more than } 3 \mid \text{even}) = \frac{2}{3}. The formula agrees: 2/63/6=23\frac{2/6}{3/6} = \frac{2}{3}.

Mini-example (from a Venn diagram): with the regions in Venn diagrams, P(A∣B)=0.090.3=310\mathrm{P}(A \mid B) = \frac{0.09}{0.3} = \frac{3}{10}, but P(B∣A)=0.090.54=16\mathrm{P}(B \mid A) = \frac{0.09}{0.54} = \frac{1}{6}. The order matters: the same overlap over a different condition.

  • The complement works before the bar: P(A′∣B)=1−P(A∣B)=710\mathrm{P}(A' \mid B) = 1 - \mathrm{P}(A \mid B) = \frac{7}{10}. It does not work after the bar: P(A∣B′)=P(A∩B′)P(B′)=0.450.7=914\mathrm{P}(A \mid B') = \frac{\mathrm{P}(A \cap B')}{\mathrm{P}(B')} = \frac{0.45}{0.7} = \frac{9}{14}, not 1−3101 - \frac{3}{10}.
  • The multiplication form is what a tree does: the second-stage branches are conditional probabilities, and multiplying along a path is P(B) P(A∣B)=P(A∩B)\mathrm{P}(B)\,\mathrm{P}(A \mid B) = \mathrm{P}(A \cap B).

Independent events

AA and BB are independent if knowing that one happens doesn't change the probability of the other:

P(A∩B)=P(A) P(B),or equivalentlyP(A∣B)=P(A)=P(A∣B′)\mathrm{P}(A \cap B) = \mathrm{P}(A)\,\mathrm{P}(B), \quad \text{or equivalently} \quad \mathrm{P}(A \mid B) = \mathrm{P}(A) = \mathrm{P}(A \mid B')

Mini-example: AA and BB are independent, with P(A)=0.6\mathrm{P}(A) = 0.6 and P(B)=0.25\mathrm{P}(B) = 0.25. Then P(A∩B)=0.6×0.25=0.15\mathrm{P}(A \cap B) = 0.6 \times 0.25 = 0.15, P(A∪B)=0.6+0.25−0.15=0.7\mathrm{P}(A \cup B) = 0.6 + 0.25 - 0.15 = 0.7, and P(A∣B)=P(A)=0.6\mathrm{P}(A \mid B) = \mathrm{P}(A) = 0.6, with no division needed.

  • Using independence when nothing is unknown is one line: multiply for "both", or write P(A∣B)=P(A)\mathrm{P}(A \mid B) = \mathrm{P}(A) for a conditional. Markschemes give the method mark for that recognition. It is not a type: the types are testing independence (Are the events independent?) and using it to find an unknown (Probabilities in terms of an unknown).
  • Complements stay independent: if AA and BB are independent, so are AA and B′B', so P(A∩B′)=0.6×0.75=0.45\mathrm{P}(A \cap B') = 0.6 \times 0.75 = 0.45.
  • On a tree, independence means the second-stage branches are the same whichever way the first stage went.
  • Independent is not mutually exclusive. Mutually exclusive events with non-zero probabilities are never independent: P(A∩B)=0\mathrm{P}(A \cap B) = 0, but P(A) P(B)>0\mathrm{P}(A)\,\mathrm{P}(B) > 0.

Which type?

  • two events: the single probabilities and one of the overlap, the union, "neither" or "exactly one" (probabilities or counts); or only the two singles, for a bound
    Asked for
    another region, the union, or a bound for the overlap
    First move
    put the overlap in first, then the "only" regions
  • stages or draws, one after another
    Asked for
    the probability of a combined result
    First move
    draw the tree, with the first-stage probabilities
  • a Venn diagram, table or tree, and a condition; or a conditional in words
    Asked for
    a probability given the condition, the first stage given the result, or the intersection from a given conditional
    First move
    the intersection over the condition (or multiply up: P(A∣B) P(B)\mathrm{P}(A \mid B)\,\mathrm{P}(B))
  • enough to find P(A)\mathrm{P}(A), P(B)\mathrm{P}(B) and P(A∩B)\mathrm{P}(A \cap B)
    Asked for
    whether AA and BB are independent
    First move
    compare P(A) P(B)\mathrm{P}(A)\,\mathrm{P}(B) with P(A∩B)\mathrm{P}(A \cap B), with the numbers
  • an unknown in the regions, branches, cells or counts, and a fact that fixes it (independence, a path probability, a conditional, or the union and a conditional together)
    Asked for
    the unknown
    First move
    write every probability in the unknown, then form an equation
  • independence, and nothing unknown
    Asked for
    P(A∩B)\mathrm{P}(A \cap B) or P(A∣B)\mathrm{P}(A \mid B)
    First move
    multiply, or P(A∣B)=P(A)\mathrm{P}(A \mid B) = \mathrm{P}(A)
    Type
    Independent events (no type)
  • a number of repeats and a probability
    Asked for
    how many times to expect
    First move
    n×P(A)n \times \mathrm{P}(A)
    Type
    The expected number (no type)
  • two ranges of one random variable (X>aX > a, "at least 3")
    Asked for
    a probability given that XX is in a range
    First move
    draw both ranges on a number line
  • a fixed number of independent trials with the same pp (P2)
    Asked for
    the probability of a number of successes
    First move
    X∼B(n,p)X \sim \mathrm{B}(n, p)
  • a table of P(X=x)\mathrm{P}(X = x) containing kk
    Asked for
    kk, then E(X)\mathrm{E}(X)
    First move
    the probabilities add to 11

Where probability hides in other topics

Probability turns up inside other topics, usually as the frame (a tree, a union, a conditional) around numbers that another topic supplies.

  • Two players take turns until one of them succeeds, and the first player's chance of winning is asked (sequences, SL 1.8)
    It becomes
    the winning paths make a geometric series: Sum to infinity. With a success probability of 0.40.4 each go, P(first player wins)=0.4+0.62(0.4)+0.64(0.4)+⋯=0.41−0.36=58\mathrm{P}(\text{first player wins}) = 0.4 + 0.6^2(0.4) + 0.6^4(0.4) + \cdots = \frac{0.4}{1 - 0.36} = \frac{5}{8}
    Watch for
    rr is the probability that a whole round has no winner (0.620.6^2), not 0.60.6
  • The least number of trials for P(at least one success)\mathrm{P}(\text{at least one success}) to pass a target (sequences)
    It becomes
    Find n: each ticket wins with probability 0.10.1, so 1−0.9n>0.91 - 0.9^n > 0.9 gives 0.9n<0.10.9^n < 0.1; 0.921=0.109…0.9^{21} = 0.109\ldots and 0.922=0.0984…0.9^{22} = 0.0984\ldots, so 2222 tickets
    Watch for
    "at least one" is 1−P(none)1 - \mathrm{P}(\text{none}); dividing by ln⁡0.9<0\ln 0.9 < 0 flips the inequality
  • The first success on trial kk (sequences)
    It becomes
    (1−p)k−1p(1 - p)^{k-1}p is the kkth term of a geometric sequence with u1=pu_1 = p and r=1−pr = 1 - p
    Watch for
    the terms for k=1,2,3,…k = 1, 2, 3, \ldots add up to p1−(1−p)=1\frac{p}{1 - (1 - p)} = 1: a success comes eventually
  • A distribution whose entries are tree paths, or a game whose prize depends on draws (discrete random variables, SL 4.7)
    It becomes
    Build the distribution from the experiment, then Expected value in context: each P(X=x)\mathrm{P}(X = x) is a sum of paths
    Watch for
    the entries must add to 11: check before using them
  • Tree branches whose values come from a normal or binomial model (distributions)
    Watch for
    carry the unrounded branch values; answers from 3 s.f. inputs are usually accepted
  • "Given that" with both events ranges of one variable, such as X>50X > 50 (distributions)
    It becomes
    Given that X is in a range: the intersection is the overlap of the two ranges
    Watch for
    the top is the overlap, not the event asked about on its own
  • A quadratic for an unknown probability (quadratics, SL 2.7)
    It becomes
    Solving quadratic equations, then reject roots outside [0,1][0, 1], as Quadratic in disguise rejects impossible values of exe^x or sin⁡x\sin x
    Watch for
    every region or branch in the unknown must be in [0,1][0, 1], not just the unknown itself
  • The fraction of a time interval that a sinusoidal model spends above a level, used as a probability (Trig graphs and sinusoidal models, SL 3.7)
    It becomes
    a proportion used as a probability (Probability and the sample space): the total time above the level divided by the whole time interval (one period's time divided by the period only when the interval is a whole number of periods), because a time chosen at random is equally likely to fall anywhere in the interval; the times come from Above or below a level
    Watch for
    find both crossing times in one period before subtracting, then count every period, and any part of one, in the interval

More in Statistics and probability

Every topic of the course

Guides