In logistic regression, what is the difference between odds and probability?
answer
- one scale is bounded, one is not
- compare event against non-event
- divide by the complement, not the total
- 0.8 probability becomes 4-to-1
- logit is its logarithm
basics
~10 sProbability is p, a number between 0 and 1. Odds is p/(1-p), the event weighed against its complement, and runs from 0 to infinity. A probability of 0.8 is odds of 4, or 4-to-1.
solid answer
~40 sProbability answers "out of everything, how often does this happen?" and is bounded in [0, 1]. Odds answers "how often does it happen compared with not happening?" and equals `p / (1 - p)`, which runs from 0 to infinity with 1 meaning even chance. A probability of 0.8 is odds of 4 (four times as often as not); a probability of 0.2 is odds of 0.25. Going back is `p = odds / (1 + odds)`. Logistic regression models the **log** of the odds — the logit, `log(p / (1 - p))` — because that quantity is unbounded in both directions and can therefore be written as a plain linear function of the predictors, while the implied probability is automatically squeezed back into (0, 1).
go deeper
Be ready to state p/(1-p) and convert both directions on the spot, including simple cases like 0.75 giving odds of 3. Say out loud that odds have no upper bound.
Explain why the model is written on the log-odds scale: the linear predictor is unbounded, and the logit is the transformation that makes that safe. Show the inverse-logit form as well.
Show judgment about which scale you speak in. Log-odds for the fit, odds ratios for the model summary, probabilities for the audience, and a conversion whenever you cross between them.
Own the reporting convention for the team. Decide which scale appears in dashboards and decision memos so that different analysts do not quote odds and probabilities interchangeably in the same review.
## Two ways to express the same chance A probability `p` is a share of a whole: out of all accounts, what fraction churn? It is bounded, `0 <= p <= 1`. Odds re-express the same chance as a ratio of two complementary counts: how often the event happens versus how often it does not. ``` odds = p / (1 - p) p = odds / (1 + odds) ``` The two carry identical information — either can be recovered from the other — but they live on different scales. | Probability | Odds | Spoken | |---|---|---| | 0.05 | 0.0526 | about 1-to-19 against | | 0.20 | 0.25 | 1-to-4 | | 0.50 | 1 | even | | 0.80 | 4 | 4-to-1 on | | 0.99 | 99 | 99-to-1 on | Notice the asymmetry of the odds scale. Probability is symmetric around 0.5; odds are symmetric around 1, but multiplicatively — 0.25 and 4 are mirror images (each is the reciprocal of the other), while 0.2 and 0.8 are mirror images additively. ## Why odds have an unbounded range As `p` approaches 1, the denominator `1 - p` approaches 0 and the odds grow without limit. As `p` approaches 0, the odds approach 0 but never go negative. So odds occupy `(0, infinity)` — half of the real line. Taking a logarithm finishes the job: ``` logit(p) = log(p / (1 - p)) ``` The logit maps `(0, 1)` onto the entire real line: `logit(0.5) = 0`, `logit(0.8) = log 4 = 1.386`, `logit(0.2) = log 0.25 = -1.386`. It is symmetric in the sense that `logit(1 - p) = -logit(p)`. ## Why the model needs the unbounded scale A linear predictor `b0 + b1*x1 + b2*x2 + ...` can take any real value: push `x1` far enough and it will exceed 1 or drop below 0. If you set that expression equal to a probability, the model is making claims it cannot honour. Setting it equal to the **logit** instead is safe, because every real number corresponds to exactly one probability: ``` log(p / (1 - p)) = b0 + b1*x1 + ... p = 1 / (1 + exp(-(b0 + b1*x1 + ...))) ``` The second line is the logistic (inverse-logit) function — the familiar S-curve that flattens as it approaches 0 and 1 and is steepest at `p = 0.5`. This is what the "logit link" means: a function applied to the mean of the response so that the transformed mean is linear in the predictors. ## Consequences you should be able to state - **Additive on the log-odds scale, multiplicative on the odds scale.** Adding a coefficient to the linear predictor multiplies the odds by `exp(coefficient)`. That is the whole reason odds ratios are the natural currency of a logistic model. - **A zero linear predictor means even chance.** If the linear predictor evaluates to 0, the odds are 1 and the probability is 0.5. The intercept is the log-odds when every predictor is 0. - **The same change in log-odds is not the same change in probability.** Moving the logit from 0 to 0.5 moves probability from 0.500 to 0.622 (about 12 points). Moving it from 3 to 3.5 moves probability from 0.953 to 0.971 (under 2 points). The curve saturates. - **Odds are not percentages.** "Odds of 4" is not "a 4% chance" and not "a 400% chance"; it is a probability of 0.8. Confusing the two is the single most common slip in interview answers. ## When each scale is the right one to speak Inside the model, log-odds are the working scale — that is where the linearity lives. Odds and odds ratios are the reporting scale for statisticians and for the model's own summary table. Probabilities and differences in probabilities are the scale for everyone else: a stakeholder asking "how much more likely is churn?" is asking about probability, and answering in odds without converting is a reliable way to be misunderstood. A final vocabulary note: gamblers usually quote odds *against* ("5 to 1 against"), which is `(1 - p) / p`, the reciprocal of the statistical convention. Statistics uses odds *for* the event. If someone quotes odds and you cannot tell which convention they mean, ask before converting.
- Why does logistic regression model log-odds rather than probability directly?A linear predictor can take any real value, so equating it with a probability lets the model claim values outside [0, 1]. The logit maps (0, 1) onto the whole real line, so every possible value of the linear predictor corresponds to exactly one legitimate probability, and the inverse-logit curve flattens as it nears the boundaries instead of crossing them.
- What are the odds and log-odds when the probability is exactly 0.5?The odds are 1 (0.5 divided by 0.5) and the log-odds are 0. That is why a linear predictor evaluating to 0 means an even chance, why an odds ratio of 1 means no effect, and why a positive log-odds value corresponds to a probability above 0.5.
- How do you convert a predicted log-odds of -1.1 back into a probability?Exponentiate to get odds, then divide by one plus the odds: exp(-1.1) is about 0.333, so p = 0.333 / 1.333, which is about 0.25. Equivalently apply the logistic function 1 / (1 + exp(1.1)). A negative log-odds always maps below 0.5.
Probability is the batting average — hits divided by at-bats. Odds is hits divided by outs. Same performance, different fraction, and only one of them can grow past 1.
saying these in an interview costs you the question
- Says odds and probability are the same thing
- Reports odds of 4 as a 4 percent chance
- Thinks odds must lie between 0 and 1
- Cannot convert odds back into a probability
- Confuses the logit with the logistic (inverse) function