The probability that the shipment came from Ghana and neighboring West Africa countries is
P(G)=0.3,P(Gc)=0.7
respectively.
The probability of an ineffective vial in Ghana and neighboring countries
P(I∣G)=0.08,P(I∣Gc)=0.03
Given n =30, the probability of getting 1 ineffective vial is
P(I=1∣G)=(130)0.0810.9229
=0.2138
P(I=1∣Gc)=(130)0.0310.9729
=0.3721
The probability of getting one 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