QlarIITy

MathematicsJEE Main 2020 · 2 SeptemberSingle correct

Box 1 contains 30 cards numbered 1 to 30 and Box 2 contains 20 cards numbered 31 to 50. A box is selected at random and a card is drawn from it. The number on the card is found to be a non-prime number. The probability that the card was drawn from Box 1 is

  1. Option A: 23\frac{2}{3}
  2. Option B: 817\frac{8}{17}
  3. Option C: 417\frac{4}{17}
  4. Option D: 25\frac{2}{5}
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. With equally likely sources, the chance of each source given the result is in proportion to its chance of producing the result.

Concept refresher. Bayes theorem gives the probability of a case E1E_1 after an event AA has been seen:

P(E1∣A)=P(E1)P(A∣E1)P(A)P(E_1 \mid A) = \dfrac{P(E_1)P(A \mid E_1)}{P(A)}

where P(A)P(A) is the total over all the cases.

Picture the situation. Each box is chosen with probability one half, and then one card is drawn. The numbers 1 to 30 contain 10 primes, and the numbers 31 to 50 contain 5. A non-prime card is evidence about which box was used.

Approach. Find the chance of a non-prime from each box and apply Bayes theorem.

  1. Step 1: Non-primes in each box

    From 1 to 30 the primes are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, so Box 1 has 20 non-primes and the chance is 2030=23\dfrac{20}{30} = \dfrac{2}{3}. From 31 to 50 the primes are 31, 37, 41, 43, 47, so Box 2 has 15 non-primes and the chance is 1520=34\dfrac{15}{20} = \dfrac{3}{4}.

  2. Step 2: Bayes theorem

    With each box equally likely, the probability of Box 1 is 23\dfrac{2}{3} divided by 23+34\dfrac{2}{3} + \dfrac{3}{4}, that is 812÷1712=817\dfrac{8}{12} \div \dfrac{17}{12} = \dfrac{8}{17}.

Answer. (B) 817\dfrac{8}{17}

Sanity check. With a common denominator the two chances are 812\dfrac{8}{12} and 912\dfrac{9}{12}, in the ratio 8 to 9, so the shares are 817\dfrac{8}{17} and 917\dfrac{9}{17}.

Why the other options are wrong

  • (A) The value 23\dfrac{2}{3} is the chance of a non-prime from Box 1, not the chance of Box 1 given a non-prime.
  • (C) The value 417\dfrac{4}{17} is half the correct share; the factor 12\dfrac{1}{2} for choosing a box cancels and must not be applied again.
  • (D) The value 25\dfrac{2}{5} does not follow from the chances 23\dfrac{2}{3} and 34\dfrac{3}{4}, whose ratio is 8 to 9.

Key takeaway

The trap. The number 1 is not a prime, so it counts among the non-primes.

How toppers think. They reduce the two chances to one denominator and read the ratio.

Remember. P(B1∣N)=88+9P(B_1 \mid N) = \dfrac{8}{8 + 9}

More on Bayes’ Theorem