| Model | BMI slope | 95% CI | Adj R² |
|---|---|---|---|
| Simple (BMI only) | 1.93 | 1.39 – 2.47 | 0.197 |
| Adjusted (+ Age, Sex) | 2.01 | 1.5 – 2.53 | 0.275 |
From Measuring Association to Predicting Outcomes
A research team at JIPMER, Puducherry studies 200 adults at a health screening camp.
Questions that cascade:
In words: As one variable goes up, does the other tend to go up, go down, or show no pattern?
\[r = \frac{\text{Covariance}(x, y)}{SD_x \times SD_y}\]
| Range | Meaning |
|---|---|
| r = +1 | Perfect positive linear |
| r = 0 | No linear association |
| r = −1 | Perfect negative linear |
Two versions: Pearson (for continuous, linear) and Spearman (for ordinal, or when outliers/skew present)
r = 0.448 — moderate positive correlation
| Feature | Pearson (r) | Spearman (rₛ) |
|---|---|---|
| Measures | Linear association | Monotonic association |
| Data | Continuous, ~normal | Ordinal or skewed |
| Outlier-sensitive? | Yes | No (uses ranks) |
| Use when | Scatter looks linear, no extreme outliers | Ranks, ordinal data, non-linear monotonic |
Rule of thumb: If in doubt, compute both. If they agree, report Pearson. If they disagree substantially, investigate the scatter plot for non-linearity or outliers.
Ice cream sales ↑ and drowning deaths ↑
r ≈ 0.8 — very strong!
Should we ban ice cream?
. . .
No. Lurking variable = temperature
Sources of spurious association:
A strong r means variables move together — not that one causes the other.
In words: Predicted outcome = Baseline + (Rate of change × Predictor) + Error
\[y = \beta_0 + \beta_1 x + \varepsilon\]
Least squares finds β₀ and β₁ that minimise \(\sum(y_i - \hat{y}_i)^2\)
Slope: Each 1 kg/m² BMI increase → 1.9 mg/dL higher FBS
In words: What fraction of the total scatter in y is captured by the regression line?
\[R^2 = 1 - \frac{\sum(y_i - \hat{y}_i)^2}{\sum(y_i - \bar{y})^2}\]
For simple regression: \(R^2 = r^2\)
Our model: R² = 0.201 → BMI explains 20.1% of FBS variation
The remaining 79.9% is due to age, diet, genetics, measurement error, etc.
Check with diagnostic plots:
| Problem | Sign | Fix |
|---|---|---|
| Non-linear | Curved residuals | Transform x or y; polynomial term |
| Non-normal residuals | Q-Q deviates at tails | Transform y; often OK if n > 30 |
| Heteroscedasticity | Fan-shaped residuals | Log-transform y; robust SE |
| Influential outlier | Cook’s distance > 0.5 | Investigate; report with and without |
Question: Is the BMI–FBS association genuine, or confounded by age?
\[\text{FBS} = \beta_0 + \beta_1 \times BMI + \beta_2 \times Age + \beta_3 \times Sex + \varepsilon\]
In words: Each coefficient tells you the effect of that variable while all others are held fixed.
| Model | BMI slope | 95% CI | Adj R² |
|---|---|---|---|
| Simple (BMI only) | 1.93 | 1.39 – 2.47 | 0.197 |
| Adjusted (+ Age, Sex) | 2.01 | 1.5 – 2.53 | 0.275 |
If the slope changes after adjustment → confounding was present.
When the outcome is yes/no (diabetes, death, readmission), linear regression breaks down. Logistic regression models the log-odds:
\[\ln\left(\frac{p}{1-p}\right) = \beta_0 + \beta_1 x\]
The odds ratio for a 1-unit increase in x:
\[OR = e^{\beta_1}\]
Connection to Module 10: The 2×2 table OR is a special case. Logistic regression is the multivariable extension.
The sigmoid curve — probability bounded between 0 and 1
| Scenario | Method |
|---|---|
| Strength of association (two continuous)? | Pearson r |
| Ordinal data or outliers? | Spearman rₛ |
| Predict continuous outcome (one predictor)? | Simple linear regression |
| Adjust for confounders? | Multiple linear regression |
| Predict binary outcome (yes/no)? | Logistic regression |
| Predict time-to-event? | Cox regression (Module 12) |
Biostatistics for Clinicians | Module 11