TL;DR
The hazard function, written , tells you how fast things are failing at time , counting only the things that are still working at . It is a rate, not a probability, so its value depends on the time unit and can exceed 1 when the unit is large compared with how fast things fail (per year, say, for parts that last weeks). Given the hazard curve, you can rebuild the whole survival curve, and given the survival curve, you can recover the hazard.
Where you'll see it: in reliability tests that ask whether components wear out or fail early, in clinical studies that compare how fast patients reach an event, and in insurance and churn models that ask how risk changes with age or tenure.
This is an educational explanation, not medical advice. The clinical examples describe how the statistics work and say nothing about any treatment or individual patient.
Intuition
Ask about the survivors
A survival curve answers "how many are still here at time ?" The hazard asks a sharper question: "of those still here at , how many fail in the next tiny moment?" That second question is about the present danger, not about the whole history.
Picture a batch of light bulbs. At the start all of them work, and the first bulbs to burn out are the ones with flaws. Later the bulbs that remain are the tougher ones. The fraction failing in a given week is a fraction of a shrinking group, so a single number for the whole batch hides what is happening. The hazard fixes this by always dividing by the number still working, at the moment you look.
Why a rate, and not a density
The density tells you where failures are concentrated over all time. But a density at a late time can be small for two different reasons: few things reach that time, or the things that do reach it rarely fail. The hazard removes the first reason. It only looks at survivors, so it isolates how dangerous the present moment is.
flowchart LR A[Units alive at time t] --> B[Fraction failing in the next tiny step] B --> C[Divide by the step length] C --> D[Hazard h of t: failure rate among survivors]
- constant hazard (exponential)
- rising hazard (wear-out)
The math
Definition
For a non-negative lifetime (a random variable) with density and survival function , the hazard function is
Equivalently, is the limit of a conditional probability per unit time:
Here is the lifetime, is a time you are standing at, and is a short step after . The numerator in the limit is the probability that the lifetime ends in , given that it has lasted until . Dividing by turns that probability into a rate. The two forms agree because of the conditional probability rule: , and the first term is approximately for small .
Hazard and survival are two views of one object
Because is the complement of the cumulative distribution function, its derivative is . Substitute into the definition:
Integrate both sides from to . The left side becomes , and because everything works at the start. So
The integral is called the cumulative hazard. Survival is the exponential of minus the total hazard collected so far. This is why a hazard curve that stays high for a long time makes the survival curve drop fast. You need the integral only to move between the two views; the hazard itself is a simple ratio.
Constant hazard and the exponential
Take an exponential lifetime with rate , so and . Then
The hazard is the same at every time. This matches the memoryless property. For any and ,
which depends on but not on . A constant hazard means the risk of failing next does not depend on how long the unit has already survived. That is a strong and often unrealistic assumption, so it is worth checking.
Other shapes
A family often used for lifetimes is the Weibull distribution, a lifetime model with a shape parameter and a scale parameter . Its survival function is , and its hazard is
When the hazard is constant and the model reduces to the exponential. When the hazard rises with time, the signature of wear-out. When it falls, the signature of early failures that weed out weak units.
Worked examples
Let the lifetime be exponential with per year. Check the hazard at years.
- The density is .
- The survival is .
- The ratio is .
The hazard is per year at every time, which is just . You can also see it from the cumulative form: , and is the survival at 2.
A batch of 1000 devices is watched year by year. Deaths and survivors are recorded at the start of each year.
| Year | At risk at start | Failures in year | Hazard (failures divided by at risk) | Survivors at end |
|---|---|---|---|---|
| 1 | 1000 | 100 | 100 / 1000 = 0.10 | 900 |
| 2 | 900 | 90 | 90 / 900 = 0.10 | 810 |
| 3 | 810 | 81 | 81 / 810 = 0.10 | 729 |
- The hazard is the failure count divided by the number still at risk, not by the original 1000. Each year's denominator shrinks.
- Every year the hazard is 0.10, so 10 percent of the survivors fail each year.
- After three years, . The survival is the product of the yearly survival fractions, .
- The continuous version of the same behaviour is an exponential with , so per year. The annual hazard of 0.10 and the continuous rate of 0.105 describe the same survival curve, measured on different clocks.
The yearly table is the idea behind the Kaplan–Meier Estimator, which applies this divide-by-those-at-risk rule at every observed event time.
A mechanical part follows a Weibull lifetime with shape and scale years. Its hazard is
- At years, per year.
- At years, per year. The risk has doubled, because the hazard is linear in time.
- The survival at 5 years is .
- The survival at 10 years is .
- Check the integral: , and , as the identity predicts.
- Among parts still working at 5 years, the chance of failing in the next 0.1 years is roughly . Computing it exactly from the survival values gives , which agrees.
Interpretation: the yearly risk for a surviving part doubles between year 5 and year 10, so the longer a part has lasted, the more dangerous each further year is. A flat exponential model would miss this.
Tradeoffs and failure modes
| Situation | Problem | Better choice |
|---|---|---|
| The risk may change with age | A constant hazard model forces risk to stay flat | Use a model with a varying hazard, such as the Weibull with |
| You want to compare risks between groups over time | Looking at survival curves alone hides the rate of change | Compare hazards, or use the Cox proportional hazards model |
| Some units are still working when the study ends | Simply counting failures underestimates risk, because the observation was cut short | Use methods built for censored data (units whose failure was not observed before the study ended), such as the Kaplan–Meier Estimator |
| Data are sparse at late times | The hazard estimate is noisy where few units remain at risk | Report intervals, or pool neighbouring times |
| A hazard above 1 seems impossible | People expect probabilities | Remember the hazard is a rate per unit time, and it depends on the time unit chosen |
The most common mistake is to read a hazard as a probability. The hazard has no upper bound of 1: if the unit of time is long compared with how fast units fail, the number can be large. It also is not the chance of failing over a long period. Over a long interval, the chance comes from the cumulative hazard through the survival function. A second mistake is to divide failures by everyone who started, instead of everyone still at risk at the moment of the failure.
History
Life tables that count how many people of each age survive are much older than the word "hazard". Edmond Halley published a mortality table in 1693 that used age-specific survival to price annuities. Later actuaries wrote the same idea as a force of mortality, which is the hazard under another name. The term "hazard rate" became standard in reliability engineering and biostatistics in the 20th century. Waloddi Weibull's lifetime model appeared in the 1950s and found wide use in engineering because its shape parameter matches early failures, random failures and wear-out with one formula. In 1972, David Cox introduced the proportional hazards regression, which compares groups through their hazards without fixing the shape of the baseline hazard. The approach caught on because it lets a study adjust for many factors while keeping the hazard as the quantity of interest.
Recap
The hazard function is the failure rate among units still working at time . Integrating it gives the cumulative hazard, and the survival function is its exponential with a minus sign. A constant hazard is the exponential distribution and the memoryless property. Varying hazards, rising or falling, are the usual way to model wear-out or early failure, and the Cox model and the Kaplan–Meier estimator both build on this quantity.
Check yourself
QuestionIn words, what does the hazard at time measure, and why can it exceed 1?Show answer
It measures how fast units that have survived to time are failing at that moment, as a rate per unit of time. It is not a probability over a whole interval. Because it is a rate, its size depends on the time unit: a hazard of 0.1 per year is the same risk as 0.1/365, about 0.0003, per day. A rate can exceed 1 when the unit is large compared with how quickly things fail, for example 2 failures per year among units that typically last a few months.
QuestionA Weibull lifetime has and , so . Find and .Show answer
. The survival is . Both numbers come straight from the formulas: the hazard from and the survival from with .
QuestionWhy does a constant hazard produce the memoryless property?Show answer
Because , and . With a constant hazard the integral is , so the ratio becomes . That expression does not contain : the chance of lasting another units is the same whatever age the unit already has.
QuestionA batch of machines has a hazard that is high in the first week and then falls to a low, flat level. What does this suggest, and what would you check before relying on it?Show answer
It suggests early failures from manufacturing defects. The weak units fail first, so the survivors are more reliable and the hazard drops. Before relying on this, check that the early hazard is not an artefact of a short observation window or of machines being removed from the study. The flat part should be checked over a long enough period to be trusted.