At high BMI values, the linear fit exceeds 1. The logistic fit stays within bounds.
HRS data, n = 477. Chair difficulty (R16CHAIR): 0 = No, 1 = Yes.
HRS data, n = 477. Linear regression on measured BMI (R16PMBMI).
Binary outcomes vary most when Yes & No are equally likely.
Yes or No outcomeYes varies with the predictors
| Response | Recorded Value |
Number of People |
|---|---|---|
| Yes | 1 | 263 |
| No | 0 | 237 |
Note that each person’s response is still either 0 or 1.
Probability compares the people who answered Yes with everyone.
Yes responses among these 500 peopleProbability answers: “What proportion of the whole group said Yes?”
Odds compare the people who answered Yes with those who answered No.
Yes responsesNo responses, rather than all 500 peopleThe data haven’t changed; just the denominator has.
Equivalently, we could convert probability to odds
Yes is 52.6%No: (1 – .536 =) 47.4%.Yes by the probability of No:
This gives the same answer as comparing 263 Yes with 237 No.
The software takes the natural logarithm of the odds.
| Probability | Odds | Log Odds |
|---|---|---|
| 52.6% | 1.11 | 0.104 |
| Odds | Log Odds (Logit) |
|---|---|
| 0.10 | −2.30 |
| 0.20 | −1.61 |
| 0.25 | −1.38 |
| 0.33 | −1.11 |
| 0.50 | −0.69 |
| 1.00 | 0.00 |
| 2.00 | 0.69 |
| 3.00 | 1.10 |
| 4.00 | 1.38 |
| 5.00 | 1.61 |
| 10.00 | 2.30 |
| Odds | Log Odds | Absolute Value of Change in Odds |
|---|---|---|
| 0.125 | −2.07 | 0.69 |
| 0.25 | −1.38 | 0.69 |
| 0.50 | −0.69 | 0.69 |
| 1.00 | 0.00 | 0.69 |
| 2.00 | 0.69 | 0.69 |
| 4.00 | 1.38 | 0.69 |
| 8.00 | 2.07 | 0.69 |
For our running example, reversing the steps gives:
| Step | Result |
|---|---|
| Begin with the log odds | About −1.39 |
| Undo the logarithm | Odds of 0.25: 1 Yes for every 4 No |
| Count Yes as a share of everyone | 1 Yes among 5 people |
| Express that share as a probability | 20% |
| What We Observe | What the Model Estimates |
|---|---|
Each person’s Yes or No |
Probability of Yes for their predictor values |
| Recorded as 1 or 0 | Built on the log-odds scale |
| Used to estimate the model | Converted back to a probability for interpretation |
Software can express a predictor’s contribution as an odds ratio.
(Other modeled predictors are held constant.)
| Starting probability | Starting odds | Doubled odds | New probability |
|---|---|---|---|
| .10 | .111 | .222 | .182 |
| .50 | 1.000 | 2.000 | .667 |
A fixed odds ratio can correspond to different probability differences.
A constant effect on the odds produces a changing effect on probability.
Suppose each one-unit predictor increase raises the odds by 50%.
| Starting Probability | New Probability | Increase |
|---|---|---|
| 5% | 7.3% | 2.3 percentage points |
| 50% | 60.0% | 10.0 percentage points |
| 95% | 96.6% | 1.6 percentage points |
The odds effect is identical in all three rows.
Illustrative probabilities, with other predictors held constant.
To raise probability by 10 percentage points:
| Probability Change | Required Predictor Increase |
|---|---|
| 50% to 60% | 1 unit |
| 5% to 15% | About 3 units |
| 85% to 95% | About 3 units |
Moving the same vertical distance takes more horizontal movement near the ends of the curve.
Same illustrative model: a 50% increase in odds per predictor unit.
Question: Which characteristics are associated with difficulty getting up from a chair?
R16CHAIR.
No = 0, Yes = 1.| Case Processing Summary |
Cases | Percent |
|---|---|---|
| Included | 469 | 93.8% |
| Missing | 31 | 6.2% |
| Total | 500 | 100.0% |
What information might differ between included and excluded participants?
| Predictor | How SPSS modeled it |
|---|---|
| Gender | Male = 1, Female = 2(Based on HRS’s coding scheme.) |
| Highest educational degree | One numeric coefficient |
| BMI and Neuroticism | One coefficient per scale unit |
Note one-unit changes mean very different things here.
Analyze > Regression > Binary LogisticEnter for a prespecified predictor set95% confidence intervals for Exp(B)The overall model test gives χ² = 89.95, with 4 dfs and p < .001.
Attached output: Omnibus Tests of Model Coefficients.
| Predictor | Adjusted OR |
95% CI | p |
|---|---|---|---|
| Education, per code unit | 0.77 | 0.69 – 0.86 | < .001 |
| BMI, per unit | 1.10 | 1.06 – 1.13 | < .001 |
| Neuroticism, per unit | 2.05 | 1.49 – 2.82 | < .001 |
| Female vs. male | 1.15 | 0.76 – 1.74 | .516 |
ORs from Variables in the Equation. Wald confidence intervals calculated from the stored coefficients and standard errors.
BMI: Each one-unit increase corresponds to about 9.8% higher odds of difficulty, adjusting for the other predictors.
Female vs. male: adjusted OR = 1.15, 95% CI [0.76, 1.74], p = .516.
| Output | Result | Interpretation |
|---|---|---|
| Cox-Snell pseudo-R² | .175 | An index of model fit. Summarizes improvement over the intercept-only model; its maximum is below 1. |
| Nagelkerke pseudo-R² | .233 | An index of model fit. Rescales Cox-Snell to span between 0 & 1 |
| Hosmer–Lemeshow | χ² = 7.38 df = 8 p = .497 |
No signigicant model misfit to the data |
| Outcome Level |
Observed* | PredictedNo |
PredictedYes |
|---|---|---|---|
No |
228 | 148 | 80 |
Yes |
241 | 77 | 164 |
* After missing data
No.Yes.No, predicted probability .884 (88.4% change of being Yes).Among 469 complete cases, the model improved fit over the intercept-only model, χ² = 89.95, df = 4, p < .001. Adjusting for education, Neuroticism, and gender, each one-unit increase in BMI was associated with higher odds of difficulty getting up from a chair (OR = 1.10, 95% CI [1.06, 1.13]).
At a .50 cutoff, sensitivity was 68.0% and specificity was 64.9% in the analysis sample. Predictive performance requires validation.
Worked results: attached Output1(1).spv, Logistic Regression section. Selected tables have been condensed for teaching.
The End
ln(OR) = ∞