Solution (source code)

= Solution

If the final individual experiences an event at $t_1$, the <Kaplan–Meier estimator> acquires the factor $1-1/1=0$. Thus
$$
\boxed{\phi_1=0.}
$$
The conventional fitted curve is zero thereafter. Its area gives the finite plug-in estimate
$$
\boxed{\widehat{\mathbb ET}_{\mathrm{KM}}=\int_0^{t_1}\widehat F(t)\,dt.}
$$
The area is a sum of rectangles: if $a_0=0<a_1<\cdots<a_m=t_1$ are the event times, it equals $\sum_{j=0}^{m-1}\widehat F(a_j)(a_{j+1}-a_j)$. Censoring times within a constant segment do not alter its area.

Both terminal estimates have poor reliability because the last <risk set> has size one: one observed outcome determines whether the entire remaining fitted tail stays positive or collapses to zero. The zero tail is an empirical endpoint convention, not evidence that every future member of the population must fail by $t_1$. With earlier <right censoring>, the displayed finite area can be especially sensitive to this last event and does not remove uncertainty about the population tail. In the final-censoring case the full mean lacks a determined tail area; in the final-event case the conventional full fitted mean is finite and calculable, but should be reported with this limitation. A <restricted mean survival time> at a prespecified cutoff within reliable follow-up often avoids the unstable terminal extrapolation.