For \(P(B)>0\), \(P(A\mid B)=\frac{P(A\cap B)}{P(B)}\).
For independent events, \(P(A\mid B)=P(A)\) when \(P(B)>0\), and \(P(B\mid A)=P(B)\) when \(P(A)>0\).
• Formula: \(P(A)=\sum\limits_{i=1}^{n}{\mathrm{P}\left( A\cap {{B}_{i}} \right)}=\sum\limits_{i=1}^{n}{\mathrm{P}\left( A|{{B}_{i}} \right)\mathrm{P}\left( {{B}_{i}} \right)}\)
• A simpler case: \(P(A)=\mathrm{P}\left( A\cap B \right)+\mathrm{P}\left( A\cap B' \right)\)

For \(P(A)>0\) and \(P(B)>0\), \(P(B\mid A)=\frac{P(A\mid B)P(B)}{P(A)}\).
Probability Diagram
Probability of \(A\), \(\mathrm{P}\left( A \right)=\)
Probability of \(A'\), \(\mathrm{P}\left( A' \right)=\)
Probability of \(A\cap B\), \(\mathrm{P}\left( A\cap B \right)=\)
Probability of \(A'\cap B'\), \(\mathrm{P}\left( A'\cap B' \right)=\)
Probability of \(B\) given that \(A\) happens, \(\mathrm{P}\left( B|A \right)=\)
Probability of \(B'\) given that \(A\) happens, \(\mathrm{P}\left( B'|A \right)=\)
Probability of \(B\) given that \(A'\) happens, \(\mathrm{P}\left( B|A' \right)=\)
Probability of \(B'\) given that \(A'\) happens, \(\mathrm{P}\left( B'|A' \right)=\)
Probability of \(B\), \(\mathrm{P}\left( B \right)=\)
Probability of \(B'\), \(\mathrm{P}\left( B' \right)=\)
\(A\) | \(A'\) | |
|---|---|---|
\(B\) | \(w\) | \(x\) |
\(B'\) | \(y\) | \(z\). |
In conditional expressions, the conditioning event must have positive probability. For the partition formula, take \(P(B_i)>0\). The table entries \(w,x,y,z\) are nonnegative joint probabilities with sum 1; each displayed conditional ratio requires a positive denominator.
Example
Machine \(X\) makes \(60\%\) of a factory's bolts and machine \(Y\) makes the rest. \(3\%\) of \(X\)'s bolts and \(5\%\) of \(Y\)'s bolts are defective. A bolt is chosen at random and is defective (\(D\)).
\(P(D)=0.6(0.03)+0.4(0.05)=0.018+0.020=0.038\)
\(P(Y\mid D)=\dfrac{P(Y\cap D)}{P(D)}=\dfrac{0.020}{0.038}=\dfrac{10}{19}\approx0.526\)
Exam check: the denominator in Bayes' rule is the total probability of the observed event, found by adding every path that leads to it.
Video solution locked
A free account saves your progress; this video needs tuition enrolment.
680+ questions here come with free worked solutions. A free account saves your questions and progress; this one needs tuition enrolment.
Create a free account to practise similar questions.
Need help? Join our IP Math tuition programme.
Learn more