Skip to content

Safety E-STOP fires on pure noise in 54% of 1-second runs; statistic is not an e-process #2

Closed

Description

@SMC17

RtFusionKernel.stepImu documents an "anytime-valid e-process" with warn_e_threshold = 20 // alpha <= 0.05 and estop_e_threshold = 1000 // alpha <= 0.001. Neither bound holds.

Measured (Zig 0.16.0 ReleaseFast, M2 Max, c1ead21). Input is i.i.d. accel_z = 9.81 + N(0, 0.05²), with no anomaly; 2,000 runs of 1,000 steps (1 s at 1 kHz), seed 17:

claimed measured
P(WARN at any time) ≤ 0.05 0.998
P(E_STOP) ≤ 0.001 0.542

Why:

  • The increment 3·|z| − 4.5 uses |z| in a one-sided Gaussian likelihood ratio. Under H0, E[exp(3|z| − 4.5)] = 2·Φ(3) ≈ 2.0, not ≤ 1, so the running product is not a supermartingale.
  • log_e = max(0, log_e + lr) is a CUSUM recursion. Clamping at 0 also breaks Ville's inequality. CUSUM is a fine change detector, but its threshold sets an average run length, not an error probability.

Fix: either (a) use a valid two-sided mixture e-process without clamping, and calibrate it, or (b) call it CUSUM, and pick thresholds from a measured in-control run length. Then add the false-alarm simulation as a test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions