Survival Analysis and Kaplan-Meier Curve
On this page
Direct answer
The Kaplan-Meier curve is a stepwise, non-parametric estimate of the probability of surviving beyond each observed event time. It multiplies the conditional survival probabilities at every event, and a censored patient contributes time only up to the point of leaving the study. The median survival is the time at which the curve falls to 0.5, and the log-rank test compares two or more curves.
What you must remember
- Censoring: a patient who is lost to follow-up, withdraws, or is alive at the end of the study is censored, contributing time but no event.
- Kaplan-Meier step: at each event time, survival is multiplied by (1 − d/n), where d is deaths and n is patients still at risk.
- Median survival: the time at which the estimated survival probability first reaches 0.5, read directly from the curve.
- Log-rank test: a chi-square test that compares the observed and expected events in each group across all event times.
- Hazard ratio: the ratio of instantaneous event rates, usually estimated by a Cox proportional hazards model rather than from the Kaplan-Meier curve alone.
- Non-parametric nature: the Kaplan-Meier estimator makes no assumption about the shape of the survival distribution.
- Tick marks: small vertical marks on the curve show censored observations, and a drop occurs only at observed event times.
Building the curve from event times
The estimator is simple to compute by hand, and examiners often present a small table of event times. Each step updates the probability of surviving past the next event.
- List the event times: order the observed deaths and censored times, keeping the count of patients at risk just before each time.
- Compute the step: at each death time, multiply the survival so far by (1 − deaths / patients at risk).
- Carry censored patients: remove censored patients from the risk set after their time, without counting them as deaths.
- Read the median: find where the curve crosses 0.5, which is the median survival time.
- Compare groups: apply the log-rank test to the two curves to judge whether survival differs.
Worked example: with 10 patients at risk and 2 deaths at one time point, survival falls by a factor of 0.8, so a starting survival of 1.0 becomes 0.8 at that point.
Where the exam tries to catch you
Survival questions turn on how censored patients are handled and on what the curve actually measures.
- Trap: Treating a censored patient as having died or as having survived to the end. Correct: a censored patient contributes person-time up to censoring only, and dropping them from the analysis at the start biases the estimate.
- Trap: Reading the survival at a fixed time as the median. Correct: the median is the time when survival reaches 0.5, which may differ from the value at any other chosen time.
- Trap: Using the log-rank test to estimate how much a treatment improves survival. Correct: the log-rank test only tests whether curves differ, while the hazard ratio quantifies the size of the difference.
Frequently asked questions
How is survival estimated in a Kaplan-Meier curve?
The Kaplan-Meier estimate is the product of conditional survival probabilities at each observed event time. At every death time, the survival probability is multiplied by 1 minus the number of deaths divided by the number still at risk.
How are censored patients handled in a Kaplan-Meier analysis?
Censored patients are included in the risk set until the moment they leave the study, but they are never recorded as deaths. Their information is used for the time they were observed, which avoids underestimating survival.
How is the median survival read from a Kaplan-Meier curve?
The median survival is the time at which the Kaplan-Meier curve first falls to a probability of 0.5. If the curve never reaches 0.5 before the study ends, the median cannot be estimated from the data.
What does the log-rank test compare between two survival curves?
The log-rank test compares the observed number of events in each group with the number expected if the groups had identical survival at every event time. A significant result indicates that the two survival curves differ.
Why is a hazard ratio reported alongside a log-rank test?
A hazard ratio quantifies how much the event rate differs between groups, while the log-rank test only indicates whether a difference exists. Reporting both gives the statistical significance and the size of the effect.