Let G= the event that the shipment is from Ghana. Then GC is the event that the shipment is from neighbouring countries.
Given
P(G)=0.2 Then
P(GC)=1−P(G)=1−0.2=0.8 Let I= be the event that the vial is ineffective.
Use binomial distribution.
P(X=x)=(xn)px(1−p)n−xFind the probability that one out of 30 vials is ineffective, given that the shipment is from Ghana
n=30,p=0.1,x=1
P(I∣G)=(130)(0.1)1(1−0.1)30−1≈0.14130386Find the probability that one out of 30 vials is ineffective, given that the shipment is from neighbouring countries
n=30,p=0.02,x=1
P(I∣GC)=(130)(0.02)1(1−0.02)30−1≈0.333970 We are looking for P(G∣I). Use Bayes' Theorem
P(G∣I)=P(I∣G)P(G)+P(I∣GC)P(GC)P(I∣G)P(G)≈
≈0.14130386(0.2)+0.333970(0.8)0.14130386(0.2)≈0.0957 P(G∣I)=0.0957
Comments