01 / 21
0.5

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.

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

0 0.5 1.0 Predictor value (x)
\(P(Y=1)\)
\(p \to 1\)
\(p \to 0\)

Probability, Odds, and Log-Odds

Probability
The chance an event occurs, from 0 to 1. Example: \(p = 0.75\) means a 75% chance.
Odds
Ratio of event to non-event: \(\text{Odds} = \frac{p}{1 - p}\). If \(p = 0.75\), \(\text{odds} = 3\).
Log-Odds
Natural log of the odds: \(\ln\!\left(\frac{p}{1-p}\right)\). This is what logistic regression models directly.

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.

Odds at \(x\)
\(= e^{\beta_0 + \beta_1 x}\)
\(\times \text{OR}\)
Odds at \(x+1\)
\(= e^{\beta_0 + \beta_1(x+1)}\)
\(\text{OR} = e^{\beta_1}\)

The Logistic Model Equation

1
\(\beta_0\) is the intercept: the log-odds when all predictors equal zero.
2
\(\beta_1\) is the change in log-odds for a one-unit increase in \(x_1\), holding other variables constant.
3
Exponentiating gives the odds ratio: \(\text{OR} = e^{\beta_1}\).

Interpreting \(\text{OR}\) Values

\(\text{OR} = 1\)
No effect
\(\text{OR} < 1\)
Lower odds (protective) 0.3 0.7
\(\text{OR} > 1\)
Higher odds (risk factor) 1.5 3.0 ← →
\(\text{OR} < 1\)
The predictor decreases the odds. Often called a protective factor.
\(\text{OR} = 1\)
No association. The predictor has no effect on the odds.
\(\text{OR} > 1\)
The predictor increases the odds. Often called a risk factor.

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

1
Fit the logistic model. Obtain the coefficient \(\beta_1\) for your predictor of interest.
2
Exponentiate. Compute \(\text{OR} = e^{\beta_1}\). This converts the log-odds scale to the odds scale.
3
Build a confidence interval. Compute \(e^{\beta_1 \pm z_{0.025} \cdot \text{SE}(\beta_1)}\). If the interval excludes 1, the result is statistically significant.
4
Interpret. State: "For a one-unit increase in \(x\), the odds of the outcome are multiplied by \(\text{OR}\)."

Example: Smoking and Lung Disease

A logistic regression predicting lung disease from smoking status yields:

1
The coefficient for Smoker is \(\beta_1 = 1.6\).
2
Exponentiate: \(\text{OR} = e^{1.6} \approx\) 4.95.
3
Interpretation: Smokers have approximately 5 times the odds of developing lung disease compared to non-smokers.

Example: Age and Heart Disease

A model predicting heart disease from age (in years) produces:

Per-year OR
\(e^{0.08} \approx\) 1.083: each additional year increases the odds by about 8.3%.
Per-decade OR
\(e^{0.08 \times 10} = e^{0.8} \approx\) 2.23: a 10-year increase roughly doubles the odds.

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.

1.0
Significant (\(\text{OR} > 1\))
Not significant (crosses 1) 0 5+

Why Model the Log-Odds?

1
Probability is bounded [0, 1]. A linear model for \(p\) would predict values outside this range. The logit transformation maps \((0,1)\) to \((-\infty, +\infty)\).
2
Coefficients become multiplicative. On the log-odds scale, effects are additive. Exponentiating gives a clean odds ratio interpretation.
3
Maximum likelihood estimation works well. The logistic function has nice mathematical properties that make fitting the model computationally efficient.

Common Mistakes with Odds Ratios

✕ \(\text{OR} = \text{probability}\)
An OR of 2 does not mean the probability doubles. OR describes odds, not probabilities.
✕ \(\text{OR} = \text{Relative Risk}\)
OR ≈ RR only when the outcome is rare (< 10%). For common outcomes, OR overestimates RR.
✕ Ignoring units
An OR is per one-unit increase. For age in years, \(\text{OR} = 1.08\) per year, not per decade.

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}\))?