Skip to content

Odds ratio

Compare event odds across two groups, distinguish odds ratios from risk ratios, and interpret a loan-default table and logistic-regression coefficient.

An odds ratio compares the odds of the same event in two groups. If a credit analyst reports a default odds ratio of 0.444 for group A relative to group B, A has about 44.4% of B's default odds. That statement alone does not say that A has 44.4% of B's default probability.
Write pA=P(D∣A)p_A=\mathbb{P}(D\mid A) and pB=P(D∣B)p_B=\mathbb{P}(D\mid B) for the conditional probabilities of default over the same horizon. For 0<pA,pB<10<p_A,p_B<1,
ORA:B=pA/(1−pA)pB/(1−pB).\mathrm{OR}_{A:B} =\frac{p_A/(1-p_A)}{p_B/(1-p_B)}.

It is dimensionless. An odds ratio of 1 means equal event probabilities, above 1 means higher odds in A, and below 1 means lower odds in A. The order of the groups and the definition of the event belong in the statement of the result.

Two loan cohorts, three answers

Consider two synthetic complete cohorts, each containing 100 loans followed for one year, with every loan's default outcome known. These invented counts illustrate arithmetic; they are not market estimates.
One-year outcomeCohort ACohort B
Default1020
No default9080
Total loans100100

A's default probability is 10/100=10%10/100=10\%, but its default odds are 10/90=1/910/90=1/9. B's default probability is 20%20\%, and its default odds are 20/80=1/420/80=1/4. Consequently,

ORA:B=10/9020/80=10×8090×20=49≈0.444.\mathrm{OR}_{A:B}=\frac{10/90}{20/80} =\frac{10\times80}{90\times20} =\frac49\approx0.444.
A has about 55.6% lower default odds than B. For the same table, the risk ratio, which compares probabilities, is 0.10/0.20=0.500.10/0.20=0.50: A's default probability is half B's. The risk difference is 0.10−0.20=−0.100.10-0.20=-0.10, or 10 percentage points lower. These measures answer different questions; 55.6% lower odds is not a 55.6% reduction in default probability.
Synthetic one-year loan cohorts: A has 10 defaults and 90 nondefaults; B has 20 defaults and 80 nondefaults. A versus B odds ratio is 4/9, risk ratio is 1/2 and risk difference is minus 10 percentage points.
Synthetic one-year loan cohorts: A has 10 defaults and 90 nondefaults; B has 20 defaults and 80 nondefaults. A versus B odds ratio is 4/9, risk ratio is 1/2 and risk difference is minus 10 percentage points.
Original synthetic complete-cohort comparison, with 100 loans in each group and the same one-year default definition. Odds use nondefaults as the denominator; risks use all loans.
Reversing the reference group gives ORB:A=9/4=2.25\mathrm{OR}_{B:A}=9/4=2.25. Keeping the groups fixed but changing the event to no default also takes the reciprocal. An unlabelled odds ratio is therefore easy to misread.

Reading a two-by-two table

Let the counts be aa defaults and bb nondefaults in A, and cc defaults and dd nondefaults in B. With all four cells positive,

ORA:B=a/bc/d=adbc.\mathrm{OR}_{A:B}=\frac{a/b}{c/d}=\frac{ad}{bc}.
This is the cross-product ratio. In a fully observed cohort, the corresponding risks are a/(a+b)a/(a+b) and c/(c+d)c/(c+d); using those denominators produces the risk ratio instead.
The sampling design matters. If a study deliberately selects defaulted loans and nondefaulted controls, its chosen mix of cases and controls generally cannot reveal population default probabilities. In a simple unmatched design, if selection probabilities depend only on default status, the population odds ratio is preserved in the selected distribution: the two outcome-specific selection factors cancel. The sample ratio then estimates that parameter. That algebra does not validate a biased control sample. Matched studies and other sampling schemes require their corresponding analysis; a selected sample's raw default fraction is not automatically a population default risk. CDC's comparison of association measures explains the standard cohort versus case-control distinction.

For observed data, the computed ratio is an estimate. A small table can be very uncertain even when its ratio looks large. Zero cells can give zero, an infinite boundary value or an undefined ratio, depending on which cells vanish. Do not silently add a pseudocount to every cell: any correction, exact procedure or penalised model changes the analysis and needs an explicit justification.

Why a logistic coefficient becomes an odds ratio

A simple logistic regression writes
log⁡p(x)1−p(x)=β0+β1x.\log\frac{p(x)}{1-p(x)}=\beta_0+\beta_1x.
Increasing xx by one unit changes log-odds by β1\beta_1, so it multiplies odds by eβ1e^{\beta_1}. With an indicator x=1x=1 for A and x=0x=0 for B, eβ1e^{\beta_1} is the model's A-to-B odds ratio. With additional covariates, this interpretation holds at fixed values of those covariates, provided the model has the stated additive form without interactions involving xx. Adjusted and raw table odds ratios need not agree. UCLA's coefficient interpretation derives this exponentiation.

An odds ratio still needs a baseline probability to become a probability forecast. If the odds ratio is θ\theta and B's probability is pBp_B, then

pA=θpB1−pB+θpB.p_A=\frac{\theta p_B}{1-p_B+\theta p_B}.

Substituting θ=4/9\theta=4/9 and pB=0.20p_B=0.20 recovers pA=0.10p_A=0.10. The distinction from a risk ratio can also be seen directly:

ORA:B=pApB1−pB1−pA.\mathrm{OR}_{A:B} =\frac{p_A}{p_B}\frac{1-p_B}{1-p_A}.
When both event probabilities are small, the second factor is close to 1, so the odds ratio approximates the risk ratio. This is an approximation with a baseline-dependent error, not a permission to relabel every odds ratio as relative risk.
Finally, an odds ratio measures association. Different leverage, collateral, underwriting or macroeconomic exposure could explain the cohort contrast. Neither the table nor exponentiating a fitted coefficient establishes that changing group membership would cause the reported change in default risk.
To build the model behind the coefficient, continue to Logistic Regression and Maximum Likelihood (public preview; full lesson requires membership).

Sources

Last updated
  • odds
  • probability
  • credit risk
  • logistic regression
← Back to the glossaryBack to top ↑