Lesson 4.2 · 9 min read · about 50 min to master at a very slow pace

Odds, Log-odds and the Sigmoid Function

Probability, odds and log-odds are three views of the same thing. How to convert between them by hand, and how the sigmoid function squashes any score into a probability.

Not startedJump to quiz

Odds: betting language

gives odds of : "3 to 1 in favour". is odds 1 (even money). is odds 0.25 ("1 to 4"). Odds run from 0 to .

Log-odds (the logit)

Taking the log stretches odds over the whole real line, which is perfect for a linear model: any value of is a valid log-odds.

Probability Odds Log-odds
0.100.111−2.20
0.200.25−1.39
0.5010
0.7531.10
0.8041.39
0.9092.20

Notice the symmetry: and have log-odds of equal size and opposite sign.

The sigmoid: back from score to probability

The inverse of the logit is the logistic (sigmoid) function:

00.250.50.751-6-4-20246score z (log-odds)probability p = σ(z)z = 0 → p = 0.5z = 2.2 → p ≈ 0.9z = −2.2 → p ≈ 0.1
Any real score maps to a probability strictly between 0 and 1. The curve is steepest at z = 0 (p = 0.5) and flattens near 0 and 1.

Conversions you must be able to do

Probability → odds → log-odds: odds .

Log-odds → probability: odds . Equivalently .

Handy values: , , , , .

Cheatsheet

Odds & log-odds

odds ; logit . .

Sigmoid

. ; .

See every cheatsheet by category →

Check your understanding

Score 75% or more to master this lesson and earn XP. Answer first, then check.

Q1calculateConvert the probability to odds and to log-odds.
Q2calculateThe log-odds are 1.1. Using , what is the probability?
Q3calculateA score is (use ). What is ?
Q4interpretOdds of 3 for an event correspond to what probability?
Q5calculate has log-odds of about 2.2. What are the log-odds of ?