SECTION 1
Historical Context & Motivation
The study of time-to-event data — often called survival analysis — arose from an urgent practical need: researchers wanted to estimate how long patients survive after diagnosis, how quickly machines fail in industrial settings, or how rapidly individuals adopt new behaviors, but their data were frequently incomplete. A patient might move away before the study ended, a trial might be stopped for ethical reasons, or a piece of equipment might still be running when the observation window closed. Discarding these partial records would waste valuable information and bias results, so statisticians developed a formal framework to incorporate such censored observations into their analyses.
1662 • John Graunt's Life Table
1958 • Kaplan–Meier Estimator
1966 • Competing Risks Framework
1972 • Cox Proportional Hazards Model
2000s • Modern Extensions
The central question this framework addresses is deceptively simple: how do we analyze durations when we don't always observe the actual event? Standard regression techniques assume we have complete outcome measurements for every subject, but in longitudinal studies this assumption is routinely violated. Time-to-event methodology transforms this limitation into a tractable statistical problem by encoding what we do and do not know about each subject's timeline.
SECTION 2
Core Principles & Definitions
Time-to-event analysis revolves around a handful of foundational concepts that distinguish it from ordinary regression and frequentist testing. Every observation in a survival dataset carries two pieces of information: a time value and an event indicator (sometimes called a censoring indicator), which together encode whether the event of interest was actually observed or whether the observation was cut short. Grasping these building blocks is essential before engaging with estimation procedures such as the Kaplan–Meier curve or the Cox regression model.
Time-to-Event (Survival Time)
Event (Failure)
Censoring
Survival Function S(t)
Hazard Function h(t)
KEY TAKEAWAY
SECTION 3
Visual Explanation — Observing Subjects Over Time
The most intuitive way to understand time-to-event data and censoring is through a swimmer plot (also called a follow-up diagram), where each horizontal bar represents one subject's timeline from study entry to either the event or censoring. The diagram below shows six hypothetical patients enrolled in a clinical trial studying time to disease relapse. Some patients experience relapse (marked with an ×), while others are censored — either because the study ended while they were still relapse-free, or because they were lost to follow-up.
In the swimmer plot above, notice that Patient 1 and Patient 6 both have bars extending to the study's end at 36 months, indicating they were observed for the full duration without relapsing — these are administratively censored. Patient 3, however, was censored at approximately 30 months, likely due to loss to follow-up. The critical insight is that all three censored patients contribute information: we know their event-free time is at least as long as their observed bar, even though we cannot pinpoint when (or whether) they will ultimately relapse. This partial information, properly handled by survival methods, prevents the systematic bias that would result from either excluding censored subjects or treating their censoring time as the event time.
SECTION 4
Mathematical Framework
The mathematical formalism of survival analysis centers on several interconnected functions — the survival function, the hazard function, and the cumulative hazard function — that fully characterize the distribution of the event time T. Let T be a continuous, non-negative random variable with probability density function f(t) and cumulative distribution function F(t) = P(T ≤ t). The observed data for each subject i consist of the pair (ti, δi), where ti = min(Ti, Ci) and δi = I(Ti ≤ Ci).
SURVIVAL FUNCTION
S(t) gives the probability that the event has not yet occurred by time t. By definition, S(0) = 1 and S(∞) = 0. The survival function is monotonically non-increasing.
HAZARD FUNCTION
The hazard h(t) is the instantaneous rate of event occurrence at time t, conditional on survival to time t. It is not a probability (it can exceed 1) — it is a rate with units of inverse time.
CUMULATIVE HAZARD
The cumulative hazard H(t) accumulates instantaneous risk from time 0 to t. This identity connects the hazard and survival functions: S(t) = exp(−H(t)).
KAPLAN–MEIER ESTIMATOR
Here, dᵢ is the number of events at time tᵢ and nᵢ is the number of subjects at risk just before tᵢ. Censored subjects reduce the risk set but do not contribute events — this is how censoring is naturally accommodated in estimation.
Non-Informative Censoring Assumption
SECTION 5
Types of Censoring & Truncation
Not all incomplete observations arise in the same way. The type of censoring — and the related concept of truncation — determines which statistical methods are appropriate and how the likelihood function is constructed. Censoring means the event time is only partially known, while truncation means certain subjects are never observed at all because they fall outside the study's observation window. The diagram below classifies the main types.
| Type | What Is Known | Common Scenario |
|---|---|---|
| Right Censoring | T > observed time c | Study ends while patient still alive; patient lost to follow-up |
| Left Censoring | T < observed time c | Event already occurred before first observation (e.g., tooth decay present at first dental visit) |
| Interval Censoring | L < T ≤ R | Event detected between two periodic assessments (e.g., annual screening) |
| Type I (Fixed) | Censoring time C is pre-specified | Study has a fixed end date; all event-free subjects censored simultaneously |
| Type II (Order) | Study stops after r events | Industrial life testing: run n components until r fail, then stop and record remaining as censored |
| Random Censoring | Censoring time C varies across subjects | Patients enroll at different times; drop out unpredictably (most realistic clinical scenario) |
Summary of censoring types and their associated data structures
SECTION 6
Worked Example — Kaplan–Meier Estimation with Censoring
Consider a small clinical study tracking time to tumor recurrence (in months) for eight patients following surgery. The observed data are: 3, 5+, 7, 9+, 10, 12+, 15, 18+, where the + symbol denotes right-censored observations. We will estimate the survival function Ŝ(t) using the Kaplan–Meier product-limit estimator.
Kaplan–Meier Survival Estimate
- 1
Step 1 — Organize the Data
Sort all observations and identify event times versus censored times. Events occurred at months 3, 7, 10, and 15 (δ = 1). Censored observations occurred at months 5, 9, 12, and 18 (δ = 0). The distinct ordered event times are: t₁ = 3, t₂ = 7, t₃ = 10, t₄ = 15. - 2
Step 2 — Compute the Risk Set at Each Event Time
At each event time tᵢ, count the number of subjects at risk (alive and uncensored just before tᵢ). At t₁ = 3: n₁ = 8 (all patients at risk), d₁ = 1. At t₂ = 7: the patient censored at 5 has left, so n₂ = 6, d₂ = 1. At t₃ = 10: the patient censored at 9 has left, so n₃ = 4, d₃ = 1. At t₄ = 15: the patient censored at 12 has left, so n₄ = 2, d₄ = 1. - 3
Step 3 — Compute Conditional Survival Probabilities
At each event time, compute (1 − dᵢ/nᵢ): at t₁ = 3: 1 − 1/8 = 7/8 = 0.875. At t₂ = 7: 1 − 1/6 = 5/6 ≈ 0.833. At t₃ = 10: 1 − 1/4 = 3/4 = 0.750. At t₄ = 15: 1 − 1/2 = 1/2 = 0.500.Conditional probabilities: 0.875, 0.833, 0.750, 0.500 - 4
Step 4 — Compute the Kaplan–Meier Estimate via Cumulative Product
Ŝ(t) is the running product of conditional survival probabilities. Ŝ(3) = 0.875. Ŝ(7) = 0.875 × 0.833 = 0.729. Ŝ(10) = 0.729 × 0.750 = 0.547. Ŝ(15) = 0.547 × 0.500 = 0.274.Ŝ(3) = 0.875, Ŝ(7) = 0.729, Ŝ(10) = 0.547, Ŝ(15) = 0.274 - 5
Step 5 — Interpret the Results
The estimated probability of remaining recurrence-free beyond 3 months is 87.5%, beyond 10 months is 54.7%, and beyond 15 months is 27.4%. The survival curve is a step function that drops only at observed event times. Censored observations reduced the risk set without causing a drop in the survival curve, allowing the information they contribute (event-free time) to influence the estimate without assuming they experienced the event.The median survival time is between 10 and 15 months (where Ŝ(t) first drops below 0.5).
SECTION 7
Strengths, Limitations & Practical Considerations
| Aspect | Strength | Limitation |
|---|---|---|
| Information Utilization | Censored subjects contribute partial information, increasing effective sample size and statistical efficiency | Heavy censoring (>50%) can produce wide confidence intervals and unstable tail estimates |
| Assumptions | Non-informative censoring assumption is plausible in well-designed randomized trials with administrative censoring | Informative censoring (e.g., sicker patients dropping out) violates the independence assumption and biases results |
| Flexibility | Kaplan–Meier is non-parametric — no distributional assumption required for the event time | Cannot directly adjust for covariates; requires Cox regression or parametric models for multivariable analysis |
| Censoring Type | Right censoring is naturally handled by all standard survival methods | Left and interval censoring require specialized methods (e.g., Turnbull estimator) that are less widely available |
| Competing Risks | Framework can be extended to competing risks using cumulative incidence functions | Naively censoring at competing events overestimates the marginal probability of the event of interest |
Strengths and limitations of standard time-to-event methods with censoring
KEY TAKEAWAY
SECTION 8
Connection to Advanced Survival Modeling
The foundational concepts of time-to-event data and censoring serve as the entry point to an extensive family of regression and modeling techniques. Understanding how censoring enters the likelihood function is critical for grasping why the Cox proportional hazards model uses a partial likelihood, why accelerated failure time models model log(T) directly, and why frailty models introduce subject-level random effects. The table below maps the progression from basic to advanced methods.
| Foundation (This Lesson) | Advanced Extension |
|---|---|
| Kaplan–Meier survival curve (non-parametric, no covariates) | Cox proportional hazards model — incorporates covariates via h(t|X) = h₀(t) × exp(βX) |
| Right censoring enters likelihood as S(cᵢ) for censored subjects | Partial likelihood eliminates h₀(t), focusing only on the order of events |
| Non-informative censoring assumption | Joint models for longitudinal and survival data handle informative dropout |
| Single event of interest | Competing risks models and multi-state models for complex event histories |
| Interval censoring | Current status data models and non-parametric maximum likelihood estimation (NPMLE) |
Progression from foundational concepts to advanced survival modeling
The full likelihood for right-censored data illustrates why censoring matters at the mathematical level. For subject i with observed time tᵢ and event indicator δᵢ, the contribution to the likelihood is Li = [f(tᵢ)]δᵢ × [S(tᵢ)]1−δᵢ. When the event is observed (δ = 1), the density f(tᵢ) contributes; when censored (δ = 0), only the survival probability S(tᵢ) contributes, reflecting our knowledge that the true event time exceeds tᵢ. This elegant construction permeates every subsequent survival regression model, making the censoring concepts introduced in this lesson the essential prerequisite for all advanced work in the field.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary & Review
Summary
Time-to-event data measures the duration from a defined origin to an event of interest and is characterized by the pair (tᵢ, δᵢ), encoding both the observed time and whether the event occurred. The survival function S(t) gives the probability of remaining event-free beyond time t, while the hazard function h(t) captures the instantaneous risk at each moment. Censoring — the hallmark of survival analysis — occurs when the event time is only partially observed, most commonly as right censoring (event not yet occurred at last observation), but also as left censoring and interval censoring.
The Kaplan–Meier estimator uses a product-limit formula Ŝ(t) = ∏(1 − dᵢ/nᵢ) to estimate survival while naturally incorporating censored observations by removing them from the risk set without counting them as events. The validity of all standard methods depends on the non-informative censoring assumption — that censoring is independent of the event process. When this assumption is violated, joint models, IPCW, or sensitivity analyses are required. These foundational concepts underpin all advanced survival regression, from the Cox proportional hazards model to competing risks and multi-state frameworks.