Bayes' Theorem: Is Smoking Independent of Lung Cancer?
What You Will Learn
- Bayes' theorem application — converting from P(cancer|smoker) to P(smoker|cancer)
- Law of total probability — calculating overall disease rates from conditional probabilities
- Independence testing — determining when knowing one event changes the probability of another
- Medical probability interpretation — understanding what conditional probabilities mean in real health contexts
- Base rate importance — seeing how population percentages affect individual diagnostic probabilities
Solution: Method 1 — Direct Bayes' Theorem Application
This is a classic "reverse conditional probability" problem. We know disease rates for smokers vs. non-smokers, but we want to know smoking rates among cancer patients. This requires Bayes' theorem.
Step 1 — Define events and organize given information
Let S = person is a smoker, and C = person gets lung cancer.
P(S) = 0.11 (11% of population smokes)
P(S') = 0.89 (89% don't smoke)
P(C|S) = 0.34 (34% of smokers get lung cancer)
P(C|S') = 0.03 (3% of non-smokers get lung cancer)
Want: P(S|C) and test independence
Step 2 — Calculate the total probability of cancer P(C)
Using the law of total probability, the overall cancer rate is the weighted average of cancer rates in each group:
P(C) = 0.34 × 0.11 + 0.03 × 0.89
P(C) = 0.0374 + 0.0267
P(C) = 0.0641
So 6.41% of the total population will develop lung cancer.
Step 3 — Apply Bayes' theorem
Now we can find the probability that a lung cancer patient is a smoker:
P(S|C) = 0.34 × 0.11 / 0.0641
P(S|C) = 0.0374 / 0.0641
P(S|C) ≈ 0.584
Step 4 — Test for independence
Events are independent if P(S|C) = P(S). Comparing our results:
P(S) = 0.11 = 11%
P(S|C) ≈ 0.584 = 58.4%
Since P(S|C) ≠ P(S), smoking and lung cancer are not independent.
Solution: Method 2 — Population of 100,000 People
Sometimes it's clearer to work with actual counts rather than probabilities. Let's imagine a population of 100,000 people and trace through the numbers.
Step 1 — Break down the population by smoking status
| Group | Count | Percentage |
|---|---|---|
| Smokers | 11,000 | 11% |
| Non-smokers | 89,000 | 89% |
| Total | 100,000 | 100% |
Step 2 — Calculate cancer cases in each group
Apply the given cancer rates to each group:
| Group | Population | Cancer Rate | Cancer Cases |
|---|---|---|---|
| Smokers | 11,000 | 34% | 11,000 × 0.34 = 3,740 |
| Non-smokers | 89,000 | 3% | 89,000 × 0.03 = 2,670 |
| Total Cancer Cases | 100,000 | 6.41% | 6,410 |
Step 3 — Find the smoking rate among cancer patients
Of the 6,410 people with lung cancer, 3,740 are smokers:
P(S|C) = 3,740 / 6,410 ≈ 0.584
This confirms our Bayes' theorem calculation: about 58.4% of lung cancer patients are smokers.
Verification
Let's verify our answer makes sense by checking that all probabilities are consistent:
P(S'|C) = 1 - 0.584 = 0.416
0.584 + 0.416 = 1.000 ✓
Check 2: Alternative calculation of P(S'|C)
P(S'|C) = P(C|S') × P(S') / P(C) = 0.03 × 0.89 / 0.0641 ≈ 0.416 ✓
Check 3: Using our population table
Non-smokers with cancer: 2,670
P(S'|C) = 2,670 / 6,410 ≈ 0.416 ✓
The Power of Base Rates
This problem illustrates a crucial concept in probability: base rates matter enormously. Even though smokers are much more likely to get lung cancer (34% vs. 3%), the majority of the population doesn't smoke. This "dilutes" the smoking signal in the cancer population.
Common Pitfalls
Wrong reasoning: "34% of smokers get cancer, so 34% of cancer patients must be smokers."
Why it's wrong: This ignores base rates. The direction of conditioning matters — these are completely different questions.
Wrong reasoning: "Since P(S|C) ≠ P(S), there's some relationship, but we can't quantify how strong."
Why it's wrong: We can quantify it precisely. The ratio P(S|C)/P(S) = 0.584/0.11 ≈ 5.3 means lung cancer patients are about 5.3 times more likely to be smokers than the general population.
Wrong calculation: P(C) = P(C|S) × P(S) = 0.34 × 0.11 = 0.0374
Why it's wrong: This only accounts for cancer in smokers. You must include both P(C|S) × P(S) + P(C|S') × P(S') to get the total cancer rate.
Recognizing This Problem in the Wild
You're dealing with Bayes' theorem whenever you see these patterns:
- "Given that..." flipped around — You know P(disease|exposure) but want P(exposure|disease)
- Medical diagnostic questions — "What's the chance this positive test means I have the disease?"
- Base rate problems — Population percentages are given alongside conditional probabilities
- Independence testing — "Do these two events influence each other?"
- Survey data analysis — Large-scale population studies with breakdowns by subgroups
What This Shows Up in Real Life
- Medical diagnosis: Interpreting test results, understanding disease screening, calculating positive predictive values for medical tests
- Legal evidence: Analyzing DNA matches, fingerprint evidence, and witness reliability in court cases
- Quality control: Determining whether defective products came from specific production lines or shifts
- Marketing analytics: Finding which customer characteristics predict buying behavior, calculating conversion rates by demographic
- Insurance and actuarial science: Assessing risk factors for claims, setting premiums based on customer profiles
Try These Variations
Now P(S) = 0.25 and P(S') = 0.75, while P(C|S) = 0.34 and P(C|S') = 0.03 remain the same.
P(C) = 0.34 × 0.25 + 0.03 × 0.75 = 0.085 + 0.0225 = 0.1075
P(S|C) = (0.34 × 0.25) / 0.1075 = 0.085 / 0.1075 ≈ 0.791
About 79.1% of lung cancer patients would be smokers. Higher base smoking rates dramatically increase this percentage.
From P(S|C) = P(C|S) × P(S) / P(C), we get:P(C|S) = P(S|C) × P(C) / P(S)
P(C|S) = 0.584 × 0.0641 / 0.11
P(C|S) = 0.0374 / 0.11 ≈ 0.340
P(C|S) = 34%, which matches our original given value. Bayes' theorem works in both directions!
P(C) = 0.45 × 0.10 + 0.18 × 0.15 + 0.03 × 0.75
= 0.045 + 0.027 + 0.0225 = 0.0945
P(H|C) = P(C|H) × P(H) / P(C)
= 0.45 × 0.10 / 0.0945 ≈ 0.476
P(L|C) = 0.18 × 0.15 / 0.0945 ≈ 0.286
P(N|C) = 0.03 × 0.75 / 0.0945 ≈ 0.238
47.6% of cancer patients are heavy smokers. Check: 0.476 + 0.286 + 0.238 = 1.000 ✓
For independence, we need P(S|C) = P(S) = 0.11. This means P(S'|C) = 0.89.
If independent, then P(C|S) = P(C|S') = P(C). Since P(C|S) = 0.34, we need P(C|S') = 0.34 too.
P(C) = 0.34 × 0.11 + 0.34 × 0.89 = 0.34(0.11 + 0.89) = 0.34
P(C|S') would need to be 0.34 (same as smokers), and then P(S|C) = 0.11 (same as the population rate). This would mean smoking has no effect on cancer risk.
Frequently Asked Questions
2026-08-23