In this article
Preserve NaN interval status and the resampling evidence instead of replacing failure with zero error bars.
The comparison being tested
A benchmark repeatedly records the same rounded latency and requests a BCa bootstrap confidence interval. The interval contains NaN, so a plotting adapter replaces missing endpoints with the point estimate and draws no uncertainty. The chart now implies precision that the interval routine did not establish. The investigation asks how a failed interval calculation is represented in a published comparison.
The confounding mechanism
SciPy documents that a degenerate bootstrap distribution can produce NaN endpoints with method BCa and emit DegenerateDataWarning. Its inspected implementation checks interval calculations for NaN and warns about inability to calculate the BCa interval. This status is different from a successfully estimated narrow interval. More resamples of identical available observations cannot manufacture variation absent from the empirical resampling support.
Fix the experimental contract
Define the observational unit, statistic, resampling design, interval method and reporting policy for unavailable results. Retain raw resolution before rounding because serialization can collapse distinct observations. Keep measurement granularity separate from the estimand’s true variability. A repeated constant value can reflect a stable fixture, coarse measurement or a limited observation window; the interval routine alone cannot distinguish those explanations.
A step-by-step comparison
Prepare a controlled identical-observation fixture and a nondegenerate fixture without claiming either represents production traffic. Run the pinned analysis path, capture warnings, inspect bootstrap statistics and preserve returned endpoints. Trace them through tables and plots. Verify that NaN becomes an explicit unavailable-method result rather than zero width. Review timer resolution and preprocessing before selecting a different interval method.
Evidence required for the result
Acceptance requires the original observations, method configuration, warning record, bootstrap distribution and final rendered interpretation. If another method is used, justify its assumptions and report the change; do not switch silently until error bars look convenient. An empirical standard error computed from resamples and a BCa confidence interval are related outputs but not interchangeable success indicators. Keep missing interval components visible.
Interpretation and limits
This protocol does not claim every constant sample makes every statistical procedure unusable. A degenerate empirical distribution can legitimately have no observed variation, while broader uncertainty remains unmeasured. The correct next analysis depends on the question and collection design. No confidence level or performance result is invented here; the review prevents unavailable inference from being presented as a measured certainty about the system.
Primary references and related reading
Preserve NaN interval status and the resampling evidence instead of replacing failure with zero error bars. SciPy bootstrap degenerate BCa interval warning; SciPy BCa interval NaN detection and warning path.
The proposed investigation of scipy bca degenerate bootstrap interval status is not an executed deployment benchmark. Related reading: lm-eval uncertainty: stderr, sampling seeds and diagnostic limits are different controls; A GPU inference benchmark you can trust.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.