What is a Hazard Ratio?
In survival analysis—a statistical method used to study time-to-event data (e.g., time until death, disease recurrence, or machine failure)—the hazard ratio (HR) is a key measure of relative risk between groups.
Core Concepts
-
Hazard function (h(t)): The instantaneous risk (or "hazard") of the event occurring at time t, conditional on having survived up to t. It's like the failure rate at a specific moment, given no prior failure.
- Mathematically: ( h(t) = \lim_{\Delta t \to 0} \frac{P(t \leq T < t + \Delta t \mid T \geq t)}{\Delta t} ), where T is the event time.
-
Hazard Ratio (HR): The ratio of the hazard functions between two groups (or levels of a covariate) at any time t:
[
HR = \frac{h(t \mid \text{Group 1})}{\ h(t \mid \text{Group 0})}
]
- It assumes the proportional hazards (PH) assumption: The ratio is constant over time (hazards are proportional).
What Does It Represent?
-
Relative risk multiplier: HR quantifies how much the hazard (risk) in one group differs from a reference group.
| HR Value | Interpretation |
|---|
| HR > 1 | Increased hazard in Group 1 (e.g., 20% higher risk if HR=1.2). Events happen faster/worse outcomes. |
| HR = 1 | No difference in hazard (risks identical). |
| HR < 1 | Decreased hazard in Group 1 (e.g., 30% lower risk if HR=0.7). Events delayed/better outcomes. |
-
It's multiplicative: If baseline hazard is 0.1, an HR=2 means hazard=0.2 in the treatment group.
-
Unlike odds ratios, HR is time-dependent but constant under PH.
How Is It Used in Survival Analysis?
HR is central to models like the Cox proportional hazards model, the most common semi-parametric approach:
[
h(t \mid X) = h_0(t) \exp(\beta X)
]
- ( h_0(t) ): Baseline hazard (unspecified shape).
- ( X ): Covariates (e.g., treatment=1/0, age, sex).
- ( \beta ): Log-HR; HR = ( e^\beta ).
Steps in Practice:
- Fit the model: Estimate ( \beta ) via partial likelihood (ignores ( h_0(t) )).
- Compute HR: ( e^\beta ) for each covariate, with 95% confidence intervals (CI) and p-values.
- Test PH assumption: Using Schoenfeld residuals or log-log survival plots.
- Visualize: Kaplan-Meier curves (non-parametric survival plots) show group differences; HR complements by quantifying them.
Example in Clinical Trials:
- Study: Drug vs. placebo for cancer survival.
- Result: HR=0.65 (95% CI: 0.48–0.88, p=0.006).
- Interpretation: Drug reduces death hazard by 35% vs. placebo (statistically significant). Median survival might be 18 months (drug) vs. 12 months (placebo).
Limitations:
- Assumes PH (test it!).
- Doesn't capture absolute risk (use with survival curves).
- Censoring (incomplete data) is handled, but informative censoring biases results.
HRs power evidence-based decisions in medicine, engineering, and economics by distilling complex time-to-event data into actionable relative risks. If you have data or a specific study, I can dive deeper!