Skip to content

Reliability Workbench

Reliability covers three views: Kaplan-Meier & Log-Rank, parametric Life Test, and Cox PH / ALT. All fits run locally; results render through the panel's chart renderer.

Reliability KM

Access

  • (Ctrl+Alt+Shift+M) Kaplan-Meier, (Ctrl+Alt+Shift+L) Life Test, (Ctrl+Alt+Shift+X) Cox PH / ALT.
  • CLI: leap survival ..., leap lifetest ..., leap cox ..., leap alt ....

Kaplan-Meier & Log-Rank

For right-censored data, the Kaplan-Meier step estimator is

\[\hat{S}(t) = \prod_{t_i \le t}\left(1 - \frac{d_i}{n_i}\right)\]

where \(n_i\) is the number at risk at \(t_i\) and \(d_i\) the number of events. Its Greenwood standard error is

\[\text{SE}(\hat{S}(t)) = \hat{S}(t)\sqrt{\sum_{t_i \le t} \frac{d_i}{n_i\,(n_i - d_i)}}\]

Log-rank tests two groups via the \(\chi^2\) statistic

\[\chi^2 = \sum_i \left(O_i - E_i\right)^2 / E_i\]

with matched observed/expected event counts \(O_i, E_i\).

Life test

Weibull, Lognormal and Exponential fits to right-censored lifetimes by maximum likelihood (Nelder-Mead / numeric simplex), with delta-method standard errors from a numeric Hessian.

Weibull:

\[\ell(\eta, k) = \sum_{i:\,\text{event}}\left[\ln k + (k-1)\ln t_i - k\ln\eta - (t_i/\eta)^k\right] - \sum_{i:\,\text{cens}}\left(t_i/\eta\right)^k\]

Lognormal:

\[\ell(\mu, \sigma) = \sum_{i} \left[-\tfrac{1}{2}\left(\frac{\ln t_i - \mu}{\sigma}\right)^2 - \ln t_i - \ln\sigma\right] \quad (\text{events}), \qquad \ell = \sum \ln\left[1 - \Phi\left(\frac{\ln t_i - \mu}{\sigma}\right)\right] \quad (\text{censored})\]

Exponential: \(\hat\lambda = d / \sum t_i\) with 95% scale intervals from \(\ln\lambda \pm 1.96/\sqrt{d}\).

AIC/BIC rank fitted distributions:

\[\text{AIC} = 2k - 2\ell, \qquad \text{BIC} = k\ln n - 2\ell\]

B-life quantiles (e.g. B10/B50) are reported with delta-method standard errors.

Cox PH & ALT

Cox proportional-hazards model with a single numeric covariate:

\[h(t\mid x) = h_0(t)\,\exp(\beta x), \qquad \text{HR} = \exp(\beta)\]

Fit by Newton-Raphson on the partial log-likelihood

\[\ell(\beta) = \sum_{i:\,\text{event}}\left[\beta x_i - \ln \sum_{j:\,t_j \ge t_i} e^{\beta x_j}\right]\]

with a numerically estimated information matrix for the standard error; a C index (concordance) is also reported.

Accelerated-life-test (Arrhenius / Inverse Power Law):

\[\ln t = \text{const} - \frac{1}{\text{slope}}\ln\,\text{stress}, \qquad t_{B10}(\text{use}) = t_{B10}(\text{ref})\left(\frac{\text{use}}{\text{ref}}\right)^{-1/\text{slope}}\]

Arrhenius uses \(\ln(\text{life}) = \beta_0 + \beta_1 / T\) with Kelvin-temperature columns; Inverse Power Law uses \(\ln(\text{life}) = \beta_0 + \beta_1 \ln\,\text{stress}\). The panel also reports the acceleration factor \(AF = t_{B10}(\text{ref}) / t_{B10}(\text{use})\).

Active-table integration

The Data Source bar selects between the Demo Preset and active table columns. KM view loads time/event/group columns; Life Test loads time/event; Cox PH loads time/event/x; ALT loads lifetime/event plus stress/temperature columns as applicable. Non-finite or too-short columns are rejected with the panel unchanged.

GUI / CLI parity

Open KM with (Ctrl+Alt+Shift+M), Life Test with (Ctrl+Alt+Shift+L) or Cox PH / ALT with (Ctrl+Alt+Shift+X). Switch views; step the survival curve, compare parametric fits, or predict use-level B10.

leap survival data.csv --time time_hours --event event --test kaplan-meier --svg km.svg
leap survival data.csv --time time_hours --event event --group arm --test log-rank
leap lifetest data.csv --time time_hours --event event --dist weibull --ranks "10,50" --svg life.svg
leap cox data.csv --time time_hours --event event --x temperature_c,strain --ties efron --svg cox.svg
leap alt data.csv --lifetime failure_h --event failed --model Arrhenius --distribution weibull --temperature-k temperature_k --test-condition 400 --use-condition 350 --svg alt.svg
leap alt data.csv --lifetime failure_h --event failed --model InversePowerLaw --distribution lognormal --stress stress --test-condition 80 --use-condition 60