Skip to main content
SingaporeMathsSyllabus dot point

How does conditioning on information change a probability, and what does independence mean?

Calculate conditional probabilities, test for independence, and apply the conditional probability formula and the law of total probability

A focused answer to the H2 Mathematics outcome on conditional probability. The conditional formula, testing independence, the law of total probability, and reasoning with given information.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to calculate conditional probabilities, test whether two events are independent, and use the law of total probability to combine probabilities across a partition of cases.

The answer

Conditional probability

The probability of AA given that BB has occurred is

P(AB)=P(AB)P(B),P(B)>0.\mathrm{P}(A \mid B) = \frac{\mathrm{P}(A \cap B)}{\mathrm{P}(B)}, \qquad \mathrm{P}(B) > 0.

Conditioning on BB restricts the sample space to outcomes in BB, so we rescale by P(B)\mathrm{P}(B).

Independence

Events AA and BB are independent if knowing one does not change the probability of the other. The equivalent tests:

P(AB)=P(A)P(B)    P(AB)=P(A).\mathrm{P}(A \cap B) = \mathrm{P}(A)\mathrm{P}(B) \iff \mathrm{P}(A \mid B) = \mathrm{P}(A).

If either holds, both do. Independence is a property to be tested, not assumed.

The law of total probability

If the events B1,B2,B_1, B_2, \ldots partition the sample space (mutually exclusive and exhaustive), then

P(A)=iP(Bi)P(ABi).\mathrm{P}(A) = \sum_i \mathrm{P}(B_i)\mathrm{P}(A \mid B_i).

This sums the contributions to AA from each case, weighted by how likely each case is. It is exactly the "add across the branches of a tree" rule.

Reversing the condition

When a question asks for P(BA)\mathrm{P}(B \mid A) from P(AB)\mathrm{P}(A \mid B), use P(BA)=P(AB)P(A)\mathrm{P}(B \mid A) = \dfrac{\mathrm{P}(A \cap B)}{\mathrm{P}(A)}, computing the denominator by the law of total probability if needed.

Examples in context

Example 1. Diagnostic testing. The chance a person has a disease given a positive test reverses the test's known sensitivity using conditional probability and the law of total probability, the calculation behind interpreting medical screening results.

Example 2. Spam filtering. An email filter updates the probability that a message is spam given a flagged word by conditioning, exactly the conditional-probability reasoning that powers simple spam detectors.

Try this

Q1. Given P(AB)=0.12\mathrm{P}(A \cap B) = 0.12 and P(B)=0.3\mathrm{P}(B) = 0.3, find P(AB)\mathrm{P}(A \mid B). [2 marks]

  • Cue. 0.120.3=0.4\dfrac{0.12}{0.3} = 0.4.

Q2. State the test for two events to be independent. [1 mark]

  • Cue. P(AB)=P(A)P(B)\mathrm{P}(A \cap B) = \mathrm{P}(A)\mathrm{P}(B).

Q3. Explain why mutually exclusive events with non-zero probability cannot be independent. [2 marks]

  • Cue. If one occurs the other cannot, so P(AB)=0P(A)\mathrm{P}(A \mid B) = 0 \neq \mathrm{P}(A), contradicting independence.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original4 marksEvents AA and BB have P(A)=0.6\mathrm{P}(A) = 0.6, P(B)=0.5\mathrm{P}(B) = 0.5 and P(AB)=0.3\mathrm{P}(A \cap B) = 0.3. Find P(AB)\mathrm{P}(A \mid B) and determine whether AA and BB are independent.
Show worked answer →

P(AB)=P(AB)P(B)=0.30.5=0.6\mathrm{P}(A \mid B) = \dfrac{\mathrm{P}(A \cap B)}{\mathrm{P}(B)} = \dfrac{0.3}{0.5} = 0.6.

For independence, check whether P(AB)=P(A)P(B)\mathrm{P}(A \cap B) = \mathrm{P}(A)\mathrm{P}(B): 0.6×0.5=0.30.6 \times 0.5 = 0.3, which equals P(AB)\mathrm{P}(A \cap B).

So AA and BB are independent (equivalently P(AB)=P(A)\mathrm{P}(A \mid B) = \mathrm{P}(A)).

Markers reward the conditional formula, the independence test, and a correct conclusion.

Original5 marksMachine X makes 60%60\% of items with a 2%2\% defect rate; machine Y makes the rest with a 5%5\% defect rate. Find the probability that a randomly chosen item is defective.
Show worked answer →

By the law of total probability:
P(defective)=P(X)P(defX)+P(Y)P(defY)\mathrm{P}(\text{defective}) = \mathrm{P}(X)\mathrm{P}(\text{def} \mid X) + \mathrm{P}(Y)\mathrm{P}(\text{def} \mid Y).

=0.6×0.02+0.4×0.05=0.012+0.020=0.032= 0.6 \times 0.02 + 0.4 \times 0.05 = 0.012 + 0.020 = 0.032.

So the probability an item is defective is 0.0320.032 (that is 3.2%3.2\%).

Markers reward partitioning by machine, the weighted sum, and the total probability 0.0320.032.

Related dot points