Concept:
• Bayes' Theorem: \( P(A|B) = \frac{P(A) \cdot P(B|A)}{P(B)} \).
Step 1: Define the events and their probabilities
Let \( M \): Selected person is Male, \( F \): Selected person is Female.
Let \( C \): Selected person has lung complications.
\( P(M) = 30/50 = 0.6 \)
\( P(F) = 20/50 = 0.4 \)
Conditional probabilities given from the study:
\( P(C|M) = 170/1000 = 0.17 \)
\( P(C|F) = 120/1000 = 0.12 \)
Step 2: Calculate the total probability of complications \( P(C) \)
Using the theorem of total probability:
\[ P(C) = P(M)P(C|M) + P(F)P(C|F) \]
\[ P(C) = (0.6 \times 0.17) + (0.4 \times 0.12) \]
\[ P(C) = 0.102 + 0.048 = 0.150 \]
Step 3: Apply Bayes' Theorem to find \( P(F|C) \)
\[ P(F|C) = \frac{P(F) \cdot P(C|F)}{P(C)} \]
\[ P(F|C) = \frac{0.4 \times 0.12}{0.150} = \frac{0.048}{0.150} \]
\[ P(F|C) = \frac{48}{150} = \frac{8}{25} = 0.32 \]