Evals & Observability·Question 43 of 83AdvancedAI-75

Your new prompt scores 78% vs the old prompt's 74% on a 100-example eval. Do you ship it?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Not on that evidence alone - a 4-point gap on n=100 is comfortably within noise. The standard error of a proportion near 75% is √(0.75·0.25/100) ≈ 4.3 points, so each score's 95% CI is roughly ±8.5 points; the difference of two independent proportions with that n has a CI wider than the observed 4-point gap. Four points is four examples flipping.

Full worked answer with diagram

Not on that evidence alone - a 4-point gap on n=100 is comfortably within noise. The standard error of a proportion near 75% is √(0.75·0.25/100) ≈ 4.3 points, so each score's 95% CI is roughly ±8.5 points; the difference of two independent proportions with that n has a CI wider than the observed 4-point gap. Four points is four examples flipping.

But the right analysis is paired, and that's the senior move: both prompts ran on the same 100 examples, so ignore the aggregate scores and look at the per-case flips. Suppose 10 cases flipped fail→pass and 6 flipped pass→fail (net +4). The question is whether 10-vs-6 among 16 discordant cases beats a coin flip - that's McNemar's test (equivalently a sign test on discordant pairs), and 10/16 is nowhere near significant. Paired analysis is dramatically more powerful than comparing two independent proportions because it removes the shared variance of case difficulty - often turning an "insignificant" unpaired result into a clear one, or exposing that your gain is a handful of coin flips. A cheap alternative with the same spirit: bootstrap the per-case score differences and read the CI off the resampled distribution.

Also account for sampling nondeterminism: at temperature > 0 (and even nominally at 0, given serving-stack nondeterminism), the same prompt re-run flips cases. Run each config k times (even k=3) to estimate per-case flip variance; judge-graded metrics add judge variance on top - repeated judging of identical outputs shows verdict flips too. Anthropic's "Adding Error Bars to Evals" work is the reference for doing this properly (clustered standard errors, paired inference, power analysis).

What I'd actually do: (1) read the ~16 flipped transcripts - five minutes that often settles it (real fix vs noise vs new failure mode); (2) if the direction looks real but underpowered, grow n on the hard slice or accept-and-monitor if the change is low-risk and reversible; (3) never ship a guardrail-metric regression regardless of the topline win.

Worth sketching. Splitting 100 cases into agreeing and discordant is the whole argument for paired analysis in one picture.

flowchart TD
    R["Same 100 cases,<br/>prompt A vs prompt B"] --> D["84 cases agree:<br/>zero signal"]
    R --> F["16 discordant cases"]
    F --> UP["10 flipped fail to pass"]
    F --> DN["6 flipped pass to fail"]
    UP --> M{"Does 10 of 16 beat<br/>a coin flip?"}
    DN --> M
    M -->|"no"| RD["Read those 16 transcripts<br/>before deciding anything"]

What a good answer covers

  • Not on that evidence alone - a 4-point gap on n=100 is comfortably within noise
  • The standard error of a proportion near 75% is √(0.75·0.25/100) ≈ 4.3 points, so each score's 95% CI is…
  • Four points is four examples flipping
  • But the right analysis is paired, and that's the senior move
  • Suppose 10 cases flipped fail→pass and 6 flipped pass→fail (net +4)

Key terms: paired · McNemar's test · bootstrap the per-case score differences · sampling nondeterminism

Interviewer follow-ups to expect

  1. How large would n need to be to reliably detect a true 4-point improvement (power)?

  2. How does per-case flip variance change your CI math?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep