Survival analysis
|
Survival analysis is a branch of statistics which deals with death in biological organisms and failure in mechanical systems. This topic is called reliability theory or reliability analysis in engineering. Death or failure is called an "event" in the survival analysis literature, and so models of death or failure are generically termed time-to-event models.
Survival analysis attempts to answer questions such as: what is the fraction of a population which will survive past a certain time? Of those that survive, at what rate will they die or fail? Can multiple causes of death or failure be taken into account? How do particular circumstances or characteristics increase or decrease the odds of survival?
To answer such questions, it is necessary to define "lifetime". In the case of biological survival, death is unambiguous, but for mechanical reliability, failure may not be well-defined, for there may well be mechanical systems in which failure is partial, a matter of degree, or not otherwise not localized in time. Even in biological problems, some events (for example, heart attack or other organ failure) may have the same ambiguity. The theory outlined below assumes well-defined events at specific times; other cases may be better treated by models which explicitly account for ambiguous events.
The theory of survival present here also assumes that death or failure happens just once for each subject. Recurring event or repeated event models relax that assumption. The study of recurring events is relevant in systems reliability.
This article is phrased primarily in terms of biological survival, but this is just a convenience. An equivalent formulation in terms of mechanical failure can be made by replacing every occurrence of death with failure.
Contents |
General formulation
Survival function
The object of primary interest is the survival function, conventionally denoted S, which is defined as
- <math>S(t) = \Pr(T > t)<math>
where t is some time, T is the time of death, and "Pr" stands for probability. That is: the survival function is the probability that the time of death is later than some specified time. The survival function is also called the survivor function or survivorship function in problems of biological survival, and the reliability function in mechanical survival problems. In the latter case, the reliability function is denoted R(t).
Usually one assumes S(0) = 1, although it could be less than 1 if there is the possibility of immediate death or failure. Some survival distributions (for example the Gaussian distribution) have the property that S(t) < 1 for all finite t, but this point can be finessed or ignored; see the discussion under "Some survival distributions" below.
The survival function must be decreasing: S(u) < S(t) if u > t. This expresses the notion that survival is only less probable as one ages. Given this property, the lifetime distribution function and event density (F and f below) are well-defined.
Survival probability is usually assumed to approach zero as age increases without bound, i.e., S(t) → 0 as t → ∞, although the limit could be greater than zero if eternal life is possible.
Lifetime distribution function and event density
Related quantities are defined in terms of the survival function. The lifetime distribution function, conventionally denoted F, is defined as the complement of the survival function,
- <math>F(t) = \Pr(T \le t) = 1 - S(t)<math>
and the derivative of F (i.e., the density function of the lifetime distribution) is conventionally denoted f,
- <math>f(t) = \frac{d}{dt} F(t)<math>
f is sometimes called the event density; it is the rate of death or failure events per unit time.
Hazard function and cumulative hazard function
The hazard function, conventionally denoted <math>\lambda<math>, is defined as the event rate at time t conditional on survival until time t or later,
- <math>\lambda(t)\,dt = \Pr(t < T < t+dt\,|\,T > t) = \frac{f(t)\,dt}{S(t)} = -\frac{S'(t)\,dt}{S(t)}<math>
Force of mortality is a synonym of hazard function which is used particularly in demographics. The term hazard rate is another synonym.
The hazard function must be positive, λ(t) > 0, but is not otherwise constrained; the hazard function may be increasing or decreasing, nonmonotonic, or discontinuous. An example is the "bathtub" hazard function, which is large for small values of t, decreasing to some minimum, and thereafter increasing again; this can model the property of some mechanical systems to either failure soon after operation, or much later, as the system ages.
The hazard function can alternatively be represented in terms of the cumulative hazard function, conventionally denoted <math>\Lambda<math>:
- <math>\Lambda(t) = -\log S(t)\,<math>
so
- <math>\frac{d}{dt} \Lambda(t) = -\frac{S'(t)}{S(t)} = \lambda(t)<math>
Quantities derived from the survival distribution
Future lifetime at a given time t0 is denoted by the time remaining until death, thus future lifetime is <math>T-t_0<math> in the present notation. The expected future lifetime is the expected value of future lifetime. Now the event density given survival until <math>t + t_0<math> or later, given survival until <math>t_0<math>, is just
- <math>\frac{f(t+t_0)}{S(t_0)}<math>,
so the expected future lifetime is given by
- <math>\frac{1}{S(t_0)} \int_0^{\infty} t\,f(t+t_0)\,dt<math>
For <math>t_0 = 0<math>, i.e., at birth, this reduces to the expected lifetime.
In reliability problems, the expected lifetime is called the mean time to failure, and the expected future lifetime is called the mean residual lifetime.
The probability of individual survival until t or later is S(t), by definition. The expected number of survivors, in a population of n individuals, is n × S(t), assuming the same survival function for all. Thus the expected proportion of survivors is S(t), and the variance of the proportion of survivors is S(t) × (1-S(t)).
The age at which a specified proportion of survivors remain can be found by solving the equation S(t) = q for t, where q is the quantile in question. Typically one is interested in the median lifetime, for which q = 1/2, or other quantiles such as q = 0.90 or q = 0.99.
One can also make more complex inferences from the survival distribution. In mechanical reliability problems, one can bring cost (or utility, more generally) into consideration and solve problems concerning repair or replacement. See age-replacement problem and durability for further discussion of this topic.
Some survival distributions
Survival models are constructed by choosing a basic survival distribution. It is straightforward to phrase model fitting and analysis in general terms, using the concepts outlined in under "General formulation", above. Thus it is relatively easy to substitute one distribution for another, in order to study the consequences of different choices.
The choice of survival distribution expresses some particular information about the relation of time and any exogenous variables to survival, and as such, it is analogous to the choice of link function in generalized linear models. There are several distributions commonly used in survival analysis, which are listed in the table below. Additional types of distributions can be found in the references.
- <math>
\begin{matrix}
& S(t) \\
\\ \mbox{Gaussian} & 1-\Phi(t) \\ \\ \mbox{Extreme value} & \exp(-\exp t) \\ \\ \mbox{Logistic} & 1/(1+\exp t) \end{matrix} <math>
Here <math>\Phi<math> indicates the standard normal cumulative distribution function. See normal distribution.
Fitting parameters to data
Survival models can be usefully viewed as ordinary regression models in which the response variable is time. However, computing the likelihood function (needed for fitting parameters or making other kinds of inferences) is complicated by missing data problems which are peculiar to time. The birth and death of a subject may be known, in which case the lifetime is known. More generally, it may be known only that the date of birth was prior to some date: this is called left censoring. Also, it may be known only that the date of death is after some date: this is called right censoring. The lifetime may be both right and left censored, which is sometimes called interval censoring. It may also happen that subjects with a lifetime less than some threshold may not be observed at all: this is called truncation. Note that truncation is different from left censoring, since for a left censored datum, we know the subject exists, but for a truncated datum, we may be completely unaware of the subject.
There are standard examples of censoring and truncation. Perhaps the most common is right censoring. If we examine a group of living subjects, we know that each one is alive today, but we do not know their future date of death. Left censoring is also common. For each subject, we know they are alive today but we may not know their date of birth. Truncation is also common. In a so-called delayed entry study, subjects are not observed at all until they have reached a certain age. For example, people may not be observed until they have reached the age to enter school. Any deceased subjects in the pre-school age group would be unknown.
The likelihood function for a survival model, in the presence of censored data, is formulated as follows. By definition the likelihood function is the joint probability of the data given the parameters of the model. It is customary to assume that the data are independent given the parameters. Then the likelihood function is the product of the likelihood of each datum. It is convenient to partition the data into four categories: uncensored, left censored, right censored, and interval censored. These are denoted "unc.", "l.c.", "r.c.", and "i.c." in the equation below.
- <math> L(\theta) = \prod_{T_i\in unc.} \Pr(T = T_i|\theta)
\prod_{i\in l.c.} \Pr(T < T_i|\theta) \prod_{i\in r.c.} \Pr(T > T_i|\theta) \prod_{i\in i.c.} \Pr(T_{i,r} < T < T_{i,l}|\theta) <math>
For an uncensored datum, with <math>T_i<math> equal to the age at death, we have
- <math> \Pr(T = T_i|\theta) = f(T_i|\theta) <math>
For a left censored datum, such that the age at death is known to be less than <math>T_i<math>, we have
- <math> \Pr(T < T_i|\theta) = F(T_i|\theta) = 1 - S(T_i|\theta) <math>
For a right censored datum, such that the age at death is known to be greater than <math>T_i<math>, we have
- <math> \Pr(T > T_i|\theta) = S(T_i|\theta) <math>
For an interval censored datum, such that the age at death is known to be greater than <math>T_{i,r}<math> and less than <math>T_{i,l}<math>, we have
- <math> \Pr(T_{i,r} < T < T_{i,l}|\theta)
= S(T_{i,r}|\theta) - S(T_{i,l}|\theta) <math>
References
- Regina Elandt-Johnson and Norman Johnson. Survival Models and Data Analysis. New York: John Wiley & Sons. 1980/1999.
- Jerald F. Lawless. Statistical Models and Methods for Lifetime Data, 2nd edition. John Wiley and Sons, Hoboken. 2003.
- Terry Therneau. "A Package for Survival Analysis in S". http://www.mayo.edu/hsr/people/therneau/survival.ps, at: http://www.mayo.edu/hsr/people/therneau.html