Skip to content

Odds Ratio & Relative Risk

Put a 2 × 2 table of exposure against disease in, and get the odds ratio and the relative risk, each with its 95% confidence interval, and the attributable risk. Use the odds ratio for a case-control study and the relative risk for a cohort study.

2 × 2 Contingency Table

Odds ratio

2.250

Relative risk 2.000

Odds Ratio (OR)
2.250
95% CI for OR
0.994 – 5.092
Relative Risk (RR)
2.000
95% CI for RR
0.987 – 4.055
Attributable Risk (AR)
10.00%

OR > 1: Exposure is associated with increased odds of disease (risk factor).

How it's worked out

OR = (a × d) / (b × c) RR = [a / (a + b)] / [c / (c + d)]

  1. Odds ratio(a × d) / (b × c) = (20 × 90) / (80 × 10) = 1,800 / 800= 2.250
  2. Standard error of ln(OR), Woolf's method√(1/a + 1/b + 1/c + 1/d) = √(1/20 + 1/80 + 1/10 + 1/90)= 0.4167
  3. 95% interval for the odds ratioe^(ln 2.250 ± 1.96 × 0.4167) = e^(0.8109 ± 0.8167)= 0.994 – 5.092
  4. Risk in the exposeda / (a + b) = 20 / 100= 0.2
  5. Risk in the not exposedc / (c + d) = 10 / 100= 0.1
  6. Relative risk0.2 / 0.1= 2.000
  7. Standard error of ln(RR)√(b / (a(a + b)) + d / (c(c + d))) = √(80 / 2,000 + 90 / 1,000)= 0.3606
  8. 95% interval for the relative riske^(ln 2.000 ± 1.96 × 0.3606) = e^(0.6931 ± 0.7067)= 0.987 – 4.055
  9. Attributable risk0.2 − 0.1 = 0.1= 10.00%

The other eight tools