Biostatistics • Regression & Modeling

Hazard & Hazard Ratios — Hazard and hazard ratio concepts (intro)

Understanding instantaneous event rates and their ratios to compare survival experiences across groups.

A scatter plot connecting biological data with a DNA strand and health signal.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The study of time-to-event data — how long until something happens — has roots stretching back centuries. Early actuaries and demographers grappled with mortality tables and life expectancy, but it was not until the twentieth century that the mathematical machinery for analyzing survival data matured into a rigorous statistical discipline. The central challenge in survival analysis is that not every subject's event time is fully observed: patients drop out of clinical trials, individuals are still alive at the study's close, or subjects are lost to follow-up. This phenomenon, known as censoring, renders ordinary regression techniques inadequate and demands specialized tools — chief among them, the hazard function and the hazard ratio.

1662 • Graunt's Life Table

John Graunt published one of the first known life tables in his "Natural and Political Observations Made upon the Bills of Mortality," laying groundwork for quantifying mortality rates over time.

1958 • Kaplan–Meier Estimator

Edward Kaplan and Paul Meier introduced the product-limit estimator for the survival function, providing a nonparametric method to handle censored observations gracefully.

1972 • Cox Proportional Hazards Model

Sir David Cox proposed the semi-parametric proportional hazards model, enabling researchers to estimate hazard ratios while adjusting for covariates — without specifying the baseline hazard.

1980s–Present • Widespread Clinical Adoption

Hazard ratios became the standard effect measure in randomized controlled trials for cancer, cardiovascular disease, and other conditions, reported prominently in FDA submissions and landmark publications.

At its core, the question that the hazard function addresses is deceptively simple: given that a subject has survived up to a certain moment, what is the instantaneous rate at which the event is about to occur? And the hazard ratio extends this question to a comparative one: how does this instantaneous risk differ between two groups, such as a treatment arm and a control arm in a clinical trial? Understanding these concepts is essential before diving into Cox regression and more advanced survival modeling techniques.

SECTION 2

Core Principles & Definitions

Before working with hazard ratios in regression models, it is essential to build a precise understanding of several interrelated functions that describe the distribution of event times. These functions — the survival function, the hazard function, and the cumulative hazard — each illuminate a different facet of the same underlying stochastic process. Together, they provide a complete characterization of time-to-event data and enable meaningful comparisons between populations.

1

Survival Function S(t)

The probability that a subject survives beyond time t. Formally, S(t) = P(T > t). It starts at 1 and decreases monotonically toward 0, capturing the overall pattern of event occurrence over time.
2

Hazard Function h(t)

The instantaneous rate of event occurrence at time t, conditional on survival to that moment. It is not a probability (it can exceed 1) but rather a rate — events per unit time among those still at risk.
3

Cumulative Hazard H(t)

The integral of the hazard function from 0 to t, representing the accumulated risk over time. Related to survival by S(t) = exp(−H(t)). Useful for model diagnostics and graphical checks.
4

Hazard Ratio (HR)

The ratio of hazard functions between two groups: HR = h₁(t) / h₀(t). Under the proportional hazards assumption, this ratio is constant over time, providing a single summary of relative risk.
5

Censoring

Occurs when the exact event time is unknown — the subject is only known to have survived beyond a certain point. Right-censoring (the most common form) arises from study termination, loss to follow-up, or competing events.
✦

KEY TAKEAWAY

Think of the hazard function like the speedometer on a car during a road trip: it tells you how fast you are traveling (i.e., how rapidly events are occurring) at each instant, not the total distance covered. The survival function is like the remaining fuel in the tank — it tracks how much "survival" is left. The hazard ratio, then, is analogous to comparing the speedometers of two cars on the same road: if one reads consistently 1.5× the other, events are occurring 50% faster in one group relative to the other, at every point along the journey.

SECTION 3

Visual Explanation — Hazard and Survival Curves

Visualizing the relationship between the survival function and the hazard function is invaluable for developing intuition. The diagram below presents two panels. The left panel shows two Kaplan–Meier-style survival curves for a treatment group and a control group. The right panel shows the corresponding hazard functions, illustrating how the instantaneous event rates differ between the groups over time. When the hazard ratio is constant, the hazard curves maintain a fixed vertical ratio at every time point.

Survival Function S(t)Hazard Function h(t)1.00.750.500.250.002468Time (years)TreatmentControl0.40.30.20.10.002468Time (years)HR = 2.0hTreatmentControl
Left panel: survival curves for treatment (solid green) and control (dashed red) groups. The treatment group retains higher survival probabilities at all time points. Right panel: constant hazard functions for both groups. The control hazard (0.2) is twice the treatment hazard (0.1), yielding a hazard ratio of 2.0 — the vertical gap (gold dashed line) remains proportionally constant.

In the left panel, observe that the treatment group's survival curve declines more slowly than the control group's, reflecting a lower hazard. The right panel makes this relationship explicit: because we are illustrating a scenario with constant (i.e., exponential) hazards, the two horizontal lines maintain a fixed ratio over all time points. This constancy is the visual hallmark of the proportional hazards assumption. When this assumption holds, a single number — the hazard ratio — fully summarizes the relative difference in event rates between the groups.

SECTION 4

Mathematical Framework

Let T be a continuous, non-negative random variable representing the time until an event of interest occurs. The distribution of T can be equivalently characterized by its probability density function f(t), cumulative distribution function F(t), survival function S(t), or hazard function h(t). In survival analysis, the hazard function is the most natural parameterization because it directly expresses the risk dynamics over time and connects seamlessly to regression modeling.

HAZARD FUNCTION

h(t)=lim[Δt→0]P(t≤T<t+Δt∣T≥t)/Δt=f(t)/S(t)h(t) = lim[Δt→0] P(t ≤ T < t + Δt | T ≥ t) / Δt = f(t) / S(t)

h(t) = instantaneous event rate at time t among survivors; f(t) = probability density function; S(t) = P(T > t) = survival function. Note h(t) ≥ 0 but is unbounded — it is a rate, not a probability.

CUMULATIVE HAZARD

H(t)=∫0th(u)du=−lnS(t)H(t) = ∫₀ᵗ h(u) du = −ln S(t)

The cumulative hazard aggregates instantaneous risk from 0 to t. Inverting gives the fundamental identity: S(t) = exp(−H(t)). This identity links survival probabilities to hazard directly.

HAZARD RATIO

HR=h1(t)/h0(t)HR = h₁(t) / h₀(t)

h₁(t) is the hazard in the treatment (or exposed) group; h₀(t) is the hazard in the reference (control) group. If HR < 1, the treatment reduces the event rate; HR = 1 implies no difference; HR > 1 implies the treatment increases the event rate.

PROPORTIONAL HAZARDS ASSUMPTION

h(t∣X)=h0(t)×exp(β1X1+β2X2+…+βpXp)h(t | X) = h₀(t) × exp(β₁X₁ + β₂X₂ + … + βₚXₚ)

In the Cox model, the hazard for an individual with covariates X is the product of an unspecified baseline hazard h₀(t) and an exponential term. The hazard ratio for a one-unit increase in Xⱼ is exp(βⱼ), which is constant over time — hence "proportional hazards."

⚠

Important Distinction

The hazard ratio is often informally called a "relative risk," but it is technically a ratio of instantaneous rates, not a ratio of cumulative probabilities. The relative risk (risk ratio) uses cumulative incidence proportions and is a distinct measure. The two converge when events are rare, but diverge substantially in high-event-rate settings.

SECTION 5

Interpreting Hazard Ratios — A Detailed Breakdown

The hazard ratio is the workhorse summary statistic in survival analysis, yet its correct interpretation requires care. Because HR is a ratio of instantaneous rates, it does not translate directly into statements about median survival times or percentage reductions in cumulative risk without additional assumptions. The diagram below classifies hazard ratio values by their clinical and statistical meaning, and the table that follows provides a structured guide to interpretation.

Hazard Ratio Interpretation ScaleHR < 1.0Treatment is protectiveLower instantaneous rateof events in treatment groupExample: HR = 0.6040% reduction in hazardrelative to controlHR = 1.0No differenceEqual instantaneousevent rates in both groupsNull valueThis is the value underH₀: no treatment effectHR > 1.0Treatment is harmfulHigher instantaneous rateof events in treatment groupExample: HR = 1.8080% increase in hazardrelative to control0.00.250.501.001.502.003.00+ProtectiveHarmfulKey: HR is symmetric on the log scale. HR = 0.5 and HR = 2.0 represent equal magnitudes of effectin opposite directions. Confidence intervals that cross 1.0 indicate non-significance at the chosen α.
Three interpretation zones for the hazard ratio: HR < 1 (protective), HR = 1 (null), and HR > 1 (harmful). The number line at the bottom emphasizes the log-scale symmetry of the hazard ratio — an HR of 0.5 has the same magnitude of effect as HR = 2.0, but in opposite directions.
HR ValueVerbal InterpretationExample Context
0.50Treatment group experiences events at half the rate of control — a 50% reduction in the hazard.New chemotherapy drug halves the rate of tumor progression compared to standard of care.
0.7525% reduction in the instantaneous event rate for the treatment group relative to control.Statin therapy reduces cardiovascular event rate by 25% in high-risk patients.
1.00No difference in event rates. The null hypothesis value in most survival analyses.Placebo vs. placebo; two bioequivalent formulations.
1.5050% increase in the instantaneous event rate in the treatment (or exposed) group.Smoking increases the hazard of lung cancer by 50% in this hypothetical cohort.
2.00Treatment group's event rate is double that of the reference group — a 100% increase.Exposure to a particular toxin doubles the rate of organ failure.

Common hazard ratio values and their interpretations

💡

Log-Scale Symmetry

Hazard ratios are inherently asymmetric on the natural scale — protective effects are squeezed between 0 and 1, while harmful effects extend from 1 to infinity. Taking the natural log restores symmetry: ln(0.5) = −0.693 and ln(2.0) = +0.693. This is why confidence intervals for hazard ratios are typically computed on the log scale and then exponentiated back.

SECTION 6

Worked Example — Computing and Interpreting a Hazard Ratio

Consider a clinical trial comparing a new drug (Group A) to a placebo (Group B) for the prevention of disease relapse. A Cox proportional hazards model is fitted with a single binary covariate X (1 = drug, 0 = placebo). The estimated regression coefficient is β̂ = −0.5108. We will compute the hazard ratio, construct a 95% confidence interval, and interpret the result.

Hazard Ratio from a Cox Model Coefficient

  1. 1

    Step 1 — Identify the Model Output

    From the Cox regression output, the estimated coefficient for the treatment indicator (X = 1 for drug) is β̂ = −0.5108. The standard error of this estimate is SE(β̂) = 0.1850.
  2. 2

    Step 2 — Compute the Hazard Ratio

    The hazard ratio is obtained by exponentiating the regression coefficient: HR = exp(β̂) = exp(−0.5108) ≈ 0.600. This means the drug group experiences events at approximately 60% the rate of the placebo group.
    HR = exp(−0.5108) ≈ 0.600
  3. 3

    Step 3 — Construct the 95% Confidence Interval on the Log Scale

    The 95% CI for β is: β̂ ± z₀.₀₂₅ × SE(β̂) = −0.5108 ± 1.96 × 0.1850 = (−0.8734, −0.1482). We compute on the log-hazard scale first because the sampling distribution of β̂ is approximately normal, whereas the HR itself is not.
    95% CI for β: (−0.8734, −0.1482)
  4. 4

    Step 4 — Exponentiate to Obtain the CI for the HR

    Exponentiating the endpoints: Lower = exp(−0.8734) ≈ 0.418; Upper = exp(−0.1482) ≈ 0.862. Since the entire interval lies below 1.0, the effect is statistically significant at α = 0.05.
    95% CI for HR: (0.418, 0.862)
  5. 5

    Step 5 — Clinical Interpretation

    Patients receiving the new drug had an estimated 40% reduction in the instantaneous rate of relapse compared to placebo (HR = 0.60; 95% CI: 0.42–0.86). Since the confidence interval excludes 1.0, we reject the null hypothesis of no treatment effect at the 5% significance level. This finding suggests a clinically meaningful benefit, though the proportional hazards assumption should be verified before finalizing conclusions.
    40% reduction in relapse hazard, statistically significant at α = 0.05

SECTION 7

Strengths & Limitations of the Hazard Ratio

The hazard ratio has become the dominant effect measure in clinical survival studies, but like any single summary statistic, it carries both notable strengths and important limitations. Awareness of both sides is essential for responsible statistical practice and for correctly interpreting published results.

StrengthsLimitations
Handles censored data naturally through the partial likelihood in Cox regression, without discarding incomplete observations.Requires the proportional hazards assumption — if hazards cross or the ratio varies over time, a single HR is misleading.
Semi-parametric (Cox model) — no need to specify the baseline hazard distribution, increasing robustness.Not directly translatable to absolute risk differences; two studies can report the same HR with vastly different absolute event rates.
Allows adjustment for multiple covariates simultaneously, enabling confounding control in observational studies.Sensitive to informative censoring — when censoring is related to the outcome, HR estimates can be biased.
Produces a single, interpretable summary of relative treatment effect across the entire follow-up period.Can obscure time-varying effects; a drug that works brilliantly early but loses efficacy may still show a favorable average HR.
Log-scale symmetry makes it suitable for meta-analysis and forest plot presentation.Often confused with relative risk (risk ratio), leading to over-interpretation, especially in high-event-rate scenarios.

Strengths and limitations of the hazard ratio as a summary measure

✦

KEY TAKEAWAY

The hazard ratio is like a GPS-estimated average speed for a road trip: it gives a useful overall comparison ("Car A averaged 1.5× the speed of Car B"), but it cannot tell you whether Car A was consistently faster or just drove extremely fast during the first hour. Always check the proportional hazards assumption — analogous to verifying that the speed comparison was actually consistent throughout the trip — before relying on a single HR to summarize a complex survival experience.

SECTION 8

Connection to Advanced Survival Models

The introductory hazard and hazard ratio concepts presented here serve as the foundation for a family of increasingly sophisticated survival analysis techniques. Understanding where the basic Cox proportional hazards model fits — and where it falls short — provides a roadmap for future study. The table below contrasts the introductory framework with selected advanced extensions.

FeatureBasic Cox PH ModelAdvanced Extensions
Hazard ratioAssumed constant over time (proportional hazards)Time-varying coefficients allow HR to change over follow-up (e.g., Cox model with time interactions)
Baseline hazardLeft unspecified (semi-parametric)Fully specified in parametric models (Weibull, Gompertz, log-logistic) for prediction and extrapolation
Competing risksNot directly accommodated; treats competing events as censoringFine–Gray subdistribution hazard model or cause-specific hazard models handle multiple event types
Recurrent eventsDesigned for a single first eventAndersen–Gill, Prentice–Williams–Peterson, or frailty models for repeated events within subjects
HeterogeneityAssumes homogeneous population (given covariates)Frailty models introduce random effects to capture unobserved heterogeneity across subjects or clusters

Introductory vs. advanced survival analysis frameworks

As you progress through biostatistics, you will encounter each of these extensions. The crucial takeaway is that the hazard function remains the central building block in virtually all survival models. Whether you are fitting a parametric Weibull model, a Fine–Gray competing risks model, or a shared frailty model for clustered data, you are still modeling or comparing hazard functions — the language and intuition developed in this introductory lesson transfer directly.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why the hazard function h(t) is technically a rate and not a probability. Can h(t) exceed 1? Provide a brief justification.
Show answer
The hazard function h(t) = lim[Δt→0] P(t ≤ T < t + Δt | T ≥ t) / Δt is a conditional probability divided by a time interval, yielding units of events per unit time — a rate, not a dimensionless probability. Because it is obtained by dividing by Δt as Δt → 0, the result can exceed 1. For example, if events occur very rapidly (e.g., mechanical failure under extreme stress), the instantaneous rate may well be 3.0 failures per year at a given moment, even though no probability can exceed 1. The hazard is bounded below by 0 but has no finite upper bound.

Question 2: BASIC CALCULATION

A Cox model yields a regression coefficient of β̂ = 0.4055 for a binary treatment variable (1 = exposed, 0 = unexposed). Calculate the hazard ratio and state its interpretation.
Show answer
HR = exp(β̂) = exp(0.4055) ≈ 1.50. The exposed group experiences the event at 1.5 times the instantaneous rate of the unexposed group — a 50% increase in the hazard. Because β̂ > 0, the exposure is associated with a higher event rate. In a clinical context, if the event is death, this means that at any point during follow-up, exposed individuals are dying 50% faster (in rate terms) than unexposed individuals, conditional on the proportional hazards assumption holding.

Question 3: INTERMEDIATE

In a randomized trial, the Cox model coefficient for the treatment group (vs. control) is β̂ = −0.3567, with SE(β̂) = 0.1600. Compute the hazard ratio and its 95% confidence interval. Is the result statistically significant at α = 0.05?
Show answer
HR = exp(−0.3567) ≈ 0.700. For the 95% CI on the log scale: −0.3567 ± 1.96 × 0.1600 = (−0.6703, −0.0431). Exponentiating: lower = exp(−0.6703) ≈ 0.512, upper = exp(−0.0431) ≈ 0.958. The 95% CI for the HR is approximately (0.51, 0.96). Since the entire interval lies below 1.0, the result is statistically significant at α = 0.05, and we conclude that the treatment reduces the event hazard by approximately 30% compared to control. Note that the clinical significance of this reduction depends on the absolute event rates and clinical context.

Question 4: APPLIED

A published oncology trial reports: "The hazard ratio for overall survival was 0.78 (95% CI: 0.65–0.94; p = 0.008) favoring the experimental arm." A colleague interprets this as "the experimental arm reduces the probability of death by 22%." Critique this interpretation. What would be a more accurate statement?
Show answer
The colleague's interpretation conflates the hazard ratio with a risk ratio. The HR of 0.78 means the experimental arm experiences death at 78% the instantaneous rate of the control arm — a 22% reduction in the hazard (rate), not in the cumulative probability of death. A 22% reduction in the probability of death would require computing 1 minus the risk ratio using cumulative incidence, which is a different quantity. When events are rare, the HR and risk ratio are numerically similar, but in oncology trials with substantial event rates they can diverge. A more precise statement would be: "At any given time during follow-up, patients in the experimental arm were dying at a rate approximately 22% lower than those in the control arm, assuming proportional hazards."

Question 5: CRITICAL THINKING

Suppose two survival curves cross at approximately the median follow-up time: Treatment A has better survival early on, but Treatment B has better survival later. A Cox model is fitted and yields HR = 1.02 (95% CI: 0.88–1.18). Discuss why the hazard ratio may be misleading in this scenario and propose at least two alternative analytical strategies.
Show answer
When survival curves cross, the proportional hazards assumption is violated because the ratio of hazards is not constant — it changes sign over time. An overall HR near 1.0 in this case represents an average of early benefit and late detriment (or vice versa), masking a genuinely time-varying treatment effect. This is a classic example of Simpson's-paradox-like cancellation in survival analysis. Two alternative strategies: (1) Fit an extended Cox model with a time-by-treatment interaction term, which allows the HR to vary as a function of time and reveals the periods of benefit and harm. (2) Use a restricted mean survival time (RMST) analysis, which compares the areas under the two survival curves up to a specified time horizon — this provides a clinically interpretable measure (difference in average survival time) that does not require proportional hazards. A third option is to perform piecewise Cox regression, splitting follow-up into intervals (e.g., 0–2 years and 2+ years) and estimating separate HRs in each window.

SUMMARY

Lesson Summary

Summary

The hazard function h(t) quantifies the instantaneous event rate at time t among those who have survived to that moment, and it is related to the survival function through S(t) = exp(−H(t)), where H(t) is the cumulative hazard. The hazard ratio (HR) compares event rates between two groups: HR < 1 signals a protective treatment effect, HR = 1 indicates no difference, and HR > 1 signals increased risk. In the Cox proportional hazards model, the HR for a covariate is obtained by exponentiating its regression coefficient, HR = exp(β), and is assumed constant over time.

Confidence intervals for the HR are constructed on the log scale (exploiting the approximate normality of β̂) and then exponentiated. The proportional hazards assumption must be verified — when it fails (e.g., crossing survival curves), a single HR can be misleading, and analysts should consider time-varying coefficient models, restricted mean survival time (RMST), or parametric survival models as alternatives. These foundational concepts pave the way for deeper study of survival regression, competing risks, and frailty models.

Varsity Tutors • Biostatistics • Hazard & Hazard Ratios — Hazard and hazard ratio concepts (intro)