Solution :
It is given that :
P (positive | Has disease) = 0.7
P (positive | No disease) = 0.08
P (has disease) = 0.18
P (No disease) = 1 - 0.18
= 0.82
Now if test administered to the individual is positive, the probability that the person actually have the disease is
P (Has disease | positive) [tex]$=\frac{P(\text{positive}| \text{has positive}) \times P(\text{Has disease})}{P(\text{positive})}$[/tex] ......(1)
The P(positive) is,
[tex]$P(\text{positive}) = P(\text{positive} \cap \text{Has disease})+P(\text{positive} \cap \text{No disease})$[/tex]
= P(positive | has disease) x P(Has disease) + P(positive | no disease) x P(No disease)
= 0.7 (0.19) + 0.04 (0.81)
= 0.1654
Now substituting the values in the equation (1), we get
P (Has disease | positive) [tex]$=\frac{P(\text{positive}| \text{has positive}) \times P(\text{Has disease})}{P(\text{positive})}$[/tex]
[tex]$=\frac{0.7(0.19)}{0.1654}$[/tex]
= 0.8041