Logistic Regression
Odds Ratios
Learn how to interpret odds ratios from logistic regression models: what they measure, how to calculate them, and why they matter in biostatistics.
What Is Logistic Regression?
Logistic regression is a statistical method used when the outcome variable is binary: it takes only two values, such as disease vs. no disease or pass vs. fail. Unlike linear regression, which predicts a continuous number, logistic regression predicts the probability of an event occurring.
The Sigmoid Curve
Probability, Odds, and Log-Odds
What Is an Odds Ratio?
An odds ratio (OR) compares the odds of an event in one group to the odds in another. In logistic regression, the OR for a predictor tells you how the odds of the outcome change for a one-unit increase in that predictor.
The Logistic Model Equation
Interpreting \(\text{OR}\) Values
Odds Ratio vs. Relative Risk
| Odds Ratio (OR) | Relative Risk (RR) | |
|---|---|---|
| Definition | Ratio of odds in two groups | Ratio of probabilities in two groups |
| Formula | \(\frac{p_1/(1-p_1)}{p_2/(1-p_2)}\) | \(\frac{p_1}{p_2}\) |
| Range | \((0, \infty)\) | \((0, \infty)\) |
| When similar | When the outcome is rare (< 10%), \(\text{OR} \approx \text{RR}\) | |
| Use case | Logistic regression, case-control studies | Cohort studies, clinical trials |
How to Calculate an Odds Ratio
Example: Smoking and Lung Disease
A logistic regression predicting lung disease from smoking status yields:
Example: Age and Heart Disease
A model predicting heart disease from age (in years) produces:
Example: Multiple Predictors
A model predicting diabetes from BMI and exercise includes both predictors:
| Predictor | \(\beta\) | OR = \(e^{\beta}\) | Interpretation |
|---|---|---|---|
| BMI (\(+1\) unit) | 0.12 | 1.13 | 13% higher odds |
| Exercise (yes vs. no) | -0.5 | 0.61 | 39% lower odds |
Confidence Intervals for OR
A point estimate alone is not enough. A 95% confidence interval tells us the range of plausible values for the population OR.
Why Model the Log-Odds?
Common Mistakes with Odds Ratios
Summary: Interpreting Odds Ratios
| \(\text{OR}\) Value | Direction | Interpretation Template |
|---|---|---|
| \(\text{OR} = 1\) | None | No association with the outcome |
| \(\text{OR} > 1\) | Increase | "For each 1-unit increase in \(X\), the odds of \(Y\) are \(\text{OR}\) times as high" |
| \(\text{OR} < 1\) | Decrease | "For each 1-unit increase in \(X\), the odds of \(Y\) are multiplied by \(\text{OR}\)" |
| 95% CI includes 1 | Uncertain | Result is not statistically significant |
| 95% CI excludes 1 | Significant | Result is statistically significant at \(\alpha = 0.05\) |
Question 1 of 5
A logistic regression yields \(\beta_1 = 0.693\) for a predictor. What is the odds ratio?
Question 2 of 5
An odds ratio of \(0.60\) for a medication means:
Question 3 of 5
A 95% confidence interval for an \(\text{OR}\) is \((0.85, 1.42)\). What can you conclude?
Question 4 of 5
In a logistic regression model, the coefficient for "hours of exercise per week" is \(\beta = -0.3\). The \(\text{OR}\) for a 5-hour increase is:
Question 5 of 5
When is it reasonable to treat the odds ratio (\(\text{OR}\)) as approximately equal to the relative risk (\(\text{RR}\))?