Original practice · fully worked
Original variant: identify a kit's workshop from pass results
Sealed three-component kits come from workshops A, B, and C in proportions 0.50, 0.30, and 0.20. Within a kit, components independently pass inspection with probabilities 0.80, 0.50, and 0.20 for the respective workshops. A selected kit has exactly two passing components. Calculate the probability it came from workshop A.
- A
0.192 - B
0.384 - C
0.500 - D
0.593 - E
0.631
Answer and calculation
The three prior-weighted exactly-two likelihoods are 0.1920, 0.1125, and 0.0192. Workshop A's normalized share is 0.1920/0.3237=0.593142, so choice D.
Setup
Setup
Let E denote exactly two passes. Compute its binomial likelihood under each possible workshop.
Pr(E∣A)=(23)(0.80)2(0.20)=0.384 Pr(E∣B)=(23)(0.50)2(0.50)=0.375 Pr(E∣C)=(23)(0.20)2(0.80)=0.096 Model
Model
Weight each likelihood by the corresponding production share.
wA=0.50(0.384)=0.1920 wB=0.30(0.375)=0.1125 wC=0.20(0.096)=0.0192 Compute
Compute
Normalize the workshop-A weight over all three ways the evidence can arise.
Pr(A∣E)=0.1920+0.1125+0.01920.1920 Pr(A∣E)=0.32370.1920=0.593141798 Answer
Answer
The posterior probability of workshop A is approximately 0.593.
0.593(D)