Loading [MathJax]/jax/output/CommonHTML/jax.js

EXAMPLE 31 Bayes' Rule

image The Gardasil vaccine

Table 24 contains a contingency table (crosstabulation) of the variables com-pleted and insurance type for the data set Gardasil.12

Table 5.57: Table 24 Contingency table of the variables completed and insurance type
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:

  • M:Insurance type = Military
  • C:Completed the vaccination treatment

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(MgivenC). Substituting M for A and C for B in the formula for Bayes’ Rule, we obtain:

P(MgivenC)=P(M)·P(CgivenM)P(M)·P(CgivenM)+P(MC)·P(CgivenMC)

From Table 24, we have P(M)=3311413andP(CgivenM)=122331. The event MC consists of all other insurance types besides military. So we have P(MC)=10821413, and P(CgivenMC)=3471082. Thus,

P(MgivenC)=3311413·1223313311413·122331+10821413·3471082=12214131221413+3471413=1224690.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.

[Leave] [Close]