Solution:
Let E1 be the event of choosing bag I, E2 be the event of choosing the bag, say bag II, and A be the event of drawing a red ball.
Then, P(E1)=P(E2)=21
Also, P(A∣E1)=P(drawing a red ball from bag I)=84=21
And P(A∣E2)=P(drawing a red ball from bag II)=82=41
Now, the probability of drawing a ball from bag I, being given that it is red, is P(E1∣A).
By using Bayes' theorem, we have:
P(E1∣A)=P(E1)×P(A∣E1)+P(E2)×P(A∣E2)P(E1)×P(A∣E1)
=21×21+21×4121×21=41+8141=8341=32