1. Kaplan-Meier Estimator

Nonparametric estimate of the reliability function, with confidence interval and MTTF.

The product-limit estimator, known as the Kaplan-Meier estimator, is a nonparametric estimator of the reliability function $S(t)$. It does not assume any distribution for the failure times and accepts right-censored data, that is, items that had not yet failed when the test ended.

Input fields

Field Description
Times Numeric column with the time to failure or to censoring of each item.
Censoring Column that indicates whether the time is a failure or a censoring time. If left as None, all times are treated as failures.
Groups Categorical column (optional) to obtain one curve per group.
Frequency (optional) Column with the number of items in each row, used when the data are summarized.
Failure indicator Value of the Censoring column that represents a failure. The default is 1 (and 0 for censoring).
Trust level Confidence level of the intervals. The default is 0.95.
Plot with confidence interval Includes the confidence interval limits in the curve plot.

Details

The Kaplan-Meier estimator is given by

$$\hat{S}(t) = \prod_{t_i \leq t} \left( \frac{n_i - d_i}{n_i} \right)$$

where $t_i$ are the times at which failures occurred, $n_i$ is the number of items at risk at time $t_i$, and $d_i$ is the number of failures at $t_i$.

It is one of the most widely used techniques in reliability, thanks to its good asymptotic properties (for example, its asymptotically normal distribution), which make it possible to build the confidence intervals shown in the results table. The system also reports the MTTF (mean time to failure) estimated from the curve.

Example 1: valve, complete data

A fan actuation valve is evaluated for lifetime. In the test, the valve sits in a water tank that is heated and cooled, which accelerates its operation. It is estimated that 30,000 cycles (one cycle is one opening and closing of the valve) are equivalent to 10 years of use under normal conditions.

A batch of 30 new valves was tested for up to 50,000 cycles. Eighteen valves failed before this limit and the other 12 were still working at the end of the test (censored). The cycles to failure were: 5626, 11223, 12128, 13566, 14922, 16513, 22138, 26791, 27144, 27847, 28613, 31225, 36229, 38590, 39580, 40278, 41325, and 44540.

The data are in two columns: Tempo (cycles) and Falha (1 for failure, 0 for censoring). The 12 valves that did not fail appear with time 50000 and Falha equal to 0.

To load the data, open Data upload, choose the Examples tab, select Confiabilidade — valvula dados completos, and click Load example.

Valve dataset loaded in Action Stat

In the sidebar menu, open Reliability › Kaplan Meier Estimator and fill in the Settings panel:

  1. In Times, select Tempo.
  2. In Censoring, select Falha.
  3. Leave Groups and Frequency (optional) as None.
  4. Keep the Failure indicator equal to 1 and the Trust level equal to 0.95.
  5. Check Plot with confidence interval.
  6. Click Calculate.

Kaplan-Meier Estimator settings

Results

Kaplan-Meier Estimator for the Reliability Function

Time Number of failures Number at risk Reliability Standard Deviation Lower limit Upper limit
5626 1 30 0.9667 0.0328 0.9024 1
11223 1 29 0.9333 0.0455 0.8441 1
12128 1 28 0.9 0.0548 0.7926 1
13566 1 27 0.8667 0.0621 0.745 0.9883
14922 1 26 0.8333 0.068 0.7 0.9667
16513 1 25 0.8 0.073 0.6569 0.9431
22138 1 24 0.7667 0.0772 0.6153 0.918
26791 1 23 0.7333 0.0807 0.5751 0.8916
27144 1 22 0.7 0.0837 0.536 0.864
27847 1 21 0.6667 0.0861 0.498 0.8354
28613 1 20 0.6333 0.088 0.4609 0.8058
31225 1 19 0.6 0.0894 0.4247 0.7753
36229 1 18 0.5667 0.0905 0.3893 0.744
38590 1 17 0.5333 0.0911 0.3548 0.7119
39580 1 16 0.5 0.0913 0.3211 0.6789
40278 1 15 0.4667 0.0911 0.2881 0.6452
41325 1 14 0.4333 0.0905 0.256 0.6107
44540 1 13 0.4 0.0894 0.2247 0.5753

Summary

MTTF Censoring
35942.6 Right

Kaplan-Meier curve with confidence interval

Interpretation

  • For each failure time, the table shows how many valves were at risk and the estimated reliability, with its 95% confidence interval. For example, the probability that a valve exceeds 30,000 cycles (about 10 years of use) without failing is estimated at 0.6333, with an interval from 0.4609 to 0.8058.
  • Reliability reaches 0.5 at 39,580 cycles: this is the estimated median lifetime.
  • The curve does not reach zero because the largest observed time (50,000 cycles) is censored. This always happens when the largest time is censored.
  • The estimated MTTF is 35,942.6 cycles. Because 40% of the valves had not failed by the end of the test, this value is computed only up to 50,000 cycles and tends to underestimate the true mean life.

Example 2: valve, summarized data

When several items have the same time and the same status (failure or censoring), the data can be summarized in a single row with the number of items. In the valve example, the 12 censored items at 50,000 cycles become a single row with frequency 12:

Tempo Falha Frequencia
5626 1 1
11223 1 1
⋮ ⋮ ⋮
44540 1 1
50000 0 12

Load the example Confiabilidade — valvula dados resumidos and repeat the settings of Example 1, also selecting Frequencia in the Frequency (optional) field.

Settings with the frequency column

The results are identical to those of Example 1: the reliability table, the MTTF of 35,942.6 cycles, and the plot. The frequency column only avoids repeating identical rows.

References

  • J. F. Lawless (1982). Statistical Models and Methods for Lifetime Data. John Wiley & Sons.