2026-11-18·par Sijie Wang#cybernetics#engineering#testing

actual-vs-expected

Actual versus expected — checking whether the eval predicted production

Every period an actuary divides the claims that happened by the claims the model said would happen, cell by cell. The ratio is called A/E. Where it sits near 1 the model holds. Where it does not, the model is wrong in that cell, and the cell says where to look.

A/Es=failures observed in segment sexposures×rate predicted for s\text{A/E}_s = \frac{\text{failures observed in segment } s}{\text{exposure}_s \times \text{rate predicted for } s}

For an AI system this table is the bridge that eval-is-not-yet-actuarial says is missing. The eval gives the predicted rate per segment. The live log gives the exposure and the failures. Nothing else is needed.

A worked case

The figures are made up to show how the table reads.

SegmentLive tasksRate from the evalExpectedActualA/E
Lookup10,0002%2001900.95
Drafting6,0005%3003301.10
Multi-tool action2,00012%2404301.79
All18,0007409501.28

The total says the eval is 28% optimistic. The rows say the eval is fine for two segments and badly wrong for the third. A team that looked only at the total would rescale everything by 1.28 and be wrong in all three.

Reading it

  • A/E above 1 in one segment: the test cases there are easier than real requests. Pull failing live cases into the golden-set.
  • A/E above 1 everywhere: the grader is lenient (judge-agreement), or failures in production are being found that the eval's pass criterion does not look for.
  • A/E below 1: either the test cases are harder than reality, or production is not finding its failures yet (loss-development). The second is more common and looks like good news.
  • A/E drifting over time in one segment: the traffic inside the segment is changing, or the model was updated.

What it needs

  • The same definition of failure on both sides. If the eval fails a reply for a missing fact and production only records customer complaints, the two columns measure different things.
  • The same segments on both sides (rating-variables).
  • An interval on each ratio. With 40 expected failures, an A/E of 1.2 is noise (detection-floor).
  • A known discovery lag. Compare a period only after its failures have had time to surface, or correct for the lag.

Up: actuarial-transfer · Next: loss-development · Kin: online-evals · regression-ci

Source: actual-to-expected analysis is standard practice in experience studies, from memory. The application and the example are worked here.

à propos de cette entrée

L'une des entrées de wiki de sijie. L'IA sur ce site est fondée sur le même corpus et répond à la voix de sijie, avec citations revenant à des entrées comme celle-ci — répondre coûte argent à sijie, donc cela attend derrière un code : entrer un code d'accès →