Survival analysis

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Statistical inference.

In event times, survival analysis is the analysis of the time until an event when some times are only known to exceed the last observation. Patients leave a study, machines are taken off test, and a report is due before every unit has failed. Survival analysis is the set of methods for event times under that kind of incomplete observation. The quantity being estimated is often a probability of still being free of the event, or a rate among those still at risk. The subject is wider than any one formula for that probability. It includes how the times were cut short, how groups are compared, and how covariates enter the rate. A complete sample of failure times can be summarised by an ordinary empirical distribution. The subject becomes survival analysis when some times are incomplete, or when the interest is the risk among those still surviving.[1][2]

Survival analysis

Survival analysis
Fact Value
Topic Statistical inference
Listed on Statistical inference
Worked example 1

Motivating example

A clinic follows four patients and must report before every history is finished. One dies at 2 months. One is lost at 4 months, still alive at the last visit. One dies at 5 months. One dies at 8 months. The lost patient contributes a fact: the event time was greater than 4 months. Treating 4 as if it were a death answers a different question, the question of when contact stopped. The survival function S(t)=Pr⁡(T>t)S(t)=\Pr(T>t) is the probability the event time exceeds tt. The four records are used to estimate that probability, not to pretend that every patient was watched until death.[2][1]

The same shape of problem appears in a life test. A tube breaks for a reason the test was not about, the rig is needed for something else, or the report cannot wait. Each of those records says that the failure time exceeded the time last seen. Kaplan and Meier called that earlier event a loss, accidental or the result of a decision to stop observation, and they wanted the proportion of lifetimes that would have exceeded tt had the losses not occurred.[1]

Definition

For each individual there is a survival time TT, also called the failure time or the event time, and a censoring time CC. What is recorded is Y=min⁡(T,C)Y=\min(T,C), together with a status indicator δ\delta that equals 1 when the event is seen (T≤CT\le C) and 0 when the censoring time is seen instead. Right censoring is the case T≥YT\ge Y: the event is at least as late as the recorded time. Left censoring is the opposite inequality, as when a survey at day 250 finds that a pregnancy has already ended and the duration is known only to be at most 250 days. Interval censoring places the event inside a window, as when patients are contacted once a week. The development below is for right censoring.[2]

The survival function is S(t)=Pr⁡(T>t)S(t)=\Pr(T>t). In reliability work the same function is called the reliability function R(t)R(t), and R(t)=1−F(t)R(t)=1-F(t) because a unit has either failed by tt or it has not. The hazard, or force of mortality, is the instantaneous risk among those still event-free,

h(t)=lim⁡Δt→0Pr⁡(t<T≤t+Δt∣T>t)Δt=f(t)S(t).h(t)=\lim_{\Delta t\to 0}\frac{\Pr(t<T\le t+\Delta t\mid T>t)}{\Delta t}=\frac{f(t)}{S(t)}.

The division by Δt\Delta t makes h(t)h(t) a rate, not a probability. A hazard of 2 per year can exceed 1. It says that the conditional chance of an event in a short interval is about 22 times the length of the interval.[3][2]

The product-limit estimator updates S(t)S(t) only at observed event times, and only among those still under observation. Let d1<⋯<dKd_1<\cdots<d_K be the distinct death times, let qjq_j be the number of deaths at djd_j, and let rjr_j be the number alive and still in the study just before djd_j, the risk set. Then

S^(dk)=∏j=1krj−qjrj.\widehat S(d_k)=\prod_{j=1}^{k}\frac{r_j-q_j}{r_j}.

Between death times the estimate stays flat. When no losses occur before tt, the product reduces to the ordinary proportion of survivors.[2][1]

Properties

The estimator is a product because survival past dkd_k factors into survival past each earlier death, conditional on having reached it. It is impossible to survive past dkd_k without having survived past dk−1d_{k-1}, so

S(dk)=Pr⁡(T>dk∣T>dk−1) S(dk−1).S(d_k)=\Pr(T>d_k\mid T>d_{k-1})\,S(d_{k-1}).

The fraction (rj−qj)/rj(r_j-q_j)/r_j estimates the conditional probability. A person censored before djd_j is not in rjr_j. A person censored at a later time still is. That is why a censoring at 4 months changes the risk set at 5 months and does not change the risk set at 2 months.[2]

Independent components combine by multiplication when all of them must survive. If each microprocessor has reliability Rm(t)R_m(t) and the processor uses two that must both work, the pair has reliability Rm(t)2R_m(t)^2. The general rule is to multiply the reliability functions of independent components. The rule fails when the components share a cause of failure. Two patients in the same ward during an outbreak are the medical analogue: their event times are not independent just because a curve was drawn as if they were.[3]

Under independent right censoring (conditional on modelled covariates where applicable), and omitting censoring factors that do not involve the event-time parameters, one record contributes the density f(yi)f(y_i) to the event-time likelihood if the event was seen and the survival probability S(yi)S(y_i) if the record was censored. Across independent subjects under that condition, the event-time likelihood is ∏ih(yi)δiS(yi)\prod_i h(y_i)^{\delta_i}S(y_i). An exponential model puts a constant hazard on that likelihood. A Weibull model lets the hazard rise or fall as a power of time. The proportional-hazards model leaves a baseline hazard h0(t)h_0(t) unspecified and multiplies it by exp⁡(xi⊤β)\exp(x_i^\top\beta), a factor that does not change with time. The name records the assumption: two people with different covariates have hazards in a constant ratio.[2]

For the four clinic records the arithmetic is small enough to check by hand. At 2 months everyone is at risk, one death occurs, and (4−1)/4=3/4(4-1)/4=3/4. At 5 months the patient lost at 4 months is gone, two patients remain, one dies, and the factor is 1/21/2. The product is (3/4)×(1/2)=3/8(3/4)\times(1/2)=3/8. At 8 months one patient is left and dies, and the estimate drops to 0. A naive proportion of known survivors past 5 months would have used a different denominator and a different meaning.

Statistical use

Use a survival method when the outcome is a time and some times are cut short. Comparing two groups with a rank test is the analogue of a two-sample test when the outcome is a censored time. A covariate model is the analogue of a regression. In a brain-tumour series of 88 patients, of whom 53 were still alive at the end of follow-up, the proportion known to have survived past 20 months was 48/8848/88, about 55 percent. That figure treats every censored patient who had not reached 20 months as if the event had occurred by then. Seventeen of the forty patients who were not known to have reached 20 months were in fact censored. Restricting the denominator to the 71 patients not censored by 20 months gives 48/7148/71, about 68 percent, and that figure throws away the censored histories entirely, including a patient last seen at 19.9 months who very likely would have passed 20. The product-limit curve is the estimate that uses both the deaths and the censoring times.[2]

For the ordinary pooled Kaplan–Meier curve over times with follow-up support, marginal independent censoring is the standard sufficient censoring condition: TT is independent of CC in the population being estimated.[1] Independence only within baseline strata does not by itself justify pooling; see the Kaplan–Meier assumptions discussion. If independence holds only within strata, one option is to estimate survival within each stratum with follow-up support at the times of interest, then standardize by averaging those curves using the target population’s stratum weights. The strata must be mutually exclusive and cover the target population: by the law of total probability, population survival is the weighted average of stratum survival probabilities.[4] The observed data alone cannot establish independent censoring; its plausibility depends on how the study was run. If the sickest patients leave a cancer study early, an analysis that ignores the reason will tend to overestimate the average survival time. If sick men leave more often than sick women, a comparison of men and women can make the men look longer-lived.[2]

Parametric models use the exponential distribution or the Weibull distribution when a simple shape for the hazard is plausible. The proportional-hazards model is the regression that multiplies a baseline hazard by a covariate factor. A life-test engineer who needs the reliability of a subsystem of independent parts multiplies the component reliabilities instead of fitting a regression at all. If each of two processors has reliability 0.90.9 at the horizon of interest, the pair that must both work has reliability 0.92=0.810.9^2=0.81.[3][2]

Worked example

Four records, in months: a death at 2, a censoring at 4, a death at 5, and a death at 8.

At the first death the risk set has size 4 and there is 1 death, so the factor is (4−1)/4=3/4(4-1)/4=3/4. The estimated survival just after 2 months is 3/43/4.

At 5 months the patient censored at 4 months is no longer at risk. The risk set has size 2 and there is 1 death, so the factor is 1/21/2. The estimated survival just after 5 months is

34×12=38.\frac34\times\frac12=\frac38.

At 8 months the last patient dies and the estimate is 0. The curve is flat between the death times. The censoring at 4 months does not draw a drop. It only removes one person from the later risk sets.

A separate reliability calculation uses the product rule for independent components. Two components, each with reliability 0.90.9, both required, have reliability 0.810.81.

Your turn. Three patients: a death at 1 month, a censoring at 3 months, and a death at 6 months. What is the product-limit estimate of survival just after 1 month?

All three patients are at risk at 1 month and one dies, so the estimate is (3−1)/3=2/3(3-1)/3=2/3.

Common misconceptions

The recorded time is not the event time whenever δ=0\delta=0. Putting the censoring times into an ordinary average of “lifetimes” treats losses as deaths. The product-limit estimate drops only at deaths.[1][2]

The hazard is not a probability and need not be smaller than one. It is a conditional rate per unit time. Reading h(t)=2h(t)=2 as “a 200 percent chance of death” confuses the rate with the probability of an event in one whole year.[2]

Multiplying component reliabilities is valid for independent components that must all survive. Shared shocks, a common power supply, or two patients exposed to the same outbreak violate the product. The curve for a system is then not the square of the curve for one part.[3]

A proportional-hazards coefficient is a multiplier of the hazard, constant in time, under the assumption that the hazards do not cross. It is not a difference in mean survival, and it is not evidence that censoring was independent.[2]

Connections

Survival analysis borrows the survival function from probability and returns it as an estimand under censoring. The hazard rate is the instantaneous risk among those still event-free. Censoring is the pattern in which one end of a duration is unobserved. The subject is a central part of medical statistics and of reliability as a branch of quality control. A Kaplan–Meier curve that drops only at deaths, a hazard that is a rate per unit time, and a covariate model that multiplies that hazard are three different summaries. Reading the curve as if every patient had been observed until death, or reading the hazard as a probability, confuses the summary with the design that made the times incomplete.[1][3][2]

Check yourself

Try these questions before opening an answer.

A hazard above one

A hazard equals 2 per year. Why is that not a probability of death?

The hazard is a conditional rate per unit time. The probability of an event in a short interval is about the hazard times the length of the interval, and the rate itself need not be smaller than one.

Sick patients leave

The sickest patients drop out of a study early, and the analysis ignores why they left. What happens to the estimated survival?

The estimate tends to overstate survival. Independent censoring fails when the event time and the censoring time are dependent given the features.

Shared shocks

Two components must both work, and they share a cause of failure. Why is the system reliability not the square of one component reliability?

The product rule is for independent components. A shared cause makes the event times dependent, so the joint reliability is not the product.

History

Life tables and actuarial estimates are the older technology for the same probability. Kaplan and Meier, in 1958, treated the estimation problem directly: incomplete measurements on a sample, with life testing and medical follow-up as the leading examples, and with the empirical proportion of survivors as the answer when there are no losses. They also set the actuarial estimates, which group time and shorten the product, beside the product-limit estimate, which keeps a factor at each observed death. The independence of lifetime and potential loss time is assumed in that paper, and the authors say the assumption deserves scrutiny in careful practice.[1]

Engineering reliability calculations use the same S(t)S(t) for systems of components, under the name reliability function, with the product rule for independent parts. Clinical research adopted the product-limit curve as a standard display and then added regression on covariates through the hazard. The proportional-hazards form leaves the baseline hazard free and estimates only the covariate multipliers. The field’s later textbooks put censoring, the product-limit curve, the log-rank comparison, and the proportional-hazards regression in one chapter, because the data are censored more often than they are complete.[3][2]

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d e f g h a. (p. 457) b. (p. 457) c. (p. 457) d. (p. 457) e. (pp. 457–458) f. (p. 457) g. (p. 457) h. (p. 457) Kaplan, E. L. & Meier, P. (1958). Nonparametric Estimation from Incomplete Observations. Journal of the American Statistical Association, 53(282), 457–481. https://doi.org/10.1080/01621459.1958.10501452
  2. ^ a b c d e f g h i j k l m n o a. (Ch. 11, §11.1, pp. 462–463) b. (Ch. 11, §11.1, (11.1)–(11.2), pp. 462–465) c. (Ch. 11, §11.1–§11.2, pp. 462–464) d. (Ch. 11, §11.5.1, (11.9)–(11.10), pp. 469–470) e. (Ch. 11, §11.3, (11.3), pp. 464–466) f. (Ch. 11, §11.3, pp. 464–466) g. (Ch. 11, §11.5.1–§11.5.2, (11.12)–(11.14), pp. 470–471) h. (Ch. 11, §11.3, pp. 464–465) i. (Ch. 11, §11.2, pp. 463–464) j. (Ch. 11, §11.5.2, p. 471) k. (Ch. 11, §11.1, p. 462) l. (Ch. 11, §11.5.1, pp. 469–470) m. (Ch. 11, §11.5.2, (11.14), p. 471) n. (Ch. 11, §11.5.1, pp. 469–470) o. (Ch. 11, §11.3 and §11.5.2, pp. 464–466 and 471) James, G., Witten, D., Hastie, T. & Tibshirani, R. (2021). An Introduction to Statistical Learning: with Applications in R (2nd ed.). Springer, New York. https://doi.org/10.1007/978-1-0716-1418-1
  3. ^ a b c d e f a. (§8.1.2.2) b. (§8.1.2.2) c. (§8.1.2.2) d. (§8.1.2.2) e. (§8.1.2.2) f. (§8.1.2.2) Heckert, N. A., Filliben, J. J., Croarkin, C. M., Hembree, B., Guthrie, W. F., Tobias, P. & Prinz, J. (2002). NIST/SEMATECH e-Handbook of Statistical Methods: Reliability or survival function. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/apr/section1/apr122.htm
  4. ^ (§1.4.2) Pishro-Nik, H. (2014). Introduction to Probability, Statistics, and Random Processes. Kappa Research, LLC. https://www.probabilitycourse.com/
Cite this page
Plain text
StatWiki (2026). "Survival analysis." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/survival-analysis.html
BibTeX
@misc{statwiki_survival_analysis,
  author = {{StatWiki}},
  title = {{Survival analysis}},
  year = {2026},
  url = {https://www.statwiki.io/articles/survival-analysis.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}