Skip to content

FTime to event · Guide test 141

Kimber–Michael exponentiality test

Uses a transformed probability plot discrepancy to assess exponential fit.

Runs in CodeSplashPython (calls R) example not runR example not run

Do it in CodeSplash

In the app, set it up in Analyze with this method:

In Exponentiality tests (battery), choose Test = Kimber–Michael.

Do it in CodeSplash Run this test on your own data, in Python or R.

Bench

Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.

Bench · Kimber–Michael exponentiality test

25
1.60

1 is the exponential (constant hazard); above 1 wear-out, below 1 early failures.

2.0
0.050

Your data

Weibull lifetimes; shape 1 is exponential
Lifetimes · n = 25 · mean 2.07

If H₀ were true

D_sp = 0.17
  1. The reference: how D_sp varies across samples when H₀ is true, simulated: 999 exponential samples of 25 (simulated null on the shared Wichmann–Hill stream).
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .020).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

Dsp=max⁡i∣2πarcsin⁡1−e−Y(i)−2πarcsin⁡i−12n∣D_{sp}=\max_i\left|\tfrac2\pi\arcsin\sqrt{1-e^{-Y_{(i)}}}-\tfrac2\pi\arcsin\sqrt{\tfrac{i-\frac12}{n}}\right|

With your numbers

Dsp=0.17,n=25D_{sp} = 0.17,\qquad n = 25
arcsin⁡⋅\arcsin\sqrt{\cdot}
variance-stabilizing transform of a stabilized P–P plot

The verdict

D_sp = 0.17, p = .020

p ≤ α = .050: reject H₀

The largest gap on a stabilized probability plot, where every point has about the same variance. H0 fixes no scale: every statistic uses x / x̄.

Statistic
0.171
p-value
0.0200
Kimber–Michael exponentiality test on Lifetimes: n = 25: D_sp = 0.17, p = .020. The p-value is below α = .050, so the data are hard to reconcile with H0.

Kimber–Michael exponentiality test on Lifetimes: n = 25: D_sp = 0.17, p = .020. The p-value is below α = .050, so the data are hard to reconcile with H₀.

Question and hypotheses

H0: Xi are exponential with some common mean θ>0; H1: a departure detectable by this statistic.

Assumptions

Independent identically distributed positive, uncensored observations. The null is an exponential distribution with unknown scale and known origin zero. Censored, shifted or dependent samples need specialized versions.

Formula

D=max⁡i∣2πarcsin⁡1−e−Y(i)−2πarcsin⁡(i−1/2)/n∣D=\max_i\left|\frac2\pi\arcsin\sqrt{1-e^{-Y_{(i)}}}-\frac2\pi\arcsin\sqrt{(i-1/2)/n}\right|

Parameters and notation

The arcsine-square-root transformation changes weighting relative to ordinary KS distance.

Structure of the method

Evaluate fitted exponential probabilities and midpoint plotting positions, transform both through the scaled arcsine-square-root function and take their largest absolute separation. This changes the relative probability-scale weighting compared with an ordinary KS distance.

Estimated and nuisance parameters

The exponential mean is estimated and removed by standardization. The transformed probabilities are computed values; the arcsine transform and position convention are fixed components of the test.

Settings and design choices

Specify the composite-null normalization, endpoint convention, upper-tail rule and replication count. Do not substitute ordinary KS tables or tune the transform after inspecting which observations appear most discrepant.

Fitting and adaptation

There is no neural fitting or fine-tuning stage. For an unknown-scale exponential null, exploit scale invariance or re-estimate the mean in every simulated unit-exponential sample, exactly matching the observed-data algorithm. Calibrate the prespecified tail and repeat the entire procedure after changing a tuning rule. Report simulation count and Monte Carlo uncertainty; use a plus-one randomized p-value convention for newly implemented Monte Carlo tests.

Sensitivity and robustness

Transformation near probability zero or one can amplify numerical and measurement effects. Stable exponential-CDF evaluation helps small arguments; rounded values and estimated-scale dependence still need matched simulation. The maximum discrepancy does not estimate a physical failure threshold, and repeated testing across selected lifetime windows needs multiplicity control.

How to use and calibrate

Use upper-tail exponential-null simulation with refitting.

Example application

Detect an unusually large transformed probability-plot discrepancy.

Interpretation and pitfalls

Watch out

This is not ordinary KS and does not use KS critical values.

What changed in edition 2

  • New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.

Python and R

Uses exptest 1.2 (archived CRAN package); see installation notes. Complete positive uncensored lifetimes, unknown exponential scale and known origin zero. Defaults and tail calibration follow the cited function.

Python · invokes R

Not run — Python launcher syntax checked; R backend runtime not verified · needs Python standard library + Rscript; R packages: exptest

# Python launcher for the complete R implementation below.
# Requires Rscript on PATH and the listed R packages.
import shutil
import subprocess
rscript = shutil.which("Rscript")
if rscript is None:
    raise RuntimeError("Install R and make Rscript available on PATH.")
r_code = r"""
set.seed(2026)
x<-rexp(24,rate=2)
print(exptest::kimber.exp.test(x))
"""
# No shell interpolation. A failed R execution raises an error in Python.
result = subprocess.run([rscript, "--vanilla", "-"], input=r_code,
                        text=True, capture_output=True)
print(result.stdout)
if result.stderr:
    print(result.stderr)
result.check_returncode()
R

Not run — Syntax checked; runtime not verified in the final environment · needs exptest

set.seed(2026)
x<-rexp(24,rate=2)
print(exptest::kimber.exp.test(x))

Sources

  • exptest — exptest · kimber.exp.testAuthor documentation/source reviewed: exptest 1.2.rdrr.io
  • kimber.exp.testrdrr.io
Statistics guide v4 (historical):
Python: Python launcher syntax checked; R backend runtime not verified · R: Syntax checked; runtime not verified in the final environment
Reference's record:
Edition 2 review: Python: skip · R: not executed (Rscript unavailable); why not run: Python: Python-to-R bridge; Rscript is unavailable. R code was not executed. Python: Not run in the reference's review: Python-to-R bridge; Rscript is unavailable. R code was not executed. R: Reviewed but not run: R wasn't available to the reference's authors.

From the CodeSplash statistics guide (v4), entry 141, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT141.