AI Glossary / Statistics and probability / Intermediate
Hazard ratio
Definition
A hazard ratio compares the instantaneous event rates of two groups among members who remain event-free at a particular time. It is calculated as one hazard divided by the other, with the reference group stated explicitly. A ratio of 0.5 means that the numerator group's hazard is half the reference group's hazard at that time. It does not generally mean half the probability of experiencing the event over a year or over an entire study.
What it means
The comparison concerns rates within the groups' current risk sets. Those sets change as events occur and people leave observation. Consequently, a hazard ratio differs from a comparison of cumulative risks in the populations originally enrolled.
It has no physical units because the same time units cancel. Its direction depends on the event: a lower hazard can be desirable for failure but undesirable for recovery. Always read the event definition before interpreting a value below one as beneficial.
How it works
Write HR(t) = hA(t)/hB(t), wherever the reference hazard is positive. Proportional hazards means this ratio stays constant over time; it does not require either hazard itself to be constant.
In a Cox model, h(t | x) = h0(t) exp(beta x) for a single predictor. A one-unit increase in x multiplies the hazard by exp(beta), holding other included predictors fixed. The specified unit matters: a year of age and a decade of age produce different ratios.
Analysts define time origin and censoring, fit the model, inspect uncertainty, and assess proportionality. If effects change with time, a single reported ratio may conceal important changes. Adjusting covariates does not by itself establish causation.
Three practical examples
- A reliability team compares the first-failure hazards of two component designs while also estimating failure probabilities at the warranty deadline.
- A subscription business models cancellation timing, specifying whether account closure or the first missed renewal counts as the event.
- Researchers compare time to recovery under two study conditions. A ratio above one indicates a higher recovery hazard, so its practical direction differs from a mortality analysis.
Think of it this way
Think of two queues of functioning machines. At each instant, the hazard ratio compares how rapidly failures emerge among the machines still functioning in each queue. It does not directly compare the total numbers that have failed since installation. As the queues shrink, their remaining members can also become different in composition.
Worked example
Assume two fictional component populations have constant first-failure hazards: A has 0.10 per year and B has 0.20 per year. Their hazard ratio, A relative to B, is 0.10/0.20 = 0.50.
For this exponential example, the probability of failure by t years is 1 - exp(-lambda t). At five years, A's risk is 1 - exp(-0.5) = 0.39347. B's risk is 1 - exp(-1) = 0.63212.
Their five-year risk ratio is therefore 0.39347/0.63212 = 0.62246, not 0.50. The absolute risk difference is approximately -0.23865, or 23.87 percentage points lower for A. These are different summaries of the same specified distributions.
Reversing the reference gives a hazard ratio of 2. The calculations describe an assumed model, not an estimated treatment effect, and include no sampling confidence interval.
Illustrative case study
Fictional case: Meridian Devices evaluates a redesigned sensor. Its analyst reports a first-failure hazard ratio of 0.70 and initially prepares a headline claiming that 30% fewer sensors will fail during the warranty period.
The reviewer asks for estimated survival curves and warranty-date risks. She also checks whether early failures behave differently from later wear-out failures. The revised report describes the relative hazard, gives absolute warranty risks separately, and explains the uncertainty around both.
Purchasing decisions then use expected replacement costs and service disruption. The ratio remains useful, but the business interpretation depends on the failure pattern and the relevant time horizon.
Common misconceptions and mistakes
Common mistakes include calling a hazard ratio a risk ratio, omitting the reference group, and interpreting proportional hazards as constant hazards. Another is assuming a ratio of 0.5 always doubles expected survival time; that relationship requires additional distributional assumptions.
A confidence interval containing one does not prove identical outcomes. A precise association is not automatically a causal effect. Censoring assumptions, confounding, changing survivor composition, and competing events can affect interpretation. Cause-specific hazard ratios and subdistribution hazard ratios also answer different questions and should not be silently interchanged.
Business use
Use hazard ratios when timing matters and follow-up lengths vary, such as reliability, retention, and operational duration studies. Pair them with absolute event probabilities at decision-relevant times and clear descriptions of uncertainty.
An AI-generated report should retain the event, reference group, covariate adjustment, time scale, and model assumptions. A compact ratio is convenient for communication, but it cannot alone determine how many replacements to budget for or how much revenue a retention policy will preserve.
People also ask
Is a hazard ratio of one always no difference?
It indicates equal hazards for the specified comparison; a fitted constant summary can obscure time-varying differences.
Can it be negative?
Ordinary hazard ratios are nonnegative, with positive fitted ratios in a standard Cox model.
Does 0.8 mean 20% fewer events?
It means a 20% lower hazard for the stated comparison, not generally 20% fewer cumulative events.
Check your understanding
Two groups have constant hazards 0.10 and 0.20 per year. Is their five-year risk ratio necessarily 0.5?
Answer: No. Their hazard ratio is 0.5, but integrating event rates through survival gives a five-year risk ratio of about 0.622. The time horizon and baseline hazard matter when translating rates into risks.
Related terms
- Hazard rate
- Survival function
- Censoring
- Cox proportional hazards model
- risk ratio
- competing risks
- absolute risk difference
Learn next
Next, compare survival curves with cumulative risk estimates. Then study proportional-hazards diagnostics, time-varying effects, and restricted mean survival time as complementary ways to summarize duration outcomes.
More in Statistics and probability
- Hartley's test - Hartley's test, also called the F-max test, tests whether several normally distributed populations have equal variances by comparing the largest sample...
- Haseman - Elston regression - Haseman - Elston regression is a family of statistical-genetics methods connecting similarity in quantitative traits with genetic sharing between pairs of...
- Hawthorne effect - The Hawthorne effect refers to a change in behavior or responses arising because people know they are being observed or studied.
- Healthy user bias - Healthy user bias occurs when people who choose a preventive intervention differ from nonusers in other health-related behaviors or characteristics that...
- Heavy-tailed distribution - A heavy-tailed distribution assigns substantial probability to extreme values because its tail is not exponentially bounded.
- Heckman correction - The Heckman correction is a statistical method for estimating an outcome relationship when outcomes are observed for a nonrandomly selected subset of a...
Sources
Sources: statsmodels, Methods for Survival and Duration Analysis, official Cox regression explanation and example output: https://www.statsmodels.org/stable/duration.html . NIST/SEMATECH, Exponential Distribution, survival and constant-hazard formulas: https://www.itl.nist.gov/div898/handbook/apr/section1/apr161.htm . These sources were read for model interpretation and the numerical construction. The component example and fictional case are original; the worked probabilities were independently calculated.
Previous: Hazard rate Next: HBJ model