TL;DR
The survival function answers one question about a waiting time: what is the chance that it is still going after time ? It is written , and for any random waiting time it equals . It is the mirror image of the cumulative distribution function, , read from the other end.
Where you'll see it: in clinical trials that plot how many patients remain event-free over time, in reliability engineering that asks how long a component is expected to work, and in churn analysis that asks how long customers stay.
Intuition
Asking how many are still standing
Picture a row of light bulbs switched on together. At time zero all are burning. As time passes some fail. The survival function at time is the fraction still burning at . It starts at 1, because everything works at the start, and it can only fall as time goes on, because a bulb that has failed does not come back. It eventually drops toward 0 if every bulb eventually fails.
This framing is more useful than the density of failure times in many settings. A density tells you when failures are concentrated. A survival curve tells you how many units are left, and that is what people reading the plot want to know.
Why it is the complement, not a new object
The Cumulative Distribution Function already counts how much probability sits at or below . A bulb that has failed by time is counted there. A bulb still burning at is the rest. So is just the remaining probability, and nothing new has been introduced.
The reason it gets its own name is the question it answers. Studies of lifetimes care about the part of the distribution that is still alive, because that part is where the future lies.
flowchart LR T0[Start: all units alive, S = 1] -->|time passes| Mid[Some fail, S falls] Mid -->|time passes| Late[Few remain, S near 0]
The math
Let be a random waiting time, with cumulative distribution function .
is the probability that the event has not yet happened at time .
Properties
Every survival function satisfies these facts, which follow directly from the definition and the properties of :
- , since means the event has not happened at time zero (assuming has no atom at zero).
- is non-increasing: if then , because is contained in .
- as for a lifetime that eventually ends.
Probabilities from
Most questions about a lifetime reduce to :
The middle line is the chance the event falls in a window. It is the drop in the survival curve between and .
The median survival time
The median is the time at which half the population has failed. Solving gives directly, provided is continuous and strictly decreasing at that point. For a continuous lifetime this is the usual median of .
The hazard, briefly
The rate of failure at time , given survival to , is the hazard , where is the density of . Since , the hazard is . Knowing therefore determines the hazard, and the reverse also holds.
For the special case of a constant hazard , integrating gives . This is the exponential lifetime model, where failure is equally likely at every moment. The curve is built from the Exponential Function .
Worked examples
Suppose a component has a constant hazard of failures per year. Its lifetime is exponential, so .
- Survival to one year: .
- Survival to three years: .
- Chance of failing between years one and three: .
- Median: solve . Taking logs, , so years.
- Mean lifetime: years. The median is below the mean, which is typical for a right-skewed lifetime.
Interpretation: about 61 percent of components survive their first year, and about 38 percent fail in years one to three. Half fail before roughly 1.4 years. The gap between the median and the mean shows that a few long-lived components pull the average up.
Five units fail at 2, 3, 3, 5 and 8 months, with no censoring so every failure is seen. The empirical survival function is the fraction still alive after each time.
- At time 0 all five are alive: .
- After time 2, the units with lifetimes above 2 are 3, 3, 5 and 8. That is 4 of 5, so .
- After time 3, the units above 3 are 5 and 8. That is 2 of 5, so .
- After time 5, only the unit at 8 remains. So .
- After time 8, none remain, so .
Interpretation: the curve is a staircase that drops at each observed failure. The empirical median is the smallest time at which the curve is at or below one half, which here is 3 months, since . With five units this is a rough picture, but it is exactly the object that larger samples estimate.
Tradeoffs and failure modes
The survival function is simple to define and easy to misread. The usual trouble is in what the data actually shows.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Some units have not yet failed when the study ends | A plain fraction still alive undercounts failures and biases the curve | Use an estimator that handles Censored Data, such as the Kaplan–Meier Estimator |
| Assuming a constant hazard without checking | An exponential may badly misstate long-term survival | Check whether the hazard rises or falls, and use a more flexible model |
| Reading as a probability about a fixed unit | describes the population distribution, not a specific unit's future | Be explicit about the reference population |
| Comparing curves that cross | One group can be better early and worse late, so a single summary misleads | Show the full curves, not just the median |
| Using the median for a heavy-tailed lifetime | The median can look reassuring while a long tail carries most of the expected duration | Report the mean or a restricted mean alongside the median |
The first row matters most in practice. Real studies end before everything fails, so the units still running at the end carry information that a plain count throws away.
History
Early versions of the idea predate the name. Edmond Halley published a life table in 1693 that tabulated how many people in a city survived to each age, which is the survival function written as a table. Actuaries used such tables to price annuities and insurance through the eighteenth and nineteenth centuries.
The modern estimator that handles incomplete data came in 1958. Edward Kaplan and Paul Meier published a method for estimating the survival curve when some observations are cut short, and it is now the standard way to draw survival curves in medical and reliability studies. The term "survival function" became common as survival analysis spread from actuarial work into biology, medicine and engineering in the decades after.
Check yourself
QuestionRecall: how is the survival function related to the cumulative distribution function?Show answer
. The CDF gives the probability the event has happened by time , and the survival function gives the probability it has not. They are complements, so knowing one determines the other.
QuestionComputation: a lifetime has , with in years. What is the probability it fails between years two and four?Show answer
- .
- .
- The probability of failure in the window is .
About 22 percent of units fail between years two and four.
QuestionWhy: why does the survival curve have to be non-increasing?Show answer
Once the event has happened, it cannot un-happen, so the set of units still alive can only shrink. Formally, is contained in when , so . A rising survival curve would mean probability is being assigned to a unit coming back to life, which is not a lifetime.
QuestionApplied: a reliability team reports that half of a batch of parts fail within 500 hours. A colleague says the parts last 500 hours on average. What is the error, and what would settle it?Show answer
The 500 hours is the median, the time at which crosses one half. The mean lifetime is the area under the whole survival curve, , and it can be quite different from the median if the lifetime distribution is skewed. If the failure times have a long tail, the mean could be well above 500 hours even though half fail earlier. Settling it requires either the full survival curve or the estimated mean from the data, with a note on any parts still working when the test stopped.
Sources
- Kaplan, E. L., and Meier, P. (1958). Nonparametric Estimation from Incomplete Observations. Journal of the American Statistical Association, 53(282). https://doi.org/10.1080/01621459.1958.10501452
- Survival function, Wikipedia
- Survival analysis, Wikipedia