← Glossaryodds ratio
How many times the odds change per unit of a predictor; exp of a logistic regression coefficient.
Learn it in the course
- Logistic regression and classification · Logistic regression for yes/no outcomes such as churn or conversion: odds, the odds ratio, a decision threshold, and how to measure how good the predictions are.
Odds describe how much more likely an event is than its absence: odds=1−pp. A 20% churn probability means odds of 0.2/0.8=0.25, or "1 to 4". An odds ratio compares the odds in two groups:
OR=p0/(1−p0)p1/(1−p1)=b⋅ca⋅d
The second form is for a 2×2 table, where a,b are the event / no-event counts in group 1 and c,d are the same counts in group 0. OR = 1 means no association, OR > 1 means higher odds in group 1, and OR < 1 means lower odds.
The link to logistic regression. Logistic regression models the log-odds as a straight line in the predictors. A coefficient b is the change in log-odds per one-unit increase in its predictor, so eb is the odds ratio for that unit, holding the other predictors fixed. That's why logistic models are usually reported as odds ratios.
Odds ratio vs relative risk. Relative risk (the risk ratio) compares probabilities directly: RR=p1/p0. When the outcome is rare (under roughly 10%), OR and RR are close. As the outcome becomes common, which churn and conversion within a segment often are, the OR drifts much further from 1 than the RR. So "OR = 3.5, customers are 3.5 times as likely to churn" overstates the effect. And because odds and probability aren't on a straight-line scale, the same OR shifts probability by very different amounts depending on the starting point.
From a 2×2 table. CatChow compares 100 customers who haven't ordered for 3+ months with 100 recently active ones:
- Relative risk: RR=0.60/0.30=2.0. Silent customers churn twice as often.
- Odds: 60/40=1.5 vs 30/70≈0.429.
- Odds ratio: OR=40×3060×70=12004200=3.5.
Both numbers are correct; they answer different questions. Reporting "3.5 times as likely" would overstate the effect by 75%.
From logistic regression. CatChow's churn model is ln(odds)=−2+0.8×months since last purchase. The odds ratio per month is e0.8≈2.23.
- 3 months: log-odds =−2+2.4=0.4, odds =e0.4≈1.49, p=1.49/2.49≈0.60.
- 4 months: log-odds =1.2, odds =e1.2≈3.32 (that's 1.49×2.23), p=3.32/4.32≈0.77.
The odds multiplied by 2.23, but the probability only rose from 60% to 77%, which is 1.28 times.