I had a question of probability in one of my tests which I couldn't solve. I think that it could be solved using Bayes rule.
I am not looking for the exact solution but if anyone could explain the concept underlying the tricky problem would be really helpful.
Here is the question -
I have two boxes containing apples and banana. One box contains 3 times the number of bananas as apples. Another box contains 3 times the number of apples as bananas. I chose one box at random and from that box chose 5 fruits with replacement. I got 4 apples and 1 banana. What is the probability that we select the basket mainly with apples?