🏋️  Log-Odds

Log-Odds#

The logarithm of the odds, the natural scale for logistic models.

Important

✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.

What it is#

The log-odds (or logit) is the natural logarithm of the odds of an event — the ratio of its probability to its complement:

\[\text{logit}(p) = \log\!\left(\frac{p}{1 - p}\right), \qquad p = \sigma(z) = \frac{1}{1 + e^{-z}}.\]

Odds run from 0 (at \(p=0\)) through 1 (at \(p=0.5\)) to \(\infty\) (at \(p=1\)); taking the log spreads them onto the full line, from \(-\infty\) to \(+\infty\).

Why models use it#

A probability is trapped in \([0,1]\), awkward to model with a linear function; the log-odds is unbounded, so logistic regression (and the final layer of many classifiers) models the log-odds as a linear combination of features — the raw “score” before conversion.

Back to probability#

The sigmoid \(\sigma\) is the inverse of the logit — it maps a log-odds score \(z\) back to a probability. So the pipeline runs linear score → log-odds → sigmoid → classification probability → threshold → class.


Theme: Model Training & Optimization  ·  All terminology



See also

Source article Adapted (context, re-expressed) in our own words from: Log-Odds (insightful-data-lab.com).

Tags: purpose: reference topic: terminology level: intermediate