01 / 22

Kaplan-Meier
Survival Curves

Learn how to visualize time-to-event data, read survival probabilities from step functions, and interpret median survival in biostatistics.

Biostatistics

What Is Survival Analysis?

Survival analysis is a branch of statistics that studies the time until an event occurs. The "event" can be death, disease relapse, machine failure, or any well-defined endpoint.

Time-to-Event
How long from enrollment until the event: measured in days, months, or years.
Censoring
When a subject leaves the study or the study ends before the event occurs, the data is censored.
Survival Function
The probability of surviving beyond a given time: \( S(t) = P(T > t) \).

The Idea Behind Kaplan-Meier

The Kaplan-Meier (KM) estimator is a non-parametric method to estimate the survival function from observed data, even when some observations are censored.

Named after Edward Kaplan and Paul Meier, who published the method in 1958, it remains the most widely used survival estimator in clinical research.

Key Terminology

1
Event (failure): The outcome of interest, e.g., death or relapse.
2
Censored observation: A subject who did not experience the event during the study period.
3
\( n_i \): Number of subjects at risk just before time \( t_i \).
4
\( d_i \): Number of events (deaths) at time \( t_i \).
5
Median survival: The time at which \( \hat{S}(t) = 0.5 \): half the population has experienced the event.

The Kaplan-Meier Formula

The estimated survival probability at time \( t \) is the product of conditional survival probabilities at every event time up to \( t \):

At each event time \( t_i \), we compute the fraction who survived that moment: \( \frac{n_i - d_i}{n_i} \). Multiplying all these fractions gives the cumulative survival probability.

Anatomy of a KM Curve

0.0 0.25 0.50 0.75 1.00 0 4 8 12 16 20 Time (months)
\(\hat{S}(t)\)
Step-function curve + censored Median survival

How to Read the Curve

1
Start at \(\hat{S}(0) = 1\): At time zero, everyone is alive (100% survival).
2
Follow the horizontal steps: The curve stays flat between events: no new information changes the estimate.
3
Read vertical drops: Each drop represents one or more events at that time point.
4
Find probabilities: Draw a horizontal line from any time on the x-axis up to the curve, then read \( \hat{S}(t) \) on the y-axis.
5
Identify median survival: Where the curve crosses \(\hat{S}(t) = 0.5\) on the y-axis, read the time on the x-axis.

Understanding Censoring

Censoring occurs when we have incomplete information about a subject's survival time. The KM estimator is powerful because it handles censoring correctly.

Right Censoring
The subject is still alive at the end of the study, or lost to follow-up. We know survival time is at least the observed time.
Effect on Curve
Censored subjects reduce the risk set \( n_i \) but do not cause a drop in the curve.

KM Estimator vs. Life Table

Kaplan-Meier Life Table
Time intervals Exact event times Pre-defined intervals
Step size Varies with data Fixed width
Censoring Handled at exact time Assumed mid-interval
Best for Small to moderate samples Large samples, grouped data
Precision Higher (exact) Lower (grouped)

How to Calculate \( \hat{S}(t) \)

1
Order event times: List all unique times where events occurred: \( t_1 < t_2 < \cdots < t_k \).
2
Count at risk: For each \( t_i \), count \( n_i \): the number still alive and uncensored just before \( t_i \).
3
Count events: Record \( d_i \): the number of events at \( t_i \).
4
Compute conditional survival: \( p_i = 1 - \frac{d_i}{n_i} \) at each event time.
5
Multiply cumulatively: \( \hat{S}(t_i) = \hat{S}(t_{i-1}) \times p_i \), starting with \( \hat{S}(0) = 1 \).

Worked Example: Small Trial

Eight patients are followed. Event times (months): 2, 3, 5, 5, 8. Censored: 4+, 6+, 10+.

\( t_i \) \( n_i \) \( d_i \) \( 1 - d_i / n_i \) \( \hat{S}(t_i) \)
2 8 1 7/8 = 0.875 0.875
3 7 1 6/7 = 0.857 0.750
5 5 2 3/5 = 0.600 0.450
8 2 1 1/2 = 0.500 0.225

Plotting the Curve

0.0 0.25 0.50 0.75 1.00 0 1 2 3 4 5 6 7 8 9 10 Time (months) 5 months 0.875 0.750 0.450 0.225

Comparing Two Groups

KM curves are commonly used to compare treatments. Separate curves for each group show which treatment leads to longer survival.

0.0 0.25 0.50 0.75 1.00 0 6 12 18 24 Time (months)
\(\hat{S}(t)\)
Treatment A Treatment B
\(\hat{S}(t) = 0.50\)

Interpreting Median Survival

The median survival time is the time \( t_m \) at which the KM estimate first reaches or crosses 0.50:

Why median?
Survival data is often right-skewed, so the mean is pulled by extreme values. The median is more robust and interpretable.
Undefined case
If the curve never drops below 0.50 (e.g., most patients survive), the median survival is not reached.

Finding the Median from Data

Given: \( \hat{S}(10) = 0.60 \) and \( \hat{S}(14) = 0.42 \). No events occur between months 10 and 14. What is the median survival?

1
At \( t = 10 \): \( \hat{S}(10) = 0.60 > 0.50 \). Not yet at median.
2
At \( t = 14 \): \( \hat{S}(14) = 0.42 \leq 0.50 \). The curve first drops to or below 0.50 here.
3
Since the KM curve is a step function, the median survival = 14 months: the earliest time at which \( \hat{S}(t) \leq 0.50 \).

Common Mistakes

✕ Ignoring Censored Data
Dropping censored subjects entirely leads to biased survival estimates. Always include them in the at-risk count.
✕ Interpolating Steps
The KM curve is a step function. Reading survival between steps as a slope is incorrect: survival stays constant between events.
✕ Confusing Mean and Median
Mean survival requires the curve to reach zero (all events observed). Median only requires crossing 0.50 and is preferred for censored data.

Summary of Key Concepts

Concept Definition Key Point
\( \hat{S}(t) \) Estimated survival probability at time \( t \) Product of conditional probabilities
Censoring Incomplete follow-up Reduces \( n_i \), no drop in curve
Median survival Time when \( \hat{S}(t) \leq 0.5 \) May be undefined if curve stays above 0.5
Step function Curve shape Drops only at event times
Log-rank test Compares two KM curves Tests if group difference is significant

Question 1 of 5

A Kaplan-Meier curve is best described as which type of function?

Question 2 of 5

At time \( t_i \), there are 20 patients at risk and 4 events. What is the conditional survival probability at \( t_i \)?

Question 3 of 5

A patient is lost to follow-up at month 6 without experiencing the event. How does this affect the Kaplan-Meier estimate?

Question 4 of 5

If \( \hat{S}(8) = 0.55 \) and \( \hat{S}(12) = 0.40 \), what is the median survival time?

Question 5 of 5

When comparing two KM curves, the log-rank test assesses whether: