📝 Problem
In a study of 500 people, the relationship between smoking (A) and lung disease (B) was recorded:
| Disease (B) | No Disease (β) | |
|---|---|---|
| Smoker (A) | 120 | 80 |
| Non-smoker (α) | 60 | 240 |
Unit V · Lecture 38 of 40 · B.Sc. Data Science, 1st Year, Semester II
The standard 2×2 table for two attributes A and B:
| (B) | (β) | |
|---|---|---|
| (A) | a | b |
| (α) | c | d |
Where: a = (AB), b = (Aβ), c = (αB), d = (αβ), N = a+b+c+d
Q = (ad − bc) / (ad + bc)
Named after: George Udny Yule (1871–1951), British statistician.
Intuition: Q compares the product of concordant pairs (ad = both present × both absent) with the product of discordant pairs (bc = A present/B absent × A absent/B present). If concordant pairs dominate (ad > bc), the association is positive.
In a study of 500 people, the relationship between smoking (A) and lung disease (B) was recorded:
| Disease (B) | No Disease (β) | |
|---|---|---|
| Smoker (A) | 120 | 80 |
| Non-smoker (α) | 60 | 240 |
a = 120, b = 80, c = 60, d = 240
Q = (ad − bc) / (ad + bc)
= (120×240 − 80×60) / (120×240 + 80×60)
= (28800 − 4800) / (28800 + 4800)
= 24000 / 33600
= 0.7143
Strong positive association between smoking and lung disease
Smokers are much more likely to have lung disease than non-smokers. Q = 0.714 indicates a strong relationship.
| B | β | |
|---|---|---|
| A | 100 | 0 |
| α | 50 | 150 |
Q = (100×150 − 0×50)/(100×150 + 0×50) = 15000/15000 = +1
Everyone with A also has B (b=0).
| B | β | |
|---|---|---|
| A | 0 | 100 |
| α | 80 | 120 |
Q = (0×120 − 100×80)/(0×120 + 100×80) = −8000/8000 = −1
No one with A has B (a=0). A and B are mutually exclusive.
| B | β | |
|---|---|---|
| A | 50 | 50 |
| α | 50 | 50 |
Q = (50×50 − 50×50)/(50×50 + 50×50) = 0/5000 = 0
ad = bc → No association. The proportion of B is the same in both A and α groups.
Enter the four cell frequencies:
Q1: Yule's Q formula is:
Q2: Q = +1 means:
Q3: Q = 0 when:
Q4: For a=50, b=30, c=20, d=100, Q = ?
Q5: Yule's Q is applicable to:
1. Compute Q for: a=80, b=40, c=30, d=150. Interpret.
2. Compute Q for: a=25, b=75, c=75, d=25. Interpret.
3. If Q = 0.8, a = 100, b = 20, c = 30, find d.
4. Show that Q = +1 if and only if b = 0 or c = 0.
5. Compare Q and φ for the data in Example 1 (a=120, b=80, c=60, d=240). Which is larger in absolute value?
6. BONUS: Show that Q can be written as Q = (OR − 1)/(OR + 1), where OR = ad/bc is the odds ratio.
Yule's Coefficient of Colligation Y — An alternative measure with different properties