Educerie

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 4.11 · SL and HL

Conditional probability and independence

Once you know that one thing has happened, how should the probability of another change, and how do you show that it does not change at all?

What you will learn

  • Understand that a conditional probability treats the known event as the new sample space
  • Know the definition P(A|B) = P(A and B) / P(B) and its rearranged form P(A and B) = P(B)P(A|B)
  • Understand that events are independent when P(A|B) = P(A) = P(A|B'), which is the same as P(A and B) = P(A)P(B)
  • Know that independent and mutually exclusive mean different things

You must be able to

  1. Calculate a conditional probability from a Venn diagram, a table, a tree or a normal or binomial variable
  2. Determine whether two events are independent, showing both values and a conclusion
  3. Calculate a reversed conditional probability from a tree, such as P(rain | late)
  4. Solve for an unknown probability given that two events are independent
  5. Draw a tree for picking without replacement and use it for given that questions
  6. Explain why mutually exclusive events with non-zero probabilities cannot be independent

In the exam. across recent papers mostly Paper 2, less often Paper 1, as short parts of a longer probability question, and nearly always as "Find". The most common Paper 2 setting is a "given that" question about a normal or binomial variable; the others are a conditional probability from a Venn diagram, a table or a tree, a tree read backwards, sampling without replacement, finding an unknown from independence, and "determine whether AA and BB are independent". Paper 1 wants exact values; Paper 2 accepts 3 significant figures. At HL the same ideas are the engine of Bayes' theorem in 4.13.

1Conditioning shrinks the sample space to B

Take a gym, with its members as the sample space. Let AA be "a member uses the pool" and BB "a member attends a group class". Records show P(A)=0.45P(A) = 0.45, P(B)=0.30P(B) = 0.30 and P(A∩B)=0.12P(A \cap B) = 0.12.

Figure 1(a) fills in the Venn diagram:

  • 0.120.12 in the overlap.
  • 0.45−0.12=0.330.45 - 0.12 = 0.33 in AA only.
  • 0.30−0.12=0.180.30 - 0.12 = 0.18 in BB only.
  • 1−(0.33+0.12+0.18)=0.371 - (0.33 + 0.12 + 0.18) = 0.37 outside both.
Figure 1 · Given B, the sample space shrinks to B (a) Everything that can happen U A B 0.33 0.12 0.18 0.37 P(A) = 0.45, P(B) = 0.30, P(A ∩ B) = 0.12 B happened (b) Only B is left U B 0.12 0.18 P(A | B) = 0.12 ÷ 0.30 = 0.4 Left: the whole sample space. Right: once you know B happened, only B is left, and A takes 0.12 of its 0.30.
Figure 1 · Given B, the sample space shrinks to B

Now you are told the member attends a class. Everyone outside BB is irrelevant. Figure 1(b) keeps only circle BB, of probability 0.300.30. The part also in AA is 0.120.12. The answer is the fraction of BB that lies in AA:

P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}, for P(B)>0P(B) > 0. From the formula booklet.

P(A∣B)=P(A∩B)P(B)=0.120.30=0.4\begin{aligned}P(A \mid B) &= \frac{P(A \cap B)}{P(B)} \\[6pt] &= \frac{0.12}{0.30} \\[6pt] &= 0.4\end{aligned}

So 40% of class-goers use the pool, against 45% of members overall.

The order matters. P(B∣A)P(B \mid A) asks a different question: of the pool users, what fraction attend a class?

P(B∣A)=P(A∩B)P(A)=0.120.45=415≈0.267\begin{aligned}P(B \mid A) &= \frac{P(A \cap B)}{P(A)} \\[6pt] &= \frac{0.12}{0.45} \\[6pt] &= \frac{4}{15} \approx 0.267\end{aligned}
  • Same overlap on top, a different event underneath, a different answer. You always divide by the event after the bar, because that is the one you know has happened.
  • Mixing up P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) is the costliest slip in probability. 4.13 (HL) is built on the gap.

Two limiting cases.

  • If AA and BB cannot both happen, then P(A∩B)=0P(A \cap B) = 0 and P(A∣B)=0P(A \mid B) = 0. Knowing BB rules AA out.
  • If BB sits entirely inside AA, then A∩B=BA \cap B = B and P(A∣B)=P(B)P(B)=1P(A \mid B) = \dfrac{P(B)}{P(B)} = 1. Knowing BB guarantees AA.

The complement

  • Given BB, either AA happens or it does not, so the conditional probabilities add to 1: P(A′∣B)=1−P(A∣B)P(A' \mid B) = 1 - P(A \mid B). In the gym, P(A′∣B)=1−0.4=0.6P(A' \mid B) = 1 - 0.4 = 0.6.
  • The condition stays fixed. P(A∣B)+P(A∣B′)P(A \mid B) + P(A \mid B') is not 1 in general.

From counts, no formula needed. With a table of counts, look only at the row or column you were told about and read the fraction inside it. The guide allows this route.

Example: a library surveys 200 members on two habits, reading fiction (FF) and borrowing audiobooks (UU).

AudiobooksNo audiobooksTotal
Fiction255580
Not fiction5070120
Total75125200

"Given that a member borrows audiobooks, find the probability that they read fiction." Only the audiobook column counts: 75 members, 25 of whom read fiction.

P(F∣U)=2575=13P(F \mid U) = \dfrac{25}{75} = \dfrac{1}{3}. The formula agrees: 25/20075/200=2575\dfrac{25/200}{75/200} = \dfrac{25}{75}. The other way round: P(U∣F)=2580=516P(U \mid F) = \dfrac{25}{80} = \dfrac{5}{16}.

From a sample space diagram. Two fair dice are rolled. Given that at least one die shows a 6, find the probability that the total is 8. Each cell holds the total, and the 36 cells are equally likely (4.5).

Die 1 / die 2123456
1234567
2345678
3456789
45678910
567891011
6789101112
  • The condition keeps only the cells in bold, the last row and the last column. That is 6+6−1=116 + 6 - 1 = 11 cells, because the cell for 6 and 6 lies in both.
  • Of those 11, two have a total of 8: die 1 showing 2 with die 2 showing 6, and the reverse. So P(total 8∣at least one 6)=211P(\text{total } 8 \mid \text{at least one } 6) = \dfrac{2}{11}.
  • Turn it round and the restricted space changes. Five cells have a total of 8 (2 and 6, 3 and 5, 4 and 4, 5 and 3, 6 and 2). Two of them contain a 6. So P(at least one 6∣total 8)=25P(\text{at least one } 6 \mid \text{total } 8) = \dfrac{2}{5}.
    • Divide by the cells left after the condition, never by 36. 236\dfrac{2}{36} is the overlap, the probability of both events, not either conditional.

A Venn diagram with an unknown. Sometimes the overlap is the thing you must find first.

Example: in a village, 70% of households have broadband, 45% have a streaming subscription and 20% have neither. Let BB be broadband and SS streaming.

The households with at least one of the two are 100−20=80%100 - 20 = 80\%. By the addition rule, 70+45−P(B∩S)=8070 + 45 - P(B \cap S) = 80, so P(B∩S)=35%P(B \cap S) = 35\%. Now any conditional probability is a quick division:

P(S∣B)=0.350.70=0.5of the broadband homes, half also streamP(S \mid B) = \frac{0.35}{0.70} = 0.5 \qquad \textcolor{#838c91}{\text{of the broadband homes, half also stream}}P(B∣S)=0.350.45=79P(B \mid S) = \frac{0.35}{0.45} = \frac{7}{9}

2The multiplication form, and why trees work

Multiply the definition by P(B)P(B) to get the guide's alternate form:

P(A∩B)=P(B) P(A∣B)P(A \cap B) = P(B)\,P(A \mid B)
  • For AA and BB both to happen, BB must happen, then AA given BB. That is what you do when you multiply along the branches of a tree. It is why the second branches on any tree carry conditional probabilities.
  • Example: a commuter's morning bus is late more often in the rain. Let RR be "it rains" and LL "the bus is late". On a given morning P(R)=0.3P(R) = 0.3, P(L∣R)=0.4P(L \mid R) = 0.4 and P(L∣R′)=0.1P(L \mid R') = 0.1.
    • Figure 2 draws the tree. The first branches are P(R)P(R) and P(R′)P(R'). Each second branch is a probability given the branch it grows from.
Figure 2 · The second branches of a tree are conditional 0.3 R rain P(L | R) = 0.4 L 0.3 × 0.4 = 0.12 P(L′ | R) = 0.6 L′ 0.3 × 0.6 = 0.18 0.7 R′ no rain P(L | R′) = 0.1 L 0.7 × 0.1 = 0.07 P(L′ | R′) = 0.9 L′ 0.7 × 0.9 = 0.63 P(L) = 0.12 + 0.07 = 0.19 R: it rains · L: the bus is late Multiply along a branch: P(R ∩ L) = P(R) × P(L | R). Add the paths that end in L.
Figure 2 · The second branches of a tree are conditional
P(R∩L)=P(R)×P(L∣R)=0.3×0.4=0.12P(R \cap L) = P(R) \times P(L \mid R) = 0.3 \times 0.4 = 0.12P(R′∩L)=P(R′)×P(L∣R′)=0.7×0.1=0.07P(R' \cap L) = P(R') \times P(L \mid R') = 0.7 \times 0.1 = 0.07P(L)=0.12+0.07=0.19two separate paths end in L, so add themP(L) = 0.12 + 0.07 = 0.19 \qquad \textcolor{#838c91}{\text{two separate paths end in }L\text{, so add them}}

As a formula, P(L)=P(L∣R)P(R)+P(L∣R′)P(R′)P(L) = P(L \mid R)P(R) + P(L \mid R')P(R'). It holds whenever the first split covers every outcome with no overlap.

3Reading a tree backwards

Now the question Paper 2 likes best: given that the bus was late, find the probability that it rained.

  • The tree has rain first, so P(R∣L)P(R \mid L) is on no branch. Return to the definition.
  • You know LL happened, so LL is the new sample space, of probability 0.190.19. The part where it also rained is 0.120.12.
P(R∣L)=P(R∩L)P(L)=0.120.19on top: the rain path that ends in L=1219≈0.632underneath: every path that ends in L\begin{aligned}P(R \mid L) &= \frac{P(R \cap L)}{P(L)} \\[6pt] &= \frac{0.12}{0.19} && \textcolor{#838c91}{\text{on top: the rain path that ends in }L} \\[6pt] &= \frac{12}{19} \approx 0.632 && \textcolor{#838c91}{\text{underneath: every path that ends in }L}\end{aligned}
  • Knowing the bus was late raises the chance of rain from 0.30.3 to 0.6320.632, because rain makes lateness four times as likely.
  • The recipe never changes: the path you want on top, all paths consistent with what you know underneath. At HL, written as a formula, it is Bayes' theorem (4.13).

Example 1 · a second tree, reversed. A garden centre buys 60% of its seeds from supplier SS and 40% from supplier TT. Seeds from SS germinate with probability 0.90.9 and seeds from TT with probability 0.750.75. A packet fails to germinate. Find the probability that it came from TT.

P(S∩fail)=0.6×0.1=0.06P(S \cap \text{fail}) = 0.6 \times 0.1 = 0.06P(T∩fail)=0.4×0.25=0.10P(T \cap \text{fail}) = 0.4 \times 0.25 = 0.10P(T∣fail)=0.100.06+0.10=0.100.16=58the one path over both failing pathsP(T \mid \text{fail}) = \frac{0.10}{0.06 + 0.10} = \frac{0.10}{0.16} = \frac{5}{8} \qquad \textcolor{#838c91}{\text{the one path over both failing paths}}

The failure probabilities are 1−0.91 - 0.9 and 1−0.751 - 0.75: the complement rule on a branch.

4Picking without replacement

When items are taken and not put back, what is left depends on what came out. The draws are dependent, and the second branches of the tree are genuine conditional probabilities.

Example: a box holds 11 pens, 4 of them blue. Two are taken in turn and kept. Let B1B_1 and B2B_2 be "the first pen is blue" and "the second pen is blue".

P(B1∩B2)=411×310=12110one blue gone, 3 blue left among 10P(B_1 \cap B_2) = \frac{4}{11} \times \frac{3}{10} = \frac{12}{110} \qquad \textcolor{#838c91}{\text{one blue gone, 3 blue left among 10}}P(B1′∩B2)=711×410=28110a non-blue gone, still 4 blue among 10P(B_1' \cap B_2) = \frac{7}{11} \times \frac{4}{10} = \frac{28}{110} \qquad \textcolor{#838c91}{\text{a non-blue gone, still 4 blue among 10}}P(B2)=12110+28110=40110=411P(B_2) = \frac{12}{110} + \frac{28}{110} = \frac{40}{110} = \frac{4}{11}P(B1∣B2)=12/11040/110=310P(B_1 \mid B_2) = \frac{12/110}{40/110} = \frac{3}{10}
  • The draws are dependent. P(B2∣B1)=310P(B_2 \mid B_1) = \dfrac{3}{10}, but P(B2)=411P(B_2) = \dfrac{4}{11}, and the two differ.
  • Had each pen been put back before the next was chosen, every second branch would have been 411\dfrac{4}{11} and the draws would be independent. So: with replacement, independent; without replacement, dependent.

5Independent events: knowing B tells you nothing about A

Two events are independent when the occurrence of one does not change the probability of the other:

AA and BB are independent if P(A∣B)=P(A)=P(A∣B′)P(A \mid B) = P(A) = P(A \mid B').

  • Whether BB happens, does not happen, or is unknown, the probability of AA is one number. BB carries no information about AA.
  • Figure 3 makes this visible. Each square has area 1, split into a strip for BB and a strip for B′B', with widths P(B)P(B) and P(B′)P(B').
    • Inside each strip the shaded band is AA. Its height is the probability of AA within that strip, P(A∣B)P(A \mid B) or P(A∣B′)P(A \mid B').
  • Panel (a): level band. AA takes 30% of BB and 30% of B′B'. Knowing the strip tells you nothing.
  • Panel (b): stepped band. AA takes 60% of BB but only 20% of B′B'. Being in BB triples the chance of AA.
Figure 3 · Independent means the A band is level across B and B′ (a) P(A | B) = P(A | B′) = 0.3 B (0.4) B′ (0.6) A: 0.3 A: 0.3 A′: 0.7 A′: 0.7 independent: knowing B changes nothing (b) P(A | B) = 0.6, P(A | B′) = 0.2 B (0.4) B′ (0.6) A: 0.6 A: 0.2 A′: 0.4 A′: 0.8 not independent: B makes A three times as likely Each square has area 1. Width splits B from B′; the shaded height is P(A) within each strip.
Figure 3 · Independent means the A band is level across B and B′

From the definition to the multiplication rule. Put P(A∣B)=P(A)P(A \mid B) = P(A) into the alternate form:

P(A∩B)=P(B) P(A∣B)P(A \cap B) = P(B)\,P(A \mid B)P(A∩B)=P(B) P(A)replace P(A∣B) by P(A)P(A \cap B) = P(B)\,P(A) \qquad \textcolor{#838c91}{\text{replace }P(A \mid B)\text{ by }P(A)}

For independent events, P(A∩B)=P(A) P(B)P(A \cap B) = P(A)\,P(B). From the formula booklet.

  • In panel (a) of Figure 3 the AA-and-BB rectangle is 0.40.4 wide and 0.30.3 high. Its area is 0.4×0.3=0.12=P(A)P(B)0.4 \times 0.3 = 0.12 = P(A)P(B).
  • In panel (b) it is 0.4×0.6=0.240.4 \times 0.6 = 0.24. But P(A)=0.24+0.6×0.2=0.36P(A) = 0.24 + 0.6 \times 0.2 = 0.36 and P(A)P(B)=0.36×0.4=0.144P(A)P(B) = 0.36 \times 0.4 = 0.144. They differ, so those events are not independent.

The other statements come free. If P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B), the part of AA outside BB is P(A∩B′)=P(A)−P(A)P(B)=P(A)P(B′)P(A \cap B') = P(A) - P(A)P(B) = P(A)P(B'). Divide by P(B′)P(B'):

P(A∣B′)=P(A∩B′)P(B′)=P(A) P(B′)P(B′)=P(A)\begin{aligned}P(A \mid B') &= \frac{P(A \cap B')}{P(B')} \\[6pt] &= \frac{P(A)\,P(B')}{P(B')} \\[6pt] &= P(A)\end{aligned}
  • So P(A∣B)=P(A)P(A \mid B) = P(A), P(A∣B′)=P(A)P(A \mid B') = P(A) and P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B) stand or fall together.
  • The same argument shows that if AA and BB are independent, so are AA and B′B', A′A' and BB, and A′A' and B′B'. Independence is symmetric: P(A∣B)=P(A)P(A \mid B) = P(A) also gives P(B∣A)=P(B)P(B \mid A) = P(B).

More than two events

  • The product rule extends to events that are independent of one another: P(A∩B∩C)=P(A)P(B)P(C)P(A \cap B \cap C) = P(A)P(B)P(C).
  • This is the idea behind the binomial distribution in 4.8.

Example 2 · independence given, several events. Two sensors guard a door and work independently. Sensor 1 detects an intruder with probability 0.70.7, sensor 2 with probability 0.850.85. Find the probability that exactly one detects, and that at least one does.

P(exactly one)=0.7×0.15+0.3×0.85=0.105+0.255=0.36two disjoint cases, each a productP(\text{exactly one}) = 0.7 \times 0.15 + 0.3 \times 0.85 = 0.105 + 0.255 = 0.36 \qquad \textcolor{#838c91}{\text{two disjoint cases, each a product}}P(at least one)=1−0.3×0.15=1−0.045=0.955complement: neither detectsP(\text{at least one}) = 1 - 0.3 \times 0.15 = 1 - 0.045 = 0.955 \qquad \textcolor{#838c91}{\text{complement: neither detects}}

6Testing for independence

To test, compute two quantities that must be equal if the events are independent, and compare them. Any of these three comparisons is a valid test. Choose the one the data make easiest.

CompareIndependent ifBest when you have
P(A∩B)P(A \cap B) with P(A)×P(B)P(A) \times P(B)they are equalthe three probabilities, or a Venn diagram
P(A∣B)P(A \mid B) with P(A)P(A)they are equala conditional probability already worked out
P(A∣B)P(A \mid B) with P(A∣B′)P(A \mid B')they are equala tree, or a two-way table split by BB

Example 3 · from probabilities. For the gym, P(A)=0.45P(A) = 0.45, P(B)=0.30P(B) = 0.30 and P(A∩B)=0.12P(A \cap B) = 0.12.

P(A)×P(B)=0.45×0.30=0.135P(A) \times P(B) = 0.45 \times 0.30 = 0.135P(A∩B)=0.12≠0.135so A and B are not independentP(A \cap B) = 0.12 \ne 0.135 \qquad \textcolor{#838c91}{\text{so }A\text{ and }B\text{ are not independent}}

Equally, P(A∣B)=0.4≠0.45=P(A)P(A \mid B) = 0.4 \ne 0.45 = P(A). Show both numbers, the ≠\ne sign and the conclusion in words.

Example 4 · from a two-way table, in a medical study. Researchers use this test to spot risk factors. A disease more likely among people with a habit than without it is not independent of the habit.

The data below are invented. A clinic records, for 500 adults, whether each smokes (SS) and whether each has a persistent cough (CC).

CoughNo coughTotal
Smoker4872120
Non-smoker57323380
Total105395500
P(C∣S)=48120=0.40P(C \mid S) = \frac{48}{120} = 0.40P(C∣S′)=57380=0.15P(C \mid S') = \frac{57}{380} = 0.15P(C)=105500=0.21P(C) = \frac{105}{500} = 0.21P(C∣S)≠P(C∣S′), so C and S are not independentP(C \mid S) \ne P(C \mid S'),\ \text{so } C \text{ and } S \text{ are not independent}

Figure 4 puts the three figures side by side. A smoker here is 0.400.15≈2.7\dfrac{0.40}{0.15} \approx 2.7 times as likely to have a cough as a non-smoker.

In context, the question wants a sentence like this:

"Smokers in this sample are more likely to have a persistent cough, so the events are not independent. Smoking appears to be a risk factor."

Figure 4 · Testing independence from a two-way table P(C | S), smokers 0.40 P(C), everyone 0.21 P(C | S′), non-smokers 0.15 0 0.1 0.2 0.3 0.4 0.5 probability of a persistent cough, C Invented data, 500 adults. The rate of cough differs between the groups, so the events are not independent.
Figure 4 · Testing independence from a two-way table

Two cautions for the comment:

  • Compare exactly. Unless a formal test is requested, treat the counts given as the whole population. 0.40≠0.150.40 \ne 0.15 means not independent.
  • Not a cause. "Not independent" does not prove that one event causes the other. Say "associated with" or "more likely among", never "causes".

Example 5 · using independence to find an unknown (Paper 1). Events AA and BB are independent, with P(A)=xP(A) = x, P(B)=0.3P(B) = 0.3 and P(A∪B)=0.72P(A \cup B) = 0.72. Find xx.

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)0.72=x+0.3−0.3xindependent, so P(A∩B)=0.3x0.72 = x + 0.3 - 0.3x \qquad \textcolor{#838c91}{\text{independent, so }P(A \cap B) = 0.3x}0.42=0.7x0.42 = 0.7xx=0.6x = 0.6

Check: P(A∩B)=0.18P(A \cap B) = 0.18 and 0.6+0.3−0.18=0.720.6 + 0.3 - 0.18 = 0.72.

The method mark is for replacing P(A∩B)P(A \cap B) with the product first. If both probabilities are unknown but linked, the substitution gives a quadratic. Reject any root outside 0 to 1 (Q6).

7Independent is not the same as mutually exclusive

These two ideas mean nearly opposite things, and exams use that.

  • Mutually exclusive: AA and BB cannot happen together. P(A∩B)=0P(A \cap B) = 0. On a Venn diagram the circles do not overlap.
  • Independent: AA and BB can happen together, and the chance of one is untouched by the other. P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B). On a Venn diagram the circles overlap by exactly that amount.

Figure 5 draws both with the same P(A)=0.3P(A) = 0.3 and P(B)=0.5P(B) = 0.5.

Figure 5 · Mutually exclusive is not independent (a) Mutually exclusive U 0.3 0.5 A B P(A ∩ B) = 0 P(A | B) = 0 ≠ P(A): dependent (b) Independent U 0.15 0.15 0.35 A B P(A ∩ B) = 0.3 × 0.5 = 0.15 P(A | B) = 0.15 ÷ 0.5 = 0.3 = P(A) Same P(A) and P(B) in both panels. Independent events must overlap, by exactly P(A) × P(B).
Figure 5 · Mutually exclusive is not independent
  • In panel (a), learning that BB happened tells you that AA did not: P(A∣B)=0P(A \mid B) = 0, the strongest possible influence.
    • Formally, if P(A)>0P(A) > 0 and P(B)>0P(B) > 0 then P(A)P(B)>0P(A)P(B) > 0, but P(A∩B)=0P(A \cap B) = 0. So the multiplication rule fails. Mutually exclusive events with non-zero probabilities are never independent.
  • In panel (b) the overlap is 0.3×0.5=0.150.3 \times 0.5 = 0.15, and P(A∣B)=0.150.5=0.3P(A \mid B) = \dfrac{0.15}{0.5} = 0.3, which is P(A)P(A) again.
  • Events can be both mutually exclusive and independent only if one of them has probability 0. Then P(A∩B)P(A \cap B) and P(A)P(B)P(A)P(B) are both 0.

8Conditional probability with a distribution

  • The definition does not care where the probabilities come from. A question may give a normal or binomial variable, or a table, and say "given that". The events are then statements about the variable, such as T>35T > 35.
  • Put those statements into P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}. Find the overlap, and divide. Write P(T<50∣T>35)P(T < 50 \mid T > 35) with the real events, not just P(A∣B)P(A \mid B), so the conditional structure shows.
  • The overlap is usually an interval: "both T>35T > 35 and T<50T < 50" is 35<T<5035 < T < 50. If one condition contains the other, the overlap is the narrower one. T>64T > 64 and T>58T > 58 together are T>64T > 64.

Example 6 · normal (Paper 2). The life LL hours of a battery is modelled by L∼N(52,72)L \sim N(52, 7^2). Given that a battery has already lasted more than 45 hours, find the probability that it fails before 60 hours.

P(L<60∣L>45)=P(45<L<60)P(L>45)=0.71479…0.84134…both probabilities from the calculator’s normal cdf=0.850 (3 s.f.)\begin{aligned}P(L < 60 \mid L > 45) &= \frac{P(45 < L < 60)}{P(L > 45)} \\[6pt] &= \frac{0.71479\ldots}{0.84134\ldots} && \textcolor{#838c91}{\text{both probabilities from the calculator's normal cdf}} \\[6pt] &= 0.850 \text{ (3 s.f.)}\end{aligned}

The numerator is not P(L<60)P(L < 60): that would include lifetimes below 45, which the condition has discarded. Keep the unrounded calculator values for the division.

Example 7 · binomial (Paper 2). Each of 30 bulbs in a batch is faulty with probability 0.060.06, independently. Let XX be the number of faulty bulbs, so X∼B(30,0.06)X \sim B(30, 0.06). Given that at least one is faulty, find the probability that at most three are.

P(X≤3∣X≥1)=P(1≤X≤3)P(X≥1)=0.74112…1−0.15626…P(X≥1)=1−P(X=0)=0.74112…0.84374…=0.878 (3 s.f.)\begin{aligned}P(X \le 3 \mid X \ge 1) &= \frac{P(1 \le X \le 3)}{P(X \ge 1)} \\[6pt] &= \frac{0.74112\ldots}{1 - 0.15626\ldots} && \textcolor{#838c91}{P(X \ge 1) = 1 - P(X = 0)} \\[6pt] &= \frac{0.74112\ldots}{0.84374\ldots} = 0.878 \text{ (3 s.f.)}\end{aligned}

Example 8 · a table (Paper 1). A variable XX has P(X=0)=0.1P(X = 0) = 0.1, P(X=1)=0.25P(X = 1) = 0.25, P(X=2)=0.35P(X = 2) = 0.35, P(X=3)=0.2P(X = 3) = 0.2 and P(X=4)=0.1P(X = 4) = 0.1.

Then P(X≤3∣X≥2)=P(2≤X≤3)P(X≥2)=0.550.65=1113P(X \le 3 \mid X \ge 2) = \dfrac{P(2 \le X \le 3)}{P(X \ge 2)} = \dfrac{0.55}{0.65} = \dfrac{11}{13}. The numerator is the overlap, the values satisfying both statements.

Practice questions

8 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.