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:
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 and is stated as
In the present situation:
Thus we want , 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
Next we must compute , the probability that the number is non-prime when the card is taken from Box 1. Box 1 contains the integers from to .
We list all primes up to :
There are such primes. Since Box 1 has cards altogether, the number of non-primes (including the number and all composites) is
Hence
Now we find , the probability that the number is non-prime when the card comes from Box 2. Box 2 contains the integers from to , a total of numbers.
We list the primes between and :
There are such primes. Therefore the count of non-primes in Box 2 is
So
We have gathered all the ingredients needed for Bayes’ theorem. Substituting into the formula gives
We simplify the numerator first:
Now we simplify each part of the denominator:
First term in the denominator:
Second term in the denominator:
Add the two terms to complete the denominator:
Thus the conditional probability becomes
Hence, the correct answer is Option B.
Tagged Bayes' theorem. Machine-assigned, so read it as a strong shortlist rather than a verdict.