This document extends the core probability material with rigorous treatments of conditional Probability, independence, Venn diagrams, tree diagrams, and Bayes” theorem.
events Explicitly before writing any equations. The conditional probability of event A A A given that event B B B has occurred is:
P ( A ∣ B ) = P ( A ∩ B ) P ( B ) P(A \mid B) = \frac{P(A \cap B)}{P(B)} P ( A ∣ B ) = P ( B ) P ( A ∩ B )
Provided P ( B ) > 0 P(B) \gt 0 P ( B ) > 0 .
Interpretation. P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) is the probability of A A A within the “reduced sample space” B B B .
For any two events A A A and B B B :
P ( A ∩ B ) = P ( A ) ⋅ P ( B ∣ A ) = P ( B ) ⋅ P ( A ∣ B ) P(A \cap B) = P(A) \cdot P(B \mid A) = P(B) \cdot P(A \mid B) P ( A ∩ B ) = P ( A ) ⋅ P ( B ∣ A ) = P ( B ) ⋅ P ( A ∣ B )
Extension to three events:
P ( A ∩ B ∩ C ) = P ( A ) ⋅ P ( B ∣ A ) ⋅ P ( C ∣ A ∩ B ) P(A \cap B \cap C) = P(A) \cdot P(B \mid A) \cdot P(C \mid A \cap B) P ( A ∩ B ∩ C ) = P ( A ) ⋅ P ( B ∣ A ) ⋅ P ( C ∣ A ∩ B )
Problem. A bag contains 5 red and 3 blue balls. Two balls are drawn without replacement. Find The probability that both are red.
Let R 1 R_1 R 1 = “first ball is red”, R 2 R_2 R 2 = “second ball is red”.
P ( R 1 ∩ R 2 ) = P ( R 1 ) ⋅ P ( R 2 ∣ R 1 ) = 5 8 × 4 7 = 20 56 = 5 14 P(R_1 \cap R_2) = P(R_1) \cdot P(R_2 \mid R_1) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56} = \frac{5}{14} P ( R 1 ∩ R 2 ) = P ( R 1 ) ⋅ P ( R 2 ∣ R 1 ) = 8 5 × 7 4 = 56 20 = 14 5
If { B 1 , B 2 , … , B n } \{B_1, B_2, \ldots, B_n\} { B 1 , B 2 , … , B n } is a partition of the sample space (mutually exclusive and exhaustive), Then for any event A A A :
P ( A ) = ∑ i = 1 n P ( A ∣ B i ) P ( B i ) \boxed{P(A) = \sum_{i=1}^{n} P(A \mid B_i)\,P(B_i)} P ( A ) = i = 1 ∑ n P ( A ∣ B i ) P ( B i )
Proof. Since the B i B_i B i partition Ω \Omega Ω :
A = A ∩ Ω = A ∩ ( ⋃ i = 1 n B i ) = ⋃ i = 1 n ( A ∩ B i ) A = A \cap \Omega = A \cap \!\left(\bigcup_{i=1}^n B_i\right) = \bigcup_{i=1}^n (A \cap B_i) A = A ∩ Ω = A ∩ ( ⋃ i = 1 n B i ) = ⋃ i = 1 n ( A ∩ B i )
The sets A ∩ B i A \cap B_i A ∩ B i are mutually exclusive, so:
P ( A ) = ∑ i = 1 n P ( A ∩ B i ) = ∑ i = 1 n P ( A ∣ B i ) P ( B i ) ■ P(A) = \sum_{i=1}^n P(A \cap B_i) = \sum_{i=1}^n P(A \mid B_i)\,P(B_i) \quad \blacksquare P ( A ) = ∑ i = 1 n P ( A ∩ B i ) = ∑ i = 1 n P ( A ∣ B i ) P ( B i ) ■
Problem. In a factory, Machine A A A produces 60% of items and Machine B B B produces 40%. Machine A A A has a defect rate of 2% and Machine B B B has a defect rate of 5%. Find the probability that a Randomly selected item is defective.
Let D D D = “item is defective”.
P ( D ) = P ( D ∣ A ) P ( A ) + P ( D ∣ B ) P ( B ) = 0.02 × 0.6 + 0.05 × 0.4 = 0.012 + 0.020 = 0.032 P(D) = P(D \mid A)\,P(A) + P(D \mid B)\,P(B) = 0.02 \times 0.6 + 0.05 \times 0.4 = 0.012 + 0.020 = 0.032 P ( D ) = P ( D ∣ A ) P ( A ) + P ( D ∣ B ) P ( B ) = 0.02 × 0.6 + 0.05 × 0.4 = 0.012 + 0.020 = 0.032
Bayes’ Theorem. For events A A A and B B B with P ( B ) > 0 P(B) \gt 0 P ( B ) > 0 :
P ( A ∣ B ) = P ( B ∣ A ) P ( A ) P ( B ) \boxed{P(A \mid B) = \frac{P(B \mid A)\,P(A)}{P(B)}} P ( A ∣ B ) = P ( B ) P ( B ∣ A ) P ( A )
Using the law of total probability in the denominator, for a partition { A 1 , … , A n } \{A_1, \ldots, A_n\} { A 1 , … , A n } :
P ( A i ∣ B ) = P ( B ∣ A i ) P ( A i ) ∑ j = 1 n P ( B ∣ A j ) P ( A j ) P(A_i \mid B) = \frac{P(B \mid A_i)\,P(A_i)}{\sum_{j=1}^{n} P(B \mid A_j)\,P(A_j)} P ( A i ∣ B ) = ∑ j = 1 n P ( B ∣ A j ) P ( A j ) P ( B ∣ A i ) P ( A i )
P ( A ∣ B ) = P ( A ∩ B ) P ( B ) = P ( B ∣ A ) P ( A ) P ( B ) P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{P(B \mid A)\,P(A)}{P(B)} P ( A ∣ B ) = P ( B ) P ( A ∩ B ) = P ( B ) P ( B ∣ A ) P ( A )
The first step is the definition of conditional probability. The second step applies the Multiplication rule to the numerator. ■ \blacksquare ■
Problem. A disease affects 1% of a population. A test for the disease has a 95% true positive Rate (P ( p o s i t i v e ∣ d i s e a s e ) = 0.95 P(\mathrm{positive} \mid \mathrm{disease}) = 0.95 P ( positive ∣ disease ) = 0.95 ) and a 10% false positive rate (P ( p o s i t i v e ∣ n o d i s e a s e ) = 0.10 P(\mathrm{positive} \mid \mathrm{no\ disease}) = 0.10 P ( positive ∣ no disease ) = 0.10 ). If a person tests positive, what is the Probability they actually have the disease?
Let D D D = “has disease”, T + T^+ T + = “tests positive”.
P ( D ∣ T + ) = P ( T + ∣ D ) P ( D ) P ( T + ∣ D ) P ( D ) + P ( T + ∣ D ′ ) P ( D ′ ) P(D \mid T^+) = \frac{P(T^+ \mid D)\,P(D)}{P(T^+ \mid D)\,P(D) + P(T^+ \mid D')\,P(D')} P ( D ∣ T + ) = P ( T + ∣ D ) P ( D ) + P ( T + ∣ D ′ ) P ( D ′ ) P ( T + ∣ D ) P ( D )
= 0.95 × 0.01 0.95 × 0.01 + 0.10 × 0.99 = 0.0095 0.0095 + 0.099 = 0.0095 0.1085 ≈ 0.0876 = \frac{0.95 \times 0.01}{0.95 \times 0.01 + 0.10 \times 0.99} = \frac{0.0095}{0.0095 + 0.099} = \frac{0.0095}{0.1085} \approx 0.0876 = 0.95 × 0.01 + 0.10 × 0.99 0.95 × 0.01 = 0.0095 + 0.099 0.0095 = 0.1085 0.0095 ≈ 0.0876
So even with a positive test, there is only about an 8.8% chance of having the disease.
false positives far Exceeds the number of true positives. This is the **base rate fallacy** -- ignoring the prior Probability of the condition. ### 2.4 Worked example: factory with three machines
Problem. A factory has three machines producing bolts. Machine 1 produces 50%, Machine 2 produces 30%, and Machine 3 produces 20%. Defect rates are 1%, 2%, and 3% respectively. A bolt is found to Be defective. What is the probability it came from Machine 3?
P ( M 3 ∣ D ) = P ( D ∣ M 3 ) P ( M 3 ) P ( D ∣ M 1 ) P ( M 1 ) + P ( D ∣ M 2 ) P ( M 2 ) + P ( D ∣ M 3 ) P ( M 3 ) P(M_3 \mid D) = \frac{P(D \mid M_3)\,P(M_3)}{P(D \mid M_1)\,P(M_1) + P(D \mid M_2)\,P(M_2) + P(D \mid M_3)\,P(M_3)} P ( M 3 ∣ D ) = P ( D ∣ M 1 ) P ( M 1 ) + P ( D ∣ M 2 ) P ( M 2 ) + P ( D ∣ M 3 ) P ( M 3 ) P ( D ∣ M 3 ) P ( M 3 )
= 0.03 × 0.20 0.01 × 0.50 + 0.02 × 0.30 + 0.03 × 0.20 = \frac{0.03 \times 0.20}{0.01 \times 0.50 + 0.02 \times 0.30 + 0.03 \times 0.20} = 0.01 × 0.50 + 0.02 × 0.30 + 0.03 × 0.20 0.03 × 0.20
= 0.006 0.005 + 0.006 + 0.006 = 0.006 0.017 ≈ 0.353 = \frac{0.006}{0.005 + 0.006 + 0.006} = \frac{0.006}{0.017} \approx 0.353 = 0.005 + 0.006 + 0.006 0.006 = 0.017 0.006 ≈ 0.353
For two events A A A and B B B The Venn diagram has four regions:
Region Description Probability A ∩ B A \cap B A ∩ B In both A A A and B B B P ( A ∩ B ) P(A \cap B) P ( A ∩ B ) A ∩ B ′ A \cap B' A ∩ B ′ In A A A but not in B B B P ( A ) − P ( A ∩ B ) P(A) - P(A \cap B) P ( A ) − P ( A ∩ B ) A ′ ∩ B A' \cap B A ′ ∩ B In B B B but not in A A A P ( B ) − P ( A ∩ B ) P(B) - P(A \cap B) P ( B ) − P ( A ∩ B ) A ′ ∩ B ′ A' \cap B' A ′ ∩ B ′ In neither A A A nor B B B 1 − P ( A ∪ B ) 1 - P(A \cup B) 1 − P ( A ∪ B )
Problem. In a group of 100 students, 45 study Maths, 30 study Physics, and 15 study both. A Student is chosen at random. Find: (a) the probability they study at least one subject; (b) the Probability they study Maths given they study Physics.
P ( M ) = 0.45 , P ( P ) = 0.30 , P ( M ∩ P ) = 0.15 P(M) = 0.45, \quad P(P) = 0.30, \quad P(M \cap P) = 0.15 P ( M ) = 0.45 , P ( P ) = 0.30 , P ( M ∩ P ) = 0.15
(a) P ( M ∪ P ) = 0.45 + 0.30 − 0.15 = 0.60 P(M \cup P) = 0.45 + 0.30 - 0.15 = 0.60 P ( M ∪ P ) = 0.45 + 0.30 − 0.15 = 0.60
(b) P ( M ∣ P ) = P ( M ∩ P ) P ( P ) = 0.15 0.30 = 0.50 P(M \mid P) = \dfrac{P(M \cap P)}{P(P)} = \dfrac{0.15}{0.30} = 0.50 P ( M ∣ P ) = P ( P ) P ( M ∩ P ) = 0.30 0.15 = 0.50
For three events A A A , B B B , C C C The inclusion-exclusion formula gives:
P ( A ∪ B ∪ C ) = P ( A ) + P ( B ) + P ( C ) − P ( A ∩ B ) − P ( A ∩ C ) − P ( B ∩ C ) + P ( A ∩ B ∩ C ) P(A \cup B \cup C) = P(A) + P(B) + P(C) - P(A \cap B) - P(A \cap C) - P(B \cap C) + P(A \cap B \cap C) P ( A ∪ B ∪ C ) = P ( A ) + P ( B ) + P ( C ) − P ( A ∩ B ) − P ( A ∩ C ) − P ( B ∩ C ) + P ( A ∩ B ∩ C )
Problem. In a survey, 60% of people like tea, 50% like coffee, 40% like chocolate, 30% like Tea and coffee, 25% like tea and chocolate, 20% like coffee and chocolate, and 10% like all three. What proportion likes none of these?
P ( T ∪ C ∪ H ) = 0.6 + 0.5 + 0.4 − 0.3 − 0.25 − 0.2 + 0.1 = 0.85 P(T \cup C \cup H) = 0.6 + 0.5 + 0.4 - 0.3 - 0.25 - 0.2 + 0.1 = 0.85 P ( T ∪ C ∪ H ) = 0.6 + 0.5 + 0.4 − 0.3 − 0.25 − 0.2 + 0.1 = 0.85
P ( n o n e ) = 1 − 0.85 = 0.15 P(\mathrm{none}) = 1 - 0.85 = 0.15 P ( none ) = 1 − 0.85 = 0.15
A tree diagram represents a sequence of events. Each branch represents a possible outcome with its Probability. The probability of any path through the tree is the product of the probabilities along That path.
The probabilities on branches from any single node must sum to 1. The probability of an outcome is the product of probabilities along the path to that outcome. To find the probability of a compound event, add the probabilities of all paths leading to that event. Problem. A box contains 7 red and 5 green counters. Two counters are drawn at random without Replacement. Find the probability that: (a) both are the same colour; (b) exactly one is red.
(a) P ( b o t h r e d ) = 7 12 × 6 11 = 42 132 = 7 22 P(\mathrm{both\ red}) = \dfrac{7}{12} \times \dfrac{6}{11} = \dfrac{42}{132} = \dfrac{7}{22} P ( both red ) = 12 7 × 11 6 = 132 42 = 22 7
P ( b o t h g r e e n ) = 5 12 × 4 11 = 20 132 = 5 33 P(\mathrm{both\ green}) = \dfrac{5}{12} \times \dfrac{4}{11} = \dfrac{20}{132} = \dfrac{5}{33} P ( both green ) = 12 5 × 11 4 = 132 20 = 33 5
P ( s a m e c o l o u r ) = 7 22 + 5 33 = 21 + 10 66 = 31 66 P(\mathrm{same\ colour}) = \dfrac{7}{22} + \dfrac{5}{33} = \dfrac{21 + 10}{66} = \dfrac{31}{66} P ( same colour ) = 22 7 + 33 5 = 66 21 + 10 = 66 31
(b) P ( o n e r e d ) = 7 12 × 5 11 + 5 12 × 7 11 = 35 132 + 35 132 = 70 132 = 35 66 P(\mathrm{one\ red}) = \dfrac{7}{12} \times \dfrac{5}{11} + \dfrac{5}{12} \times \dfrac{7}{11} = \dfrac{35}{132} + \dfrac{35}{132} = \dfrac{70}{132} = \dfrac{35}{66} P ( one red ) = 12 7 × 11 5 + 12 5 × 11 7 = 132 35 + 132 35 = 132 70 = 66 35
Problem. Two dice are rolled. Find the probability that the sum is at least 9, given that the First die shows at least 4.
Let A A A = “sum ≥ 9 \geq 9 ≥ 9 ” and B B B = “first die ≥ 4 \geq 4 ≥ 4 ”.
P ( B ) = 3 6 = 1 2 P(B) = \frac{3}{6} = \frac{1}{2} P ( B ) = 6 3 = 2 1
P ( A ∩ B ) : F i r s t d i e = 4 : n e e d s e c o n d ≥ 5 ⟹ 2 o u t c o m e s P(A \cap B): \mathrm{First\ die} = 4: \mathrm{need\ second} \geq 5 \implies 2\ \mathrm{outcomes} P ( A ∩ B ) : First die = 4 : need second ≥ 5 ⟹ 2 outcomes
F i r s t d i e = 5 : n e e d s e c o n d ≥ 4 ⟹ 3 o u t c o m e s \mathrm{First\ die} = 5: \mathrm{need\ second} \geq 4 \implies 3\ \mathrm{outcomes} First die = 5 : need second ≥ 4 ⟹ 3 outcomes
F i r s t d i e = 6 : n e e d s e c o n d ≥ 3 ⟹ 4 o u t c o m e s \mathrm{First\ die} = 6: \mathrm{need\ second} \geq 3 \implies 4\ \mathrm{outcomes} First die = 6 : need second ≥ 3 ⟹ 4 outcomes
P ( A ∩ B ) = 2 + 3 + 4 36 = 9 36 = 1 4 P(A \cap B) = \frac{2 + 3 + 4}{36} = \frac{9}{36} = \frac{1}{4} P ( A ∩ B ) = 36 2 + 3 + 4 = 36 9 = 4 1
P ( A ∣ B ) = P ( A ∩ B ) P ( B ) = 1 / 4 1 / 2 = 1 2 P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{1/4}{1/2} = \frac{1}{2} P ( A ∣ B ) = P ( B ) P ( A ∩ B ) = 1/2 1/4 = 2 1
Events A A A and B B B are independent if and only if:
P ( A ∩ B ) = P ( A ) ⋅ P ( B ) P(A \cap B) = P(A) \cdot P(B) P ( A ∩ B ) = P ( A ) ⋅ P ( B )
Equivalently: P ( A ∣ B ) = P ( A ) P(A \mid B) = P(A) P ( A ∣ B ) = P ( A ) Or P ( B ∣ A ) = P ( B ) P(B \mid A) = P(B) P ( B ∣ A ) = P ( B ) .
Interpretation. Knowing that B B B occurred provides no information about whether A A A occurred.
For three events A A A , B B B , C C C :
Pairwise independence means each pair is independent.Mutual independence means pairwise independence and P ( A ∩ B ∩ C ) = P ( A ) P ( B ) P ( C ) P(A \cap B \cap C) = P(A)\,P(B)\,P(C) P ( A ∩ B ∩ C ) = P ( A ) P ( B ) P ( C ) .Mutual independence is a stronger condition. Pairwise independence does not imply mutual Independence.
Problem. Events A A A and B B B are independent with P ( A ) = 0.4 P(A) = 0.4 P ( A ) = 0.4 and P ( B ) = 0.7 P(B) = 0.7 P ( B ) = 0.7 . Find: (a) P ( A ∩ B ) P(A \cap B) P ( A ∩ B ) ; (b) P ( A ∪ B ) P(A \cup B) P ( A ∪ B ) ; (c) P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) ; (d) P ( A ′ ∩ B ′ ) P(A' \cap B') P ( A ′ ∩ B ′ ) .
(a) P ( A ∩ B ) = 0.4 × 0.7 = 0.28 P(A \cap B) = 0.4 \times 0.7 = 0.28 P ( A ∩ B ) = 0.4 × 0.7 = 0.28
(b) P ( A ∪ B ) = 0.4 + 0.7 − 0.28 = 0.82 P(A \cup B) = 0.4 + 0.7 - 0.28 = 0.82 P ( A ∪ B ) = 0.4 + 0.7 − 0.28 = 0.82
(c) P ( A ∣ B ) = P ( A ) = 0.4 P(A \mid B) = P(A) = 0.4 P ( A ∣ B ) = P ( A ) = 0.4 (by independence)
(d) P ( A ′ ∩ B ′ ) = P ( ( A ∪ B ) ′ ) = 1 − 0.82 = 0.18 P(A' \cap B') = P((A \cup B)') = 1 - 0.82 = 0.18 P ( A ′ ∩ B ′ ) = P (( A ∪ B ) ′ ) = 1 − 0.82 = 0.18
Note: P ( A ′ ∩ B ′ ) = P ( A ′ ) ⋅ P ( B ′ ) = 0.6 × 0.3 = 0.18 P(A' \cap B') = P(A') \cdot P(B') = 0.6 \times 0.3 = 0.18 P ( A ′ ∩ B ′ ) = P ( A ′ ) ⋅ P ( B ′ ) = 0.6 × 0.3 = 0.18 confirms the complements are Also independent.
Theorem. If A A A and B B B are independent, then A ′ A' A ′ and B ′ B' B ′ are also independent.
Proof.
P ( A ′ ∩ B ′ ) = P ( ( A ∪ B ) ′ ) = 1 − P ( A ∪ B ) = 1 − P ( A ) − P ( B ) + P ( A ) P ( B ) P(A' \cap B') = P((A \cup B)') = 1 - P(A \cup B) = 1 - P(A) - P(B) + P(A)P(B) P ( A ′ ∩ B ′ ) = P (( A ∪ B ) ′ ) = 1 − P ( A ∪ B ) = 1 − P ( A ) − P ( B ) + P ( A ) P ( B )
= ( 1 − P ( A ) ) ( 1 − P ( B ) ) = P ( A ′ ) ⋅ P ( B ′ ) ■ = (1 - P(A))(1 - P(B)) = P(A') \cdot P(B') \quad \blacksquare = ( 1 − P ( A )) ( 1 − P ( B )) = P ( A ′ ) ⋅ P ( B ′ ) ■
Warning "Independent" and "mutually exclusive" are different concepts. In fact, if $A$
and $B$ are both Non-trivial (positive probability) and mutually exclusive, they **cannot** be independent: $P(A \cap B) = 0 \neq P(A)P(B)$.In a class of 40 students, 25 play football, 18 play cricket, and 5 play neither. A student is Chosen at random. Given that they play football, find the probability they also play cricket.
Solution P(F) = 25/40 = 0.625$$P(C) = 18/40 = 0.45$$P(F \cup C) = 35/40 = 0.875 .
P ( F ∩ C ) = 0.625 + 0.45 − 0.875 = 0.20 P(F \cap C) = 0.625 + 0.45 - 0.875 = 0.20 P ( F ∩ C ) = 0.625 + 0.45 − 0.875 = 0.20 .
P ( C ∣ F ) = 0.20 / 0.625 = 0.32 P(C \mid F) = 0.20 / 0.625 = 0.32 P ( C ∣ F ) = 0.20/0.625 = 0.32 .
A test for a condition has sensitivity 92% (true positive rate) and specificity 96% (true negative Rate). The condition prevalence is 3%. Find: (a) P ( c o n d i t i o n ∣ p o s i t i v e ) P(\mathrm{condition} \mid \mathrm{positive}) P ( condition ∣ positive ) ; (b) P ( c o n d i t i o n ∣ n e g a t i v e ) P(\mathrm{condition} \mid \mathrm{negative}) P ( condition ∣ negative ) .
Solution P(T^+ \mid C) = 0.92$$P(T^- \mid C') = 0.96$$P(C) = 0.03 .
(a) P ( C ∣ T + ) = 0.92 × 0.03 0.92 × 0.03 + 0.04 × 0.97 = 0.0276 0.0276 + 0.0388 = 0.0276 0.0664 ≈ 0.416 P(C \mid T^+) = \dfrac{0.92 \times 0.03}{0.92 \times 0.03 + 0.04 \times 0.97} = \dfrac{0.0276}{0.0276 + 0.0388} = \dfrac{0.0276}{0.0664} \approx 0.416 P ( C ∣ T + ) = 0.92 × 0.03 + 0.04 × 0.97 0.92 × 0.03 = 0.0276 + 0.0388 0.0276 = 0.0664 0.0276 ≈ 0.416
(b) P ( C ∣ T − ) = 0.08 × 0.03 0.08 × 0.03 + 0.96 × 0.97 = 0.0024 0.0024 + 0.9312 = 0.0024 0.9336 ≈ 0.00257 P(C \mid T^-) = \dfrac{0.08 \times 0.03}{0.08 \times 0.03 + 0.96 \times 0.97} = \dfrac{0.0024}{0.0024 + 0.9312} = \dfrac{0.0024}{0.9336} \approx 0.00257 P ( C ∣ T − ) = 0.08 × 0.03 + 0.96 × 0.97 0.08 × 0.03 = 0.0024 + 0.9312 0.0024 = 0.9336 0.0024 ≈ 0.00257
Events A A A and B B B are independent with P ( A ) = 1 3 P(A) = \dfrac{1}{3} P ( A ) = 3 1 and P ( A ∪ B ) = 3 4 P(A \cup B) = \dfrac{3}{4} P ( A ∪ B ) = 4 3 . Find P ( B ) P(B) P ( B ) .
Solution P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ) P ( B ) P(A \cup B) = P(A) + P(B) - P(A)P(B) P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ) P ( B ) .
3 4 = 1 3 + P ( B ) − 1 3 P ( B ) \dfrac{3}{4} = \dfrac{1}{3} + P(B) - \dfrac{1}{3}P(B) 4 3 = 3 1 + P ( B ) − 3 1 P ( B ) .
3 4 − 1 3 = 2 3 P ( B ) \dfrac{3}{4} - \dfrac{1}{3} = \dfrac{2}{3}P(B) 4 3 − 3 1 = 3 2 P ( B ) .
5 12 = 2 3 P ( B ) ⟹ P ( B ) = 5 8 \dfrac{5}{12} = \dfrac{2}{3}P(B) \implies P(B) = \dfrac{5}{8} 12 5 = 3 2 P ( B ) ⟹ P ( B ) = 8 5 .
A bag contains 4 red, 6 green, and 5 blue balls. Three balls are drawn without replacement. Find The probability that they are all different colours.
Solution Total balls = 15 = 15 = 15 . Ways to draw one of each colour:
Number of ways = ( 4 1 ) ( 6 1 ) ( 5 1 ) = 120 = \binom{4}{1}\binom{6}{1}\binom{5}{1} = 120 = ( 1 4 ) ( 1 6 ) ( 1 5 ) = 120 .
Total ways to draw 3 from 15 = ( 15 3 ) = 455 = \binom{15}{3} = 455 = ( 3 15 ) = 455 .
P = 120 455 = 24 91 ≈ 0.264 P = \dfrac{120}{455} = \dfrac{24}{91} \approx 0.264 P = 455 120 = 91 24 ≈ 0.264 .
Alternatively, using conditional probability:
P = 4 15 × 6 14 × 5 13 × 6 = 720 2730 = 24 91 P = \dfrac{4}{15} \times \dfrac{6}{14} \times \dfrac{5}{13} \times 6 = \dfrac{720}{2730} = \dfrac{24}{91} P = 15 4 × 14 6 × 13 5 × 6 = 2730 720 = 91 24 .
(The factor of 6 accounts for the 3 ! = 6 3! = 6 3 ! = 6 orderings of the three colours.)
Probability is fundamentally about quantifying uncertainty before an event occurs. Think of the sample space as a pizza: conditional probability asks what fraction of one topping’s area also contains another topping, effectively shrinking the pizza to just that topping’s region. Bayes’ theorem reverses the direction of reasoning like looking at a photograph and asking which camera likely took it. Independence means one slice of information tells you nothing about another, just as flipping a coin tells you nothing about the next roll. The law of total probability is like weighing several possible routes by their likelihoods to find your overall chance of arriving on time.
Misreading the question, particularly with ‘hence’ vs ‘hence or otherwise’. The former requires using previous work.
Confusing the domain and range of functions, or not considering restrictions (e.g., denominator cannot be zero).
Dropping negative signs during algebraic manipulation. Substitute back to verify your answer.
Losing marks by not showing sufficient working. Always write out each step, especially in proof questions.
Problem. A disease affects 1% of the population. A test has 95% sensitivity (P ( + ∣ disease ) = 0.95 P(\text{+}|\text{disease}) = 0.95 P ( + ∣ disease ) = 0.95 ) and 90% specificity (P ( - ∣ no disease ) = 0.90 P(\text{-}|\text{no disease}) = 0.90 P ( - ∣ no disease ) = 0.90 ). Find the probability a person has the disease given a positive test.
Solution. By Bayes’ theorem:
P ( D ∣ + ) = P ( + ∣ D ) P ( D ) P ( + ∣ D ) P ( D ) + P ( + ∣ D c ) P ( D c ) = 0.95 × 0.01 0.95 × 0.01 + 0.10 × 0.99 P(D|+) = \frac{P(+|D)P(D)}{P(+|D)P(D) + P(+|D^c)P(D^c)} = \frac{0.95 \times 0.01}{0.95 \times 0.01 + 0.10 \times 0.99} P ( D ∣ + ) = P ( + ∣ D ) P ( D ) + P ( + ∣ D c ) P ( D c ) P ( + ∣ D ) P ( D ) = 0.95 × 0.01 + 0.10 × 0.99 0.95 × 0.01
P ( D ∣ + ) = 0.0095 0.0095 + 0.099 = 0.0095 0.1085 ≈ 0.0876 P(D|+) = \frac{0.0095}{0.0095 + 0.099} = \frac{0.0095}{0.1085} \approx 0.0876 P ( D ∣ + ) = 0.0095 + 0.099 0.0095 = 0.1085 0.0095 ≈ 0.0876
Despite the positive test, there is only an 8.8% chance of having the disease, due to the low prevalence.
■ \blacksquare ■
Problem. Bag A contains 4 red and 6 blue balls. Bag B contains 7 red and 3 blue balls. A fair die is rolled: if it shows 1 or 2, a ball is drawn from Bag A; otherwise from Bag B. Find the probability the ball is red, and the probability Bag A was chosen given the ball is red.
Solution. P ( A ) = 2 6 = 1 3 P(A) = \frac{2}{6} = \frac{1}{3} P ( A ) = 6 2 = 3 1 , P ( B ) = 2 3 P(B) = \frac{2}{3} P ( B ) = 3 2 .
P ( R ∣ A ) = 4 10 = 0.4 P(R|A) = \frac{4}{10} = 0.4 P ( R ∣ A ) = 10 4 = 0.4 , P ( R ∣ B ) = 7 10 = 0.7 P(R|B) = \frac{7}{10} = 0.7 P ( R ∣ B ) = 10 7 = 0.7 .
P ( R ) = P ( R ∣ A ) P ( A ) + P ( R ∣ B ) P ( B ) = 0.4 × 1 3 + 0.7 × 2 3 = 0.4 + 1.4 3 = 1.8 3 = 0.6 P(R) = P(R|A)P(A) + P(R|B)P(B) = 0.4 \times \frac{1}{3} + 0.7 \times \frac{2}{3} = \frac{0.4 + 1.4}{3} = \frac{1.8}{3} = 0.6 P ( R ) = P ( R ∣ A ) P ( A ) + P ( R ∣ B ) P ( B ) = 0.4 × 3 1 + 0.7 × 3 2 = 3 0.4 + 1.4 = 3 1.8 = 0.6 .
P ( A ∣ R ) = P ( R ∣ A ) P ( A ) P ( R ) = 0.4 × 1 3 0.6 = 0.1333 0.6 ≈ 0.222 P(A|R) = \frac{P(R|A)P(A)}{P(R)} = \frac{0.4 \times \frac{1}{3}}{0.6} = \frac{0.1333}{0.6} \approx 0.222 P ( A ∣ R ) = P ( R ) P ( R ∣ A ) P ( A ) = 0.6 0.4 × 3 1 = 0.6 0.1333 ≈ 0.222
■ \blacksquare ■
Probability — The core probability axioms and basic results are developed in the standard probability topic.Statistical Distributions — Binomial, normal, and Poisson distributions build on the probability theory presented here.Hypothesis Testing — Bayes’ theorem and conditional probability are directly applied in statistical hypothesis testing.