
SDS 291
November 12, 2025
The type of response variable dictates the type of regression model that we build:
Note
What happens if our response variable isn’t continuous?
The Donner Party was a wagon train that departed Missouri for California in spring 1846, before becoming trapped in the Sierra Nevada mountain range during the winter of 1846–1847.
Of the 91 individuals who set out with the Donner Party:

Research Question
What characteristics might be associated with or predict survival?


A binary response variable takes on one of two values:
\(Y_i\) is the outcome of a weighted coin flip, where
\[\begin{alignat*}{2} \Pr(Y_i = 1) &= \pi \quad &&\leftarrow \text{proportion of "successes"}\\ \Pr(Y_i = 0) &= 1 - \pi \quad &&\leftarrow \text{proportion of "failures"} \end{alignat*}\]
Important properties:
Your textbook moves back and forth between two related—but not interchangeable—ways of reporting on binary data:
Ungrouped Binary Data
sex age y
Breen_Edward_ Male 13 survived
Breen_Margaret_Isabella Female 1 survived
Breen_James_Frederick Male 5 survived
Breen_John Male 14 survived
Breen_Margaret_Bulger Female 40 survived
Breen_Patrick Male 51 survived
Breen_Patrick_Jr. Male 9 survived
Breen_Peter Male 3 survived
Breen_Simon_Preston Male 8 survived
Donner_Elitha_Cumi Female 13 survived
Donner_Eliza_Poor Female 3 survived
Donner_Elizabeth_Blue_Hook Female 45 died
Donner_Frances_Eustis Female 6 survived
Donner_George Male 61 died
Donner_George_Jr. Male 9 survived
Grouped Binary Data
survived died total
1 49 42 91
\(Y_i\) is the sum of \(n\) weighted coin flips, where
Important properties:
If we know the probability of success, \(\pi\)… \[ \theta = \frac{\pi}{ 1 - \pi} \]
If we know the odds of success, \(\theta\)… \[ \pi = \frac{\theta}{1 + \theta} \]
An odds ratio is a way to express the relationship between a binary response variable \(Y\) and an explanatory variable \(x\)
Women

Men

| Success (\(Y = 1\)) | Failure (\(Y = 0\)) | |
|---|---|---|
| Group 1 (\(x = 1\)) | a | b |
| Group 2 (\(x = 0\)) | c | d |
\[\begin{align*} \widehat{\pi}(x = 1) &= \widehat{\Pr}(Y_i = 1 | x_i = 1) \\ &= \frac{a}{a + b} \\ &= \frac{\text{# successes in Group 1}}{\text{# observations in Group 1}} \end{align*}\]
\[\begin{align*} \widehat{\theta}(x = 1) &= \frac{\widehat{\Pr}(Y_i = 1 | x_i = 1)}{\widehat{\Pr}(Y_i = 0 | x_i = 1)} \\ &= \frac{a/(a+b)}{b/(a +b)} \\ &= \frac{a}{b} \\ &= \frac{\text{# successes in Group 1}}{\text{# failures in Group 1}} \end{align*}\]
…for “success” in Group 1 compared to Group 2:
\[\begin{align*} \widehat{OR} &= \frac{\widehat{\theta}(x = 1)}{\widehat{\theta}(x = 0)} \\ &= \frac{\widehat{\pi}(x = 1)/ (1 - \widehat{\pi}(x = 1))}{\widehat{\pi}(x=0)/ (1 - \widehat{\pi}(x=0) )} \\ &= \frac{ad}{bc} \end{align*}\]
Generic Interpretation
Among the subpopulation of observational units that belong to the group with \(x = x^*\), the chance (likelihood/probability) of a success is \(\widehat{\theta}\) times as large as the chance (likelihood/probability) of a failure.
Among men traveling with the Donner Party expedition, the probability of surviving the winter was 0.75 times as large as the probability of dying.
The odds of a success are \(\widehat{OR}\) times as large among the group with \(x = 1\) than among the group with \(x = 0\).
The odds of survival were 0.3 times as large among male members of the Donner party as among female members of the party.
The odds of survival were 70% smaller for men than for women.
\[ \text{Scratch Work: } (1 - 0.3) \times 100\% = 0.7\times 100\% = 70\% \]
Formal statistical inference often works with the (natural) log of the odds ratio, since its sampling distribution is approximately Normal in sufficiently large samples1


Working with the log odds ratio also allows us to convert division into subtraction (and vice versa): \[ \log(\widehat{OR}) = \log{\frac{\widehat{\theta}(1)}{\widehat{\theta}(0)}} = \log{ \widehat{\theta}(1) } - \log{ \widehat{\theta}(0) } \]
So we can find the log odds ratio by taking the difference of the log odds…
Confidence Intervals for the Odds Ratio
Given the observed data, what is a range of plausible values for the true population odds ratio?
\[ \left(e^{\log(\widehat{OR}) - z^* SE\{\log(\widehat{OR})\}}, \ e^{\log(\widehat{OR}) + z^* SE\{\log(\widehat{OR})\}}\right) \]
| Probability | Odds | Odds Ratio | |
|---|---|---|---|
| Measures | Frequency | Frequency | Association |
| Compares: | Ratio of part to whole | Ratio of success to failure | Odds of success across two groups (Group 1/Group 2) |
| Range: | \((0, 1)\) | \((0, \infty)\) | \((0, \infty)\) |
| Successes More Common: | \(\pi > 0.5\) | \(\theta > 1\) | In Group 1 when \(OR > 1\) |
| Equal Likelihood: | \(\pi = 0.5\) | \(\theta = 1\) | \(OR = 1\) |
| Failures More Common: | \(\pi < 0.5\) | \(\theta < 1\) | In Group 1 when \(OR < 1\) |

SDS 291