Let L denote class low risk, H denote high risk and N denote no accident.
P(L) =0.7
P(H)=0.3
P(N|L)=0.99
P(N|H)= 0.88
a) P(H|N) ="\\frac{P(H) P(N|H)} {P(H) P(N|H) +P(L) P(N|L) }"
="\\frac {0.3*0.88}{(0.3*0.88)+(0.7*0.99)}"
=0.2759
b) P(L|N) ="\\frac{P(L) P(N|L)} {P(H) P(N|H) +P(L) P(N|L) }"
="\\frac {0.7*0.99}{(0.3*0.88)+(0.7*0.99)}"
=0.7241
Comments
Leave a comment