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

rating-variables

Rating variables — the failure rate as a function of what came in

An insurer does not have one claim rate. It has a rate for each cell: a 22-year-old in a sports car in a city, a 50-year-old in a van in the country. The cells are defined by rating variables, and the rate in each is estimated by a generalized linear model with exposure as an offset:

log⁡E[Ni]=log⁡(ei)+xi⊤β\log \mathbb{E}[N_i] = \log(e_i) + x_i^{\top}\beta

NiN_i is the number of failures in cell ii, eie_i its exposure (exposure-base), and xix_i its rating variables.

An eval reports one pass rate for the whole test set. That number answers for the mix of cases in the set and for no other mix.

Why one number misleads

Two segments, with failure rates measured on the test set:

SegmentFailure rateShare of the test setShare of live traffic
Short, single-tool requests5%80%50%
Long, multi-tool requests30%20%50%
  • Rate on the test set: 0.8×0.05+0.2×0.30=10%0.8 \times 0.05 + 0.2 \times 0.30 = 10\%
  • Rate on live traffic: 0.5×0.05+0.5×0.30=17.5%0.5 \times 0.05 + 0.5 \times 0.30 = 17.5\%

Nothing about the system changed. The mix did. The figures are made up to show the arithmetic.

Reweighting

Once the rate is known per segment, the rate for any mix is a weighted sum:

rlive=∑swslive rsr_{\text{live}} = \sum_{s} w_s^{\text{live}}\, r_s

This is how a test set built last quarter can still answer for this quarter's traffic, and how one test set can answer for two customers with different usage.

Candidate rating variables for an AI system

  • Task type: lookup, drafting, calculation, an action with side effects.
  • Input size: tokens in, number of documents retrieved.
  • Tool count and depth: how many tools, how many steps.
  • Language and domain.
  • Whether the request was ambiguous, where that can be labelled.
  • Model version. Always a variable, never folded into the intercept.

Limits

  • A segment needs enough cases. A cell with 8 cases has an interval too wide to use (detection-floor). Thin cells are what credibility-blending is for.
  • Reweighting covers known segments only. A kind of request absent from the test set gets no rate at all. The live log shows which those are.
  • Variables interact. Long input and many tools together may be worse than either. The model form has to allow it.

Up: actuarial-transfer · Next: credibility-blending · Kin: golden-set · actual-vs-expected

Source: classification ratemaking and Poisson regression with an exposure offset are standard, from memory. NIST AI 800-3 (2026-02) applies mixed models to benchmark items, which is the same family of model kept inside the benchmark. The two-segment example is worked here.

über diesen eintrag

Einer von sijie's Wiki-Einträgen. Die KI auf dieser Site ist im selben Corpus verankert und antwortet in sijie's Stimme mit Zitaten zurück auf Einträge wie diesen — das Beantworten kostet sijie Geld, daher wartet sie hinter einem Code: zugriffscode eingeben →