research30 min studyLesson 988 in Engineering

Negative results and failure-envelope mapping

Turn regressions, timeouts, and unsupported conditions into a precise map of where a mechanism succeeds or fails.

On this page

What you’ll understand

  • Specify success predicates and retain failed or censored outcomes.
  • Distinguish a sampled failure envelope from a universal boundary.
  • Use adverse conditions to refine the mechanism rather than discard the result.

A negative result can distinguish a useful mechanism from a comforting story. An optimization that fails under skew, a recovery design that misses a deadline, or a simulator that reverses a ranking exposes a boundary worth understanding. The scientific contribution is the supported explanation and operating envelope, not a requirement that every experiment improve a bar chart. Preserve the conditions that produce the failure so another investigator can test the same boundary.

Define failure before observing the difficult cases

A success predicate may require correct output, bounded resource use, and a latency or recovery target simultaneously. Specify each requirement and the measurement window. Distinguish a supported configuration that failed from one that could not be executed because a necessary feature was absent. Record both, with their different meanings. A timeout is not a successful request with conveniently missing latency, and a crash cannot simply vanish from the denominator when the claim concerns completed work under a service contract.

Preserve attempted conditions, run identifiers, logs, stop reasons, and partial observations. A timed-out duration is often right-censored: completion would exceed the timeout if the operation eventually completed under that setup, but its exact completion time is unknown. Report a censor-aware analysis or a declared failure metric instead of assigning a fabricated exact latency. If an experiment is unsafe or unaffordable beyond a limit, mark that untested region explicitly. Missing evidence is different from evidence of either success or failure.

Eobserved={x∈Xtested:C(x)=1, L(x)≤Lmax⁡, R(x)≤Rmax⁡}\mathcal E_{\rm observed}=\{x\in\mathcal X_{\rm tested}:C(x)=1,\ L(x)\le L_{\max},\ R(x)\le R_{\max}\}
This observed envelope includes tested configurations satisfying declared correctness C, latency L, and resource R predicates. It is a finite evidence set with metric units specified separately, not a guarantee for every intermediate or untested configuration.↔ Scroll wide equations horizontally.

Explore boundaries using an explicit model of the mechanism

Choose stress axes that follow the explanation: offered load for queueing, hot-key skew for partition contention, state size for recovery, or message loss for a coordination protocol. Use a coarse sweep to find transitions and targeted follow-up points to investigate them. Adaptive exploration is legitimate when reported as such; do not describe its selected outcomes as an unbiased random sample of deployments. Repeat boundary conditions because variability can turn a sharp plotted edge into a probabilistic success region.

A deterministic fluid backlog provides a deliberately simple example. With initial backlog q₀ and constant service faster than arrival, the drain time is q₀ divided by excess service capacity. At equal rates the backlog does not drain, and above service it grows. This is not the waiting-time distribution of a stochastic queue. It isolates a resource balance that can motivate a test, while real arrivals, burstiness, scheduling, and finite buffers can produce different failures even below average capacity.

tdrain=q0μ−λ,λ<μ,tdrain≤Dt_{\rm drain}=\frac{q_0}{\mu-\lambda},\qquad \lambda<\mu,\quad t_{\rm drain}\le D
Backlog q₀ is jobs, λ and μ are jobs/s, and drain time and deadline D are seconds. This constant-rate fluid calculation assumes no changing capacity or stochastic arrivals. The equal-rate and overloaded cases require separate statements rather than division by zero or a negative drain time.↔ Scroll wide equations horizontally.

Report what the failure teaches and what it cannot decide

A failure to establish improvement is not proof that no improvement exists. An imprecise interval can leave useful and harmful effects both plausible. If practical equivalence matters, choose an equivalence margin and an appropriate analysis instead of interpreting a nonsignificant difference as equality. Distinguish an implementation bug, an invalid baseline, and a mechanism that genuinely loses in a valid regime. Publish the unfavorable cell alongside its resource and correctness context so readers can decide which explanation remains credible.

The queue instrument makes two fresh fluid experiments explicit. Reset, set both λ=2 and μ=3, predict the initial four jobs drain after eight Steps, then Step eight times. Separately Reset, set both λ=4 and μ=3, predict backlog eight after eight Steps, then Step eight times. Each Step advances 0.5 seconds, and each run starts with backlog four at time zero. This fixed clipped-linear model provides no arrival randomness, tail-latency samples, or production stability certificate; it demonstrates how a failed load condition can bound a narrow model claim.

Derive a deadline envelope before testing it

A constant-rate fluid model begins with four jobs, serves at μ=3 jobs/s, and must drain by D=4 s. Find the allowed arrival-rate range and test λ=2.5 jobs/s and λ=3 jobs/s.

  1. For λ<3, the deadline condition is 4/(3−λ)≤4. Multiplying by the positive denominator gives 4≤12−4λ, so λ≤2 jobs/s; arrivals are assumed nonnegative.

  2. At λ=2.5, excess service is 0.5 jobs/s and drain time is 4/0.5=8 s. This condition is below service capacity yet fails the four-second deadline.

  3. At λ=3, the backlog remains four indefinitely in this model and never drains. The observed deadline envelope should therefore not be described merely as arrival below capacity: the specific initial state and deadline impose the tighter bound.

The result

A useful negative result names the failed predicate and the state and load conditions that make the failure occur.

Explore the model

Interactive lab

Interactive lab · queue

Keep the failed load condition in the comparison

Reset, set both λ=2 and μ=3, predict backlog zero after eight Steps, then Step eight times. Separately Reset, set both λ=4 and μ=3, predict backlog eight after eight Steps, then Step eight times. Each fresh run starts with four jobs at t=0; the clipped-linear fluid model supplies no stochastic latency evidence.

Keep the failed load condition in the comparisonFluid backlog starts at 4 and follows max(0, 4 + (λ − μ)t). The separate M/M/1 residence-time formula assumes Poisson arrivals, exponential service and λ < μ. Current readings: Fluid backlog: 4; Net rate · λ − μ: −1 /s; M/M/1 mean residence: 1 s. All parameters are adjustable with the labeled controls below.02.557.51001.534.56Elapsed time · sFluid backlogλ < μ
Fluid backlogCurrent time
Fluid backlog
4
Net rate · λ − μ
−1 /s
M/M/1 mean residence
1 s
t = 0 s

Fluid backlog starts at 4 and follows max(0, 4 + (λ − μ)t). The separate M/M/1 residence-time formula assumes Poisson arrivals, exponential service and λ < μ. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA failed condition can reveal an operating boundary when its assumptions are explicit.

Check your understanding

What is the appropriate interpretation of an experiment that times out before completion?

Try it yourself

A fresh fluid backlog of four jobs has μ=4 jobs/s and a two-second drain deadline. Find the maximum allowed nonnegative λ and test λ=3 jobs/s.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Require 4/(4−λ)≤2 only in the regime λ<4.

Compare with the solution

The inequality gives 4≤8−2λ, so λ≤2 jobs/s. At λ=3, drain time is 4/(4−3)=4 s, which fails the two-second target despite service exceeding arrival. These conclusions concern the declared constant-rate fluid model and initial backlog.

Take it with you

  • Retain unfavorable, unsupported, timed-out, and censored outcomes with their meanings.
  • Map a success predicate over tested conditions rather than asserting an untested universal envelope.
  • A failure to prove improvement does not establish equivalence or reveal a mechanism by itself.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.