Algorithm Search⌘K

Definitionintro

Survival function

Also called survivor function, reliability function.

S(t) = P(T > t), the probability that the event time T exceeds t. It equals one minus the distribution function.

The survival function of a nonnegative random variable TT, the time until some event, gives for each tt the probability that the event has not happened by time tt: S(t)=P(T>t)S(t) = P(T > t). It carries the same information as the distribution function F(t)=P(T≤t)F(t) = P(T \le t), since S=1−FS = 1 - F, but it is the natural scale in survival analysis, where the questions are about who is still event-free, and where censored data are summarized by an estimate of SS, the Kaplan-Meier curve. It is equivalent to the hazard, the event rate among those still at risk, and its integral is the mean.

Definition

Let TT be a random variable with values in [0,∞)[0, \infty). Its survival function is

S(t)=P(T>t)=1−F(t),t≥0.S(t) = P(T > t) = 1 - F(t), \qquad t \ge 0.

Every survival function has these properties, and every function with them is the survival function of some T≥0T \ge 0, possibly with an atom at +∞+\infty:

  1. SS is nonincreasing.
  2. SS is right-continuous, and S(t−)=P(T≥t)S(t-) = P(T \ge t), so S(t−)−S(t)=P(T=t)S(t-) - S(t) = P(T = t).
  3. S(t)≤1S(t) \le 1 for all tt, and S(0−)=1S(0-) = 1.
  4. lim⁡t→∞S(t)=P(T=∞)\lim_{t \to \infty} S(t) = P(T = \infty), which is 00 for a proper time. A positive limit, such as a fraction of patients who are cured, makes SS improper.

Mean and restricted mean. For T≥0T \ge 0, writing T=∫0∞1{T>t} dtT = \int_0^\infty 1\{T > t\}\, dt and taking expectations (Tonelli's theorem) gives

E[T]=∫0∞S(t) dt,E[T] = \int_0^\infty S(t)\, dt,

finite or infinite. When SS cannot be estimated over its whole range, as when follow-up ends at τ\tau, the restricted mean E[min⁡(T,τ)]=∫0τS(t) dtE[\min(T, \tau)] = \int_0^\tau S(t)\, dt is used instead. For integer TT, E[T]=∑t≥0S(t)E[T] = \sum_{t \ge 0} S(t).

Quantiles and conditional survival. The median survival time is inf⁡{t:S(t)≤1/2}\inf\{t : S(t) \le 1/2\}, and other quantiles are defined the same way. The probability of surviving another ss units given survival to tt is

P(T>t+s∣T>t)=S(t+s)S(t),S(t)>0.P(T > t + s \mid T > t) = \frac{S(t + s)}{S(t)}, \qquad S(t) > 0.

Discrete time. If TT takes values t1<t2<⋯t_1 < t_2 < \cdots, with discrete hazards hj=P(T=tj∣T≥tj)h_j = P(T = t_j \mid T \ge t_j), then surviving past tt means getting past each tj≤tt_j \le t in turn, and

S(t)=∏j: tj≤t(1−hj).S(t) = \prod_{j :\, t_j \le t} (1 - h_j).

The Kaplan-Meier estimator is this product with hjh_j replaced by dj/njd_j / n_j, the events at tjt_j over the number at risk.

Examples and non-examples

A discrete example. Let TT be uniform on {1,2,3,4}\{1, 2, 3, 4\}. Then S(t)=1,34,12,14,0S(t) = 1, \frac34, \frac12, \frac14, 0 on [0,1),[1,2),[2,3),[3,4),[4,∞)[0, 1), [1, 2), [2, 3), [3, 4), [4, \infty). The mean is ∑t≥0S(t)=1+34+12+14=52\sum_{t \ge 0} S(t) = 1 + \frac34 + \frac12 + \frac14 = \frac52, which matches (1+2+3+4)/4(1 + 2 + 3 + 4)/4. The discrete hazards are h1=14h_1 = \frac14, h2=1/43/4=13h_2 = \frac{1/4}{3/4} = \frac13, h3=12h_3 = \frac12 and h4=1h_4 = 1, and (1−14)(1−13)(1−12)=14=S(3)(1 - \frac14)(1 - \frac13)(1 - \frac12) = \frac14 = S(3). The median is 2, the first tt with S(t)≤1/2S(t) \le 1/2.

Exponential. S(t)=e−λtS(t) = e^{-\lambda t} for a rate λ>0\lambda > 0. The mean is ∫0∞e−λt dt=1/λ\int_0^\infty e^{-\lambda t}\, dt = 1/\lambda and the median is log⁡2/λ\log 2 / \lambda. The conditional survival S(t+s)/S(t)=e−λs=S(s)S(t + s)/S(t) = e^{-\lambda s} = S(s) does not depend on tt: the exponential is the only continuous distribution without memory. Its discrete counterpart is the geometric distribution, with S(t)=(1−p)tS(t) = (1 - p)^t on the integers.

Weibull. S(t)=exp⁡(−(λt)k)S(t) = \exp(-(\lambda t)^k) with shape k>0k > 0. For k>1k > 1 the conditional survival S(t+s)/S(t)S(t + s)/S(t) falls with tt, which describes wear-out; for k<1k < 1 it rises with tt, which describes early failures that thin out a weak subpopulation. k=1k = 1 is the exponential.

A cure model. S(t)=π+(1−π)e−λtS(t) = \pi + (1 - \pi) e^{-\lambda t} with 0<π<10 < \pi < 1: a fraction π\pi never has the event. SS is improper, with limit π\pi, and the mean is infinite, while the restricted mean ∫0τS(t) dt=πτ+(1−π)(1−e−λτ)/λ\int_0^\tau S(t)\, dt = \pi\tau + (1 - \pi)(1 - e^{-\lambda\tau})/\lambda is finite.

Non-examples.

  • An estimate. A Kaplan-Meier curve is a step function computed from a sample. It estimates SS, it drops only at observed event times, and it may stop above 0 when the largest time is censored, which does not mean that SS is improper.
  • The empirical distribution complemented. Without censoring, one minus the empirical distribution function is the natural estimate of SS. With censoring, one minus the EDF of the observed times estimates P(min⁡(T,C)>t)=S(t)G(t)P(\min(T, C) > t) = S(t) G(t) for independent CC with survival GG, which is lower than S(t)S(t).
  • P(T≥t)P(T \ge t). Some texts define the survival function as P(T≥t)P(T \ge t), which is left-continuous. For continuous TT the two agree. For discrete TT they differ at the atoms, and formulas taken from different sources must use the same convention.
  • A density. SS is a probability, not a rate. S(5)=0.6S(5) = 0.6 means that 60% of subjects are event-free at time 5, not that 60% have the event near time 5.
  • Hazard. The hazard h(t)=f(t)/S(t)h(t) = f(t)/S(t) is the event rate among those still at risk. With the cumulative hazard H(t)=∫0th(u) duH(t) = \int_0^t h(u)\, du, a continuous TT has S(t)=exp⁡(−H(t))S(t) = \exp(-H(t)), so any one of SS, ff, hh and HH determines the others.
  • Distribution function and quantiles. S=1−FS = 1 - F, so every statement about FF in probability distributions translates directly. The pp-quantile of TT is the first tt where SS falls to 1−p1 - p or below.
  • Mean residual life. m(t)=E[T−t∣T>t]=∫t∞S(u) du/S(t)m(t) = E[T - t \mid T > t] = \int_t^\infty S(u)\, du / S(t), the expected remaining time for a subject who has reached tt. It equals 1/λ1/\lambda for every tt in the exponential case.
  • Estimation under censoring. The Kaplan-Meier estimator for right-censored data and the Turnbull estimator for interval-censored data estimate SS without a model. Censoring describes what these data contain.
  • Expectation. The mean formula is a case of the tail-sum formula for the expected value of a nonnegative variable.

References

  1. John P. Klein and Melvin L. Moeschberger, Survival Analysis, Techniques for Censored and Truncated Data, 2nd edition, Springer, 2003, Chapter 2 (the survival function, the hazard, the mean residual life and common parametric models, for continuous and discrete times)
  2. John D. Kalbfleisch and Ross L. Prentice, The Statistical Analysis of Failure Time Data, 2nd edition, Wiley, 2002, Chapter 2 (failure time models, the survivor function and the hazard in continuous and discrete time)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/60R77Q/text.yaml