Skip to content

Ch 13 · Probability

Solved Examples

Exercise 1 of 6

NCERT Solutions – Solved Examples

Class 12 Mathematics · Chapter 13 · Probability · 24 solved examples · Session 2026-27

Example 1
If $P(A)=\dfrac{7}{13}$, $P(B)=\dfrac{9}{13}$ and $P(A\cap B)=\dfrac{4}{13}$, evaluate $P(A|B)$.
Solution

Conditional probability: $$P(A|B) = \frac{P(A\cap B)}{P(B)},\qquad P(B)\neq0$$

  1. $P(A|B) = \dfrac{4/13}{9/13} = \dfrac{4}{13}\times\dfrac{13}{9}$.

$P(A|B) = \mathbf{\dfrac49}$.

Example 2
A family has two children. What is the probability that both are boys, given that at least one of them is a boy?
Solution
  1. Sample space: $S = \{BB,\ BG,\ GB,\ GG\}$, each equally likely.
  2. Let $E$ = both are boys $= \{BB\}$, and $F$ = at least one is a boy $= \{BB,\ BG,\ GB\}$.
  3. $P(F) = \dfrac34$ and $E\cap F = \{BB\}$, so $P(E\cap F) = \dfrac14$.
  4. $P(E|F) = \dfrac{1/4}{3/4}$.

$P(E|F) = \mathbf{\dfrac13}$ — not $\tfrac12$, because the condition rules out $GG$ but leaves three equally likely cases.

Example 3
Ten cards numbered 1 to 10 are placed in a box and one is drawn at random. If it is known that the number on the card is more than 3, find the probability that it is an even number.
Solution
  1. Let $A$ = the number is even $= \{2,4,6,8,10\}$ and $B$ = the number is more than 3 $= \{4,5,6,7,8,9,10\}$.
  2. $P(B) = \dfrac{7}{10}$.
  3. $A\cap B = \{4,6,8,10\}$, so $P(A\cap B) = \dfrac{4}{10}$.
  4. $P(A|B) = \dfrac{4/10}{7/10}$.

$P(A|B) = \mathbf{\dfrac47}$.

Example 4
In a school of 1000 students, 430 are girls. Of the girls, 10% study science; of the boys, 25% study science. A student is chosen at random and studies science. Find the probability that the student is a girl.
Solution
  1. Girls $= 430$, of whom $10\%$ study science: $0.10\times430 = 43$.
  2. Boys $= 1000-430 = 570$, of whom $25\%$ study science: $0.25\times570 = 142.5 \approx 142$ (taking the given percentages at face value).
  3. Let $E$ = the student studies science, $G$ = the student is a girl.
  4. $P(G|E) = \dfrac{\text{girls studying science}}{\text{all students studying science}} = \dfrac{43}{43+142.5} = \dfrac{43}{185.5}$.

$P(G|E) = \dfrac{43}{185.5} \approx \mathbf{0.232}$ — using $P(G|E) = \dfrac{P(G\cap E)}{P(E)}$ with $P(G\cap E) = \dfrac{43}{1000}$ and $P(E) = \dfrac{185.5}{1000}$.

Example 5
A die is thrown three times. $A$: 4 on the third throw; $B$: 6 on the first and 5 on the second throw. Find $P(A|B)$.
Solution
  1. The three throws are independent, so knowing the first two tells us nothing about the third.
  2. Formally: $B$ fixes the first two throws, leaving 6 equally likely outcomes for the third.
  3. $A\cap B$ is the single outcome $(6,5,4)$, so $P(A\cap B) = \dfrac{1}{216}$.
  4. $P(B) = \dfrac{1}{36}$ (first two fixed, third free: $\tfrac{6}{216}$).
  5. $P(A|B) = \dfrac{1/216}{6/216} = \dfrac16$.

$P(A|B) = \mathbf{\dfrac16}$ — equal to $P(A)$, confirming the throws are independent.

Example 6
A die is thrown twice and the sum is observed to be 6. What is the conditional probability that the number 4 has appeared at least once?
Solution
  1. Let $F$ = the sum is 6 $= \{(1,5),(2,4),(3,3),(4,2),(5,1)\}$, so $P(F) = \dfrac{5}{36}$.
  2. Let $E$ = 4 appears at least once.
  3. $E\cap F = \{(2,4),\ (4,2)\}$, so $P(E\cap F) = \dfrac{2}{36}$.
  4. $P(E|F) = \dfrac{2/36}{5/36}$.

$P(E|F) = \mathbf{\dfrac25}$.

Example 7
Consider the experiment: toss a coin; if it shows head, toss it again; if it shows tail, throw a die. Find the conditional probability that the die shows a number greater than 4, given that at least one tail occurred.
Solution
  1. Sample space: $S = \{(H,H),\ (H,T),\ (T,1),(T,2),(T,3),(T,4),(T,5),(T,6)\}$.
  2. Probabilities: $P(H,H) = P(H,T) = \dfrac14$; each $(T,i)$ has probability $\dfrac12\times\dfrac16 = \dfrac{1}{12}$.
  3. Let $F$ = at least one tail $= \{(H,T),(T,1),\dots,(T,6)\}$.
  4. $P(F) = \dfrac14 + 6\times\dfrac{1}{12} = \dfrac14 + \dfrac12 = \dfrac34$.
  5. Let $E$ = the die shows a number $>4$ $= \{(T,5),(T,6)\}$, so $P(E\cap F) = \dfrac{2}{12} = \dfrac16$.
  6. $P(E|F) = \dfrac{1/6}{3/4} = \dfrac16\times\dfrac43$.

$P(E|F) = \mathbf{\dfrac29}$.

Example 8
An urn holds 10 black and 5 white balls. Two balls are drawn one after the other without replacement. What is the probability that both are black?
Solution

Multiplication rule: $$P(E\cap F) = P(E)\,P(F|E)$$

  1. Let $E$ = first ball black, $F$ = second ball black.
  2. $P(E) = \dfrac{10}{15} = \dfrac23$.
  3. Given the first was black, 9 black remain out of 14: $P(F|E) = \dfrac{9}{14}$.
  4. $P(E\cap F) = \dfrac{10}{15}\times\dfrac{9}{14} = \dfrac{90}{210}$.

$P(\text{both black}) = \mathbf{\dfrac37}$.

Example 9
Three cards are drawn successively without replacement from a well-shuffled pack of 52. What is the probability that the first two are kings and the third is an ace?
Solution
  1. $P(\text{1st is a king}) = \dfrac{4}{52}$.
  2. $P(\text{2nd is a king}\mid\text{1st was}) = \dfrac{3}{51}$ — one king gone, 51 cards left.
  3. $P(\text{3rd is an ace}\mid\text{first two kings}) = \dfrac{4}{50}$ — all 4 aces remain among 50 cards.
  4. Multiply: $\dfrac{4}{52}\times\dfrac{3}{51}\times\dfrac{4}{50} = \dfrac{48}{132600}$.

$P = \mathbf{\dfrac{2}{5525}}$.

Example 10
A die is thrown. $E$: the number is a multiple of 3; $F$: the number is even. Are $E$ and $F$ independent?
Solution

Independence: $$E,F \text{ independent} \iff P(E\cap F) = P(E)\,P(F)$$

  1. $E = \{3,6\}$, so $P(E) = \dfrac26 = \dfrac13$.
  2. $F = \{2,4,6\}$, so $P(F) = \dfrac36 = \dfrac12$.
  3. $E\cap F = \{6\}$, so $P(E\cap F) = \dfrac16$.
  4. Check: $P(E)P(F) = \dfrac13\times\dfrac12 = \dfrac16 = P(E\cap F)$ ✔

$E$ and $F$ are independent.

Example 11
An unbiased die is thrown twice. $A$: odd number on the first throw; $B$: odd number on the second throw. Check the independence of $A$ and $B$.
Solution
  1. $P(A) = \dfrac{18}{36} = \dfrac12$ (first throw odd, second free).
  2. $P(B) = \dfrac{18}{36} = \dfrac12$.
  3. $A\cap B$: both throws odd $= 3\times3 = 9$ outcomes, so $P(A\cap B) = \dfrac{9}{36} = \dfrac14$.
  4. $P(A)P(B) = \dfrac12\times\dfrac12 = \dfrac14 = P(A\cap B)$ ✔

$A$ and $B$ are independent — as expected, since the throws do not influence each other.

Example 12
Three coins are tossed. $E$: three heads or three tails; $F$: at least two heads; $G$: at most two heads. Examine which pairs are independent.
Solution
  1. $S$ has 8 equally likely outcomes.
  2. $E = \{HHH,\ TTT\}$, $P(E) = \dfrac28 = \dfrac14$.
  3. $F = \{HHH,\ HHT,\ HTH,\ THH\}$, $P(F) = \dfrac48 = \dfrac12$.
  4. $G$ = at most two heads = all but $HHH$, so $P(G) = \dfrac78$.
  5. $E$ and $F$: $E\cap F = \{HHH\}$, $P = \dfrac18$; and $P(E)P(F) = \dfrac14\times\dfrac12 = \dfrac18$ ✔ independent.
  6. $E$ and $G$: $E\cap G = \{TTT\}$, $P = \dfrac18$; but $P(E)P(G) = \dfrac14\times\dfrac78 = \dfrac{7}{32} \neq \dfrac18$ ✘ not independent.
  7. $F$ and $G$: $F\cap G = \{HHT,HTH,THH\}$, $P = \dfrac38$; but $P(F)P(G) = \dfrac12\times\dfrac78 = \dfrac{7}{16} \neq \dfrac38$ ✘ not independent.

Only $E$ and $F$ are independent.

Example 13
Prove that if $E$ and $F$ are independent, then so are $E$ and $F'$.
Solution
  1. $E$ can be split into two disjoint parts: $E = (E\cap F)\cup(E\cap F')$.
  2. So $P(E) = P(E\cap F) + P(E\cap F')$.
  3. $P(E\cap F') = P(E) - P(E\cap F)$.
  4. Since $E$ and $F$ are independent, $P(E\cap F) = P(E)P(F)$:
  5. $P(E\cap F') = P(E) - P(E)P(F) = P(E)\left[1 - P(F)\right] = P(E)\,P(F')$.

$P(E\cap F') = P(E)P(F')$, so $E$ and $F'$ are independent. Proved.

Example 14
If $A$ and $B$ are independent, show that the probability of at least one of them occurring is $1-P(A')P(B')$.
Solution
  1. At least one occurs $= A\cup B$, so $P(\text{at least one}) = P(A\cup B) = 1 - P\left[(A\cup B)'\right]$.
  2. By De Morgan's law, $(A\cup B)' = A'\cap B'$.
  3. Since $A,B$ are independent, so are $A',B'$ (by the previous example, applied twice).
  4. $P(A'\cap B') = P(A')P(B')$.

$P(\text{at least one}) = \mathbf{1 - P(A')P(B')}$. Proved.

Example 15
A person has taken a construction job. The probabilities are $0.65$ that there will be a strike, $0.80$ that the job is completed on time if there is no strike, and $0.32$ that it is completed on time if there is a strike. Find the probability that the job is completed on time.
Solution

Theorem of total probability: $$P(E) = P(E|A_1)P(A_1) + P(E|A_2)P(A_2)$$

  1. Let $A$ = there is a strike, so $P(A) = 0.65$ and $P(A') = 0.35$.
  2. Let $E$ = the job is completed on time. Given: $P(E|A) = 0.32$ and $P(E|A') = 0.80$.
  3. $P(E) = P(E|A)P(A) + P(E|A')P(A')$.
  4. $= (0.32)(0.65) + (0.80)(0.35) = 0.208 + 0.28$.

$P(E) = \mathbf{0.488}$.

Example 16
Bag I has 3 red and 4 black balls; Bag II has 5 red and 6 black. One ball is drawn at random from one of the bags and is found to be red. Find the probability that it came from Bag II.
Solution

Bayes’ theorem: $$P(A_i|E) = \frac{P(E|A_i)P(A_i)}{\sum_j P(E|A_j)P(A_j)}$$

  1. Let $A_1$ = Bag I chosen, $A_2$ = Bag II chosen; $P(A_1) = P(A_2) = \dfrac12$.
  2. Let $E$ = the ball drawn is red. Then $P(E|A_1) = \dfrac37$ and $P(E|A_2) = \dfrac{5}{11}$.
  3. $P(E) = \dfrac12\cdot\dfrac37 + \dfrac12\cdot\dfrac{5}{11} = \dfrac{3}{14} + \dfrac{5}{22}$.
  4. Common denominator 154: $= \dfrac{33}{154} + \dfrac{35}{154} = \dfrac{68}{154}$.
  5. $P(A_2|E) = \dfrac{\frac12\cdot\frac{5}{11}}{\frac{68}{154}} = \dfrac{35/154}{68/154}$.

$P(A_2|E) = \mathbf{\dfrac{35}{68}}$.

Example 17
Three identical boxes each contain two coins. Box I has two gold coins, Box II two silver, and Box III one of each. A box is chosen at random and a coin drawn is found to be gold. What is the probability that the other coin in that box is also gold?
Solution
  1. "The other coin is also gold" means the box chosen was Box I.
  2. Let $A_1,A_2,A_3$ be the boxes, each with probability $\dfrac13$; let $E$ = the coin drawn is gold.
  3. $P(E|A_1) = 1$, $P(E|A_2) = 0$, $P(E|A_3) = \dfrac12$.
  4. $P(E) = \dfrac13(1) + \dfrac13(0) + \dfrac13\left(\dfrac12\right) = \dfrac13 + \dfrac16 = \dfrac12$.
  5. $P(A_1|E) = \dfrac{\frac13\cdot1}{\frac12} = \dfrac13\times2$.

$P(A_1|E) = \mathbf{\dfrac23}$.

Example 18
An HIV test detects the disease in 90% of people who have it (and is wrong 10% of the time), but also gives a positive result for 1% of healthy people. If 0.1% of the population actually has HIV, find the probability that a person testing positive really has HIV.
Solution
  1. Let $A$ = the person has HIV: $P(A) = 0.001$, $P(A') = 0.999$.
  2. Let $E$ = the test is positive. Given $P(E|A) = 0.90$ and $P(E|A') = 0.01$.
  3. $P(E) = (0.90)(0.001) + (0.01)(0.999) = 0.0009 + 0.00999 = 0.01089$.
  4. $P(A|E) = \dfrac{0.0009}{0.01089}$.

$P(A|E) \approx \mathbf{0.083}$, i.e. about 8.3%. Strikingly low — because the disease is so rare, the false positives from the huge healthy population outnumber the true positives.

Example 19
In a bolt factory, machines A, B and C make 25%, 35% and 40% of the output, of which 5%, 4% and 2% respectively are defective. A bolt drawn at random is found defective. What is the probability it was made by machine B?
Solution
  1. $P(A) = 0.25$, $P(B) = 0.35$, $P(C) = 0.40$.
  2. $P(D|A) = 0.05$, $P(D|B) = 0.04$, $P(D|C) = 0.02$, where $D$ = defective.
  3. $P(D) = (0.05)(0.25) + (0.04)(0.35) + (0.02)(0.40)$.
  4. $= 0.0125 + 0.014 + 0.008 = 0.0345$.
  5. $P(B|D) = \dfrac{0.014}{0.0345} = \dfrac{140}{345}$.

$P(B|D) = \mathbf{\dfrac{28}{69}} \approx 0.406$.

Example 20
A doctor visits a patient by train, bus, scooter or other means with probabilities $\dfrac{3}{10}$, $\dfrac15$, $\dfrac{1}{10}$ and $\dfrac25$. The probabilities of being late are $\dfrac14$, $\dfrac13$, $\dfrac{1}{12}$ and $0$ respectively. He arrives late. What is the probability he came by train?
Solution
  1. Let $T,B,S,O$ be the four modes, and $L$ = he is late.
  2. $P(L) = \dfrac{3}{10}\cdot\dfrac14 + \dfrac15\cdot\dfrac13 + \dfrac{1}{10}\cdot\dfrac{1}{12} + \dfrac25\cdot0$.
  3. $= \dfrac{3}{40} + \dfrac{1}{15} + \dfrac{1}{120} + 0$.
  4. Common denominator 120: $= \dfrac{9}{120} + \dfrac{8}{120} + \dfrac{1}{120} = \dfrac{18}{120} = \dfrac{3}{20}$.
  5. $P(T|L) = \dfrac{3/40}{3/20} = \dfrac{3}{40}\times\dfrac{20}{3}$.

$P(T|L) = \mathbf{\dfrac12}$.

Example 21
A man speaks truth 3 out of 4 times. He throws a die and reports that it is a six. Find the probability that it actually is a six.
Solution
  1. Let $A$ = the die actually shows six: $P(A) = \dfrac16$, $P(A') = \dfrac56$.
  2. Let $E$ = he reports a six.
  3. If it is a six he reports six when telling the truth: $P(E|A) = \dfrac34$.
  4. If it is not a six he reports six only when lying: $P(E|A') = \dfrac14$.
  5. $P(E) = \dfrac16\cdot\dfrac34 + \dfrac56\cdot\dfrac14 = \dfrac{3}{24} + \dfrac{5}{24} = \dfrac{8}{24} = \dfrac13$.
  6. $P(A|E) = \dfrac{3/24}{8/24} = \dfrac38$.

$P(A|E) = \mathbf{\dfrac38}$ — well below $\tfrac34$, because a six is a priori unlikely.

Example 22
Coloured balls are distributed in four boxes. A box is selected at random and a ball drawn from it is found to be black. What is the probability that it came from Box III?
Solution

Take the standard distribution — Box I: 3 black, 4 white, 5 red, 6 blue (18 total); Box II: 2, 2, 2, 2 (8); Box III: 1, 2, 3, 1 (7); Box IV: 4, 3, 1, 5 (13).

  1. Each box is equally likely: $P(\text{Box}_i) = \dfrac14$.
  2. $P(B|\text{I}) = \dfrac{3}{18} = \dfrac16$; $P(B|\text{II}) = \dfrac28 = \dfrac14$; $P(B|\text{III}) = \dfrac17$; $P(B|\text{IV}) = \dfrac{4}{13}$.
  3. $P(B) = \dfrac14\left[\dfrac16 + \dfrac14 + \dfrac17 + \dfrac{4}{13}\right]$.
  4. Inside the bracket $\approx 0.1667 + 0.25 + 0.1429 + 0.3077 = 0.8672$, so $P(B) \approx 0.2168$.
  5. $P(\text{III}|B) = \dfrac{\frac14\cdot\frac17}{0.2168} = \dfrac{0.0357}{0.2168}$.

$P(\text{III}|B) \approx \mathbf{0.165}$.

Example 23
A and B throw a die alternately until one of them gets a 6 and wins. If A starts, find their respective probabilities of winning.
Solution
  1. On each throw, $P(\text{six}) = \dfrac16$ and $P(\text{no six}) = \dfrac56$.
  2. A wins on the 1st, 3rd, 5th, … throw. So
  3. $P(A) = \dfrac16 + \left(\dfrac56\right)^{2}\dfrac16 + \left(\dfrac56\right)^{4}\dfrac16 + \cdots$
  4. This is a geometric series with first term $\dfrac16$ and common ratio $\left(\dfrac56\right)^{2} = \dfrac{25}{36}$.
  5. $P(A) = \dfrac{\frac16}{1-\frac{25}{36}} = \dfrac{\frac16}{\frac{11}{36}} = \dfrac16\times\dfrac{36}{11} = \dfrac{6}{11}$.
  6. $P(B) = 1 - \dfrac{6}{11} = \dfrac{5}{11}$.

$P(A) = \mathbf{\dfrac{6}{11}}$ and $P(B) = \mathbf{\dfrac{5}{11}}$ — starting first is a real advantage.

Example 24
A machine correctly set up produces 90% acceptable items; incorrectly set up it produces only 40% acceptable. Past experience shows 80% of set-ups are correct. If after a set-up the first two items produced are both acceptable, find the probability that the machine is correctly set up.
Solution
  1. Let $A$ = correctly set up: $P(A) = 0.8$, $P(A') = 0.2$.
  2. Let $E$ = the first two items are both acceptable. The items are independent given the set-up:
  3. $P(E|A) = (0.9)^{2} = 0.81$ and $P(E|A') = (0.4)^{2} = 0.16$.
  4. $P(E) = (0.81)(0.8) + (0.16)(0.2) = 0.648 + 0.032 = 0.68$.
  5. $P(A|E) = \dfrac{0.648}{0.68}$.

$P(A|E) = \mathbf{\dfrac{0.648}{0.68} \approx 0.95}$ — the two good items raise our confidence from 80% to about 95%.