RankRizz
JEE MAIN 2020 · 02 SEP S1+4 / −1MEDIUMTRANSCRIBED

JEE Main 2020 Mathematics question — Bayes' theorem

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:

SOLUTION

We are asked to find the probability that the chosen card came from Box 1 after we have been told that the number on the card is a non-prime. This is a question of conditional probability, so we begin by recalling Bayes’ theorem.

Bayes’ theorem for two events AA and BB is stated as

P(A∣B)=P(B∣A) P(A)P(B∣A) P(A)+P(B∣A ⁣ ⁣c) P(A ⁣ ⁣c).P(A\mid B)=\dfrac{P(B\mid A)\,P(A)}{P(B\mid A)\,P(A)+P(B\mid A^{\!\!c})\,P(A^{\!\!c})}.

In the present situation:

  • Event AA is “the card is drawn from Box 1.”
  • Event BB is “the number on the card is non-prime.”
  • Event A ⁣ ⁣cA^{\!\!c} is “the card is drawn from Box 2.”

Thus we want P(A∣B)P(A\mid B), the probability that the card came from Box 1 given that it is non-prime.

First we note that the choice between the two boxes is made at random, so

P(A)=12,P(A ⁣ ⁣c)=12.P(A)=\dfrac12,\qquad P(A^{\!\!c})=\dfrac12.

Next we must compute P(B∣A)P(B\mid A), the probability that the number is non-prime when the card is taken from Box 1. Box 1 contains the integers from 11 to 3030.

We list all primes up to 3030:

2, 3, 5, 7, 11, 13, 17, 19, 23, 29.2,\,3,\,5,\,7,\,11,\,13,\,17,\,19,\,23,\,29.

There are 1010 such primes. Since Box 1 has 3030 cards altogether, the number of non-primes (including the number 11 and all composites) is

30−10=20.30-10=20.

Hence

P(B∣A)=2030=23.P(B\mid A)=\dfrac{20}{30}=\dfrac23.

Now we find P(B∣A ⁣ ⁣c)P(B\mid A^{\!\!c}), the probability that the number is non-prime when the card comes from Box 2. Box 2 contains the integers from 3131 to 5050, a total of 2020 numbers.

We list the primes between 3131 and 5050:

31, 37, 41, 43, 47.31,\,37,\,41,\,43,\,47.

There are 55 such primes. Therefore the count of non-primes in Box 2 is

20−5=15.20-5=15.

So

P(B∣A ⁣ ⁣c)=1520=34.P(B\mid A^{\!\!c})=\dfrac{15}{20}=\dfrac34.

We have gathered all the ingredients needed for Bayes’ theorem. Substituting into the formula gives

P(A∣B)= P(B∣A) P(A) P(B∣A) P(A)+P(B∣A ⁣ ⁣c) P(A ⁣ ⁣c)=(23) ⁣(12)(23) ⁣(12)+(34) ⁣(12).P(A\mid B)=\dfrac{\,P(B\mid A)\,P(A)\,}{P(B\mid A)\,P(A)+P(B\mid A^{\!\!c})\,P(A^{\!\!c})}=\dfrac{\left(\dfrac23\right)\!\left(\dfrac12\right)}{\left(\dfrac23\right)\!\left(\dfrac12\right)+\left(\dfrac34\right)\!\left(\dfrac12\right)}.

We simplify the numerator first:

(23) ⁣(12)=23×12=26=13.\left(\dfrac23\right)\!\left(\dfrac12\right)=\dfrac{2}{3}\times\dfrac{1}{2}=\dfrac{2}{6}=\dfrac13.

Now we simplify each part of the denominator:

First term in the denominator:

(23) ⁣(12)=13\left(\dfrac23\right)\!\left(\dfrac12\right)=\dfrac13

Second term in the denominator:

(34) ⁣(12)=34×12=38.\left(\dfrac34\right)\!\left(\dfrac12\right)=\dfrac{3}{4}\times\dfrac{1}{2}=\dfrac{3}{8}.

Add the two terms to complete the denominator:

13+38=824+924=1724.\dfrac13+\dfrac38=\dfrac{8}{24}+\dfrac{9}{24}=\dfrac{17}{24}.

Thus the conditional probability becomes

P(A∣B)=131724=13×2417=2451=817.P(A\mid B)=\dfrac{\dfrac13}{\dfrac{17}{24}}=\dfrac13\times\dfrac{24}{17}=\dfrac{24}{51}=\dfrac{8}{17}.

Hence, the correct answer is Option B.

Tagged Bayes' theorem. Machine-assigned, so read it as a strong shortlist rather than a verdict.

TopicBayes' theorem
TypeMultiple choice