01 / 21
0 1

Binary Outcomes &
Log-Odds

Learn how to transform probabilities into log-odds, interpret the logit function, and understand the mathematical backbone of logistic regression.

Biostatistics

What Is a Binary Outcome?

A binary outcome is a variable that can take exactly two values: success or failure, yes or no, 1 or 0. In biostatistics, this is the most common type of response variable.

Disease Status
Positive (1) or Negative (0)
Survival
Alive (1) or Deceased (0)
Treatment
Responded (1) or Did Not (0)

From Probability to Odds

If the probability of an event is \( p \), the odds of that event are defined as the ratio of success to failure:

For example, if \( p = 0.75 \), the odds are \( \frac{0.75}{0.25} = 3 \). This means the event is 3 times more likely to happen than not.

Introducing Log-Odds (the Logit)

The log-odds, also called the logit, is simply the natural logarithm of the odds. It transforms the bounded probability scale into an unrestricted one:

\( p = 0.5 \)
Log-odds = \( \ln(1) = 0 \)
\( p = 0.9 \)
Log-odds = \( \ln(9) \approx 2.20 \)
\( p = 0.1 \)
Log-odds = \( \ln(1/9) \approx -2.20 \)

The Logit Function Visualized

4 2 0 -2 -4 0 0.5 1
\(p\) (probability)
\(\text{logit}(p)\)
\(\text{logit}(0.5) = 0\)
→ -∞ → +∞

The Inverse Logit: Back to Probability

Given a log-odds value, we can convert back to a probability using the logistic function (also called the inverse logit or sigmoid):

1
logit \( \to \) odds: Exponentiate: \( \text{odds} = e^{\text{logit}} \)
2
odds \( \to \) probability: Divide: \( p = \frac{\text{odds}}{1 + \text{odds}} \)

The Logistic Regression Model

In logistic regression, we model the log-odds of the outcome as a linear combination of predictors:

\( \beta_0 \)
The intercept: the log-odds when all predictors are 0
\( \beta_j \)
The change in log-odds for a 1-unit increase in \( x_j \)

Interpreting \( \beta \) Coefficients

Each coefficient \( \beta_j \) has two interpretations depending on the scale you use:

1
Log-odds scale: A 1-unit increase in \( x_j \) changes the log-odds by exactly \( \beta_j \).
2
Odds scale: A 1-unit increase in \( x_j \) multiplies the odds by \( e^{\beta_j} \). This is the odds ratio (OR).
3
Probability scale: The effect is nonlinear: the same \( \beta \) produces different probability changes depending on where you start.

Probability vs. Odds vs. Log-Odds

Property Probability Odds Log-Odds
Symbol \( p \) \( \frac{p}{1-p} \) \( \ln\!\left(\frac{p}{1-p}\right) \)
Range [0, 1] [0, +∞) (-∞, +∞)
At even chance 0.5 1 0
Linear model? No No Yes
Symmetric? No No Yes

The Sigmoid Curve

0 0.5 1 -6 -3 0 3 6
\(\text{log-odds}\)
\(p\)
\(p = 0.5\)

How to Convert Between Scales

1
Start with probability \( p \). Confirm it lies in \( (0, 1) \).
2
Compute odds: \( \text{odds} = \frac{p}{1 - p} \).
3
Compute log-odds: \( \text{logit} = \ln(\text{odds}) \).
4
To reverse: exponentiate to get odds, then \( p = \frac{\text{odds}}{1 + \text{odds}} \).
5
Interpret \( \beta \): exponentiate the coefficient to get the odds ratio \( e^\beta \).

Example 1: Probability to Log-Odds

A medical test has a positive predictive value of \( p = 0.80 \). What are the odds and log-odds?

1
Odds: \( \frac{0.80}{1 - 0.80} = \frac{0.80}{0.20} = \) 4
2
Log-odds: \( \ln(4) \approx \) 1.386

Example 2: Log-Odds to Probability

A logistic regression model gives a log-odds of \( -1.5 \) for a patient. What is their probability of disease?

1
Exponentiate: \( e^{-1.5} \approx 0.2231 \) (these are the odds)
2
Convert to probability: \( p = \frac{0.2231}{1 + 0.2231} = \frac{0.2231}{1.2231} \approx \) 0.182

Example 3: Interpreting an Odds Ratio

A study on heart disease finds that the coefficient for smoking status is \( \beta = 0.85 \). Interpret this result.

1
Odds ratio: \( e^{0.85} \approx \) 2.34
2
Interpretation: Smokers have 2.34 times the odds of heart disease compared to non-smokers, holding other variables constant.
3
Percentage increase: \( (2.34 - 1) \times 100 = \) 134% higher odds for smokers.

Common Mistakes to Avoid

✕ Confusing Odds with Probability
Odds of \(3\) does not mean 300% probability. It means \( p = 3/4 = 0.75 \).
✕ Linear Probability Interpretation
A unit increase in \( x \) does not add a fixed amount to the probability. The effect depends on the starting \( p \).
✕ Forgetting to Exponentiate
Coefficients from logistic regression are on the log-odds scale. To get the odds ratio, you must compute \( e^\beta \).

Summary: Conversion Cheat Sheet

From To Formula
Probability Odds \( \frac{p}{1-p} \)
Odds Probability \( \frac{\text{odds}}{1+\text{odds}} \)
Odds Log-Odds \( \ln(\text{odds}) \)
Log-Odds Odds \( e^{\text{logit}} \)
Coefficient \( \beta \) Odds Ratio \( e^{\beta} \)
Log-Odds Probability \( \frac{1}{1+e^{-\text{logit}}} \)

Question 1 of 5

If \( p = 0.2 \), what is the log-odds (logit)?

Question 2 of 5

A logistic regression gives \( \text{log-odds} = 0 \) for a patient. What is the patient's probability?

Question 3 of 5

If a logistic regression coefficient \( \beta_1 = 1.1 \), what is the odds ratio?

Question 4 of 5

Which scale is symmetric around zero and spans \( (-\infty, +\infty) \)?

Question 5 of 5

A researcher says: "The coefficient \( \beta = 0.5 \) means the probability increases by \(0.5\) for every unit increase." What is wrong with this interpretation?