Placement AptitudeHardTCS NQT · Infosys · Capgemini pattern
Bag A has 2 red and 3 white balls; Bag B has 5 red and 6 white balls. A bag is chosen at random and one ball is drawn from it. Given that the ball drawn is red, what is the probability that it came from Bag A?
- A. 2/5
- B. 25/47
- C. 22/47
- D. 2/7
Correct answer: C. 22/47
P(red|A) = 2/5, P(red|B) = 5/11, and each bag is chosen with probability 1/2. By Bayes' theorem, P(A|red) = P(red|A) / [P(red|A) + P(red|B)] = 22/47. Comparing only the red counts, quoting P(red|A) itself, or taking the complement, gives the other options.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- Bag A has 6 red and 5 white balls; Bag B has 4 red and 2 white balls. A bag is chosen at random and one ball is drawn from it. Given that…
- Bag A has 3 red and 5 white balls; Bag B has 6 red and 2 white balls. A bag is chosen at random and one ball is drawn from it. Given that…
- Bag A has 5 red and 6 white balls; Bag B has 2 red and 4 white balls. A bag is chosen at random and one ball is drawn from it. Given that…
- Bag A has 4 red and 6 white balls; Bag B has 3 red and 5 white balls. A bag is chosen at random and one ball is drawn from it. Given that…
- Bag A has 2 red and 4 white balls; Bag B has 6 red and 3 white balls. A bag is chosen at random and one ball is drawn from it. Given that…
- Bag A has 6 red and 2 white balls; Bag B has 5 red and 4 white balls. A bag is chosen at random and one ball is drawn from it. Given that…