EXAMPLE 31 Bayes' Rule
The Gardasil vaccine
Table 24 contains a contingency table (crosstabulation) of the variables com-pleted and insurance type for the data set Gardasil.12
Insurance type | |||||||
---|---|---|---|---|---|---|---|
Hospital- based |
Medical assistance |
Military | Private payer | Total | |||
Completed | No | 45 | 220 | 209 | 470 | 944 | |
Yes | 39 | 55 | 122 | 253 | 469 | ||
Total | 84 | 275 | 331 | 723 | 1413 |
Define the following events:
Use Bayes’ Rule to find the probability that a randomly selected patient used military insurance, given that he or she completed the treatment.
Solution
We are interested in the probability P(M given C). Substituting M for A and C for B in the formula for Bayes’ Rule, we obtain:
P(M given C)=P(M)·P(C given M)P(M)·P(C given M)+P(MC)·P(C given MC)
From Table 24, we have P(M)=3311413and P(C given M)=122331. The event MC consists of all other insurance types besides military. So we have P(MC)=10821413, and P(C given MC)=3471082. Thus,
P(M given C)=3311413·1223313311413·122331+10821413·3471082=12214131221413+3471413=122469≈0.26
Note that this result is confirmed by the direct calculation of P(M/C) using Table 24, which is the single cell of 122 military completers divided by the total number of completers.
NOW YOU CAN DO
Exercises 105–108.