KaplanMeier
The Kaplan-Meier estimator, also known as the product-limit estimator, is a nonparametric statistic used to estimate the survival function from time-to-event data, especially when some observations are censored. It is widely applied in medical research to describe the probability of surviving beyond a given time.
The estimator is constructed from observed event times. For each event time t_i, let n_i be the
S(t) = ∏_{t_i ≤ t} (1 − d_i / n_i).
The resulting curve is a step function that drops at event times and remains flat when censored
Assumptions include noninformative censoring (the reason for censoring is independent of the survival process) and independence
Variance and confidence intervals are typically derived using Greenwood’s formula or by transforming the standard error
History and extensions: the method was introduced by Edward L. Kaplan and Paul Meier in 1958. It