Given:
10 students are in category A
30 students are in category B
20 students are in category C
Let us assume U1, U2, U3 and A be the events as follows:
U1 = Choosing student from category A
U2 = choosing student from category B
U3 = choosing student from category C
A = Not getting good marks in final examination
Now,
⇒ P(A|U1) = P(student not getting good marks from category A
⇒ P(A|U1) = 0.002
⇒ P(A|U2) = P(student not getting good marks from category B)
⇒ P(A|U2) = 0.02
⇒ P(A|U3) = P(student not getting good marks from category C)
⇒ P(A|U3) = 0.2
Now we find
P(U3|A) = P(The student is from category C given that he didn’t get good marks in final examination)
Using Baye’s theorem: