The probability that the shipment came from Ghana
P(G)=0.3,P(Gc)=0.7
Ineffective vials
P(I∣G)=0.08,P(I∣Gc)=0.03
n=30
The probability of 1 ineffective vial
P(I=1∣G)=(130)0.0810.9229
=0.2138
P(I=1∣Gc)=(130)0.0310.9729
=0.3721
The probability of getting an ineffective vial
P(I=1)=P(I=1∣G)P(G)+P(I=1∣Gc)P(Gc)
=0.2138*0.3+0.3721*0.7
=0.3246
The probability that the shipment came from neighbouring West African countries is calculated by applying the Bayes theorem
P(Gc∣I=1)=P(I=1)P(I=1∣Gc)P(Gc)
=0.32460.3721∗0.7
=0.8024
Comments
Leave a comment