Worked case · Reference condition · 12 figures

Confusion-matrix denominators

Read the confusion matrix

Figure 01 / 12

The evaluated population

The evaluated population — Confusion-matrix denominators. Count; one closed observation cohort. Exact values are in the figure data below.
Count; one closed observation cohort

The cohort contains 50,000 labeled payments, of which 300 have the defined synthetic outcome: Defined fraud outcome. The outcome is known by construction here. In production, label uncertainty and selection must be recorded separately.

Figure data and text version
OutcomeCount
Defined fraud outcome300
Other labeled outcomes49,700

Precision, recall, and false-positive rate describe different conditional probabilities. The same threshold can create very different review demand when prevalence changes.

The reference case starts with the stated population and a functioning evidence path. The owner is risk operations.

All amounts, rates, capacity limits, and outcomes in this case are synthetic. The three conditions are separate assumptions for comparison. A better result in the response condition is not measured proof that the proposed control causes that improvement. The figures expose the calculation and its limits; a real deployment needs its own evidence.

Read the result

The rule flags 986 of 50,000 labeled payments. Of those flags, 240 meet the synthetic target, giving 24.34% precision. It misses 60 target events. Under the stated cost assumptions, residual loss and operating friction total $23,574. The important result is the connection between the population, action, capacity, and outcome—not one isolated score.

Model inputs and calculated values

Inputs below are the case-specific values. Each figure states the condition-specific assumptions and units used in its calculation. Calculated values are rounded for display.

InputValue
population50,000
prevalence0.006
severity265
Calculated valueResult
population50,000
positive300
negative49,700
tp240
fp746
fn60
tn48,954
loss15,900
severity265
precision24.34
recall80
Figure 02 / 12

Four outcomes of the rule

Four outcomes of the rule — Confusion-matrix denominators. Counts; rows are actual labels, columns are actions. Exact values are in the figure data below.
Counts; rows are actual labels, columns are actions

The rule flags 240 synthetic positives and 746 negatives. It misses 60 positives. A flagged item is a decision to intervene; it is not proof of fraud, a legal prohibition, or any other real-world conclusion.

Figure data and text version
Known outcomeFlaggedNot flagged
Defined fraud outcome24060
Other outcome74648,954
Figure 03 / 12

Three rates with different denominators

Three rates with different denominators — Confusion-matrix denominators. Rates within this cohort. Exact values are in the figure data below.
Rates within this cohort

Precision is 24.34%, recall is 80%, and the false-positive rate is 1.5%. Changing the denominator changes the meaning. This record keeps each numerator attached to the population from which it came.

Figure data and text version
MetricNumeratorDenominatorResult
Precision24098624.34%
Recall24030080%
False-positive rate74649,7001.5%
Figure 04 / 12

Precision changes with prevalence

Precision changes with prevalence — Confusion-matrix denominators. Percent; fixed conditional detection rates. Exact values are in the figure data below.
Percent; fixed conditional detection rates

This sensitivity plot holds recall at 80% and false-positive rate at 1.5%, then changes prevalence. It is an algebraic comparison, not a forecast. Even unchanged detection quality can produce a very different review queue when the base rate changes. Horizontal positions are the labeled observations or scenarios; equal spacing does not imply equal numerical increments.

Figure data and text version
Assumed prevalencePrecision %
0.1%5.07
0.5%21.14
1%35.01
2%52.12
5%73.73
10%85.56
Figure 05 / 12

The threshold trade-off

The threshold trade-off — Confusion-matrix denominators. Count in the same cohort. Exact values are in the figure data below.
Count in the same cohort

Six illustrative score bands use a stated pair of detection rates. Lower sensitivity can reduce false alarms but miss more target events. These points do not come from a trained model and do not establish the best operating threshold. Horizontal positions are the labeled observations or scenarios; equal spacing does not imply equal numerical increments.

Figure data and text version
Score bandTrue positivesFalse positives
Band 12947,455
Band 22823,976
Band 32581,740
Band 4216596
Band 5150199
Band 67550
Figure 06 / 12

A transparent loss-and-friction calculation

A transparent loss-and-friction calculation — Confusion-matrix denominators. Illustrative USD; expected cost under stated intervention assumptions. Exact values are in the figure data below.
Illustrative USD; expected cost under stated intervention assumptions

At $265 severity per missed synthetic positive, residual loss is $15,900. Review costs $3,944; lost contribution on false alarms is $3,730. The calculation assumes intervention prevents all flagged-positive loss and each false alarm loses the stated contribution. Relax those assumptions before applying it to a real policy.

Figure data and text version
Cost componentUSD
Missed-positive loss15,900
Review cost3,944
False-alarm contribution3,730
Figure 07 / 12

Observed outcomes mature over time

Observed outcomes mature over time — Confusion-matrix denominators. Count; final outcome fixed. Exact values are in the figure data below.
Count; final outcome fixed

The final synthetic positive count is 300. Earlier observations reveal only a stated fraction. Comparing a day-1 cohort with a day-30 cohort would confuse label age with control quality. This curve models observation delay only; it does not change the final outcome. Horizontal positions are the labeled observations or scenarios; equal spacing does not imply equal numerical increments.

Figure data and text version
Days after eventObserved positives
154
3105
7180
14246
30300
Figure 08 / 12

Review demand and available capacity

Review demand and available capacity — Confusion-matrix denominators. Items in the cohort window. Exact values are in the figure data below.
Items in the cohort window

The flag count is 986. The comparison capacity is an illustrative 2,000 reviews per cohort window. A mathematical rule can be coherent while its resulting workload exceeds the operating team’s capacity. Capacity is not permission to ignore an applicable mandatory control.

Figure data and text version
Queue measureItems
Flagged for review986
Available capacity2,000
Excess demand0
Figure 09 / 12

A feature is an observation with provenance

A feature is an observation with provenance — Confusion-matrix denominators. Illustrative data contract. Exact values are in the figure data below.
Illustrative data contract

This evidence contract supports read the confusion matrix. A value needs its event time, arrival time, scope, and source. Keeping unavailable evidence distinct from a measured zero prevents an outage from becoming a falsely reassuring feature.

Figure data and text version
FieldExampleMeaning
entity_refConfusion-matrix denominatorsSubject of this case
event_time2026-09-18T09:00:00ZWhen the event occurred
received_time2026-09-18T09:00:02ZWhen the system learned it
signal_statusavailableEvidence quality, not an outcome
label_definitionDefined fraud outcomeThe target used in these calculations
Figure 10 / 12

Missing evidence changes the observed population

Missing evidence changes the observed population — Confusion-matrix denominators. Count; each row is the same cohort. Exact values are in the figure data below.
Count; each row is the same cohort

The cells show an explicitly constructed completeness profile for three signal groups. The stress condition removes more history and device evidence. Missingness does not prove the target outcome; it changes what the decision process knows.

Figure data and text version
Signal groupAvailableMissing
Identity evidence49,500500
Activity history49,0001,000
Context signal47,5002,500
Figure 11 / 12

Evidence, score, and action remain separate

Evidence, score, and action remain separate — Confusion-matrix denominators. Decision lifecycle. Exact values are in the figure data below.
Decision lifecycle

The policy can use read the confusion matrix only within its approved scope. The action record must retain which evidence was available, which model or rule ran, and which action was actually applied. The final action can differ from the score recommendation when a separate constraint applies.

Figure data and text version
StageRecord
ObserveConfusion-matrix denominators: evidence as of the decision time
EvaluateRule flags 986 of 50,000 labeled payments
ApplyRecord action, reason, owner, and expiry
ReconcileJoin the action to later outcomes without overwriting history
Figure 12 / 12

What the result cannot establish

What the result cannot establish — Confusion-matrix denominators. Interpretation boundary. Exact values are in the figure data below.
Interpretation boundary

Observed classifications do not reveal every counterfactual. The synthetic labels make arithmetic possible, but production decline data is selected by prior policy. Keep measured outcomes, assumed prevention, and unknown alternatives separate when reporting impact.

Figure data and text version
ClaimEvidence in this caseLimit
Detected target240 known synthetic positives flaggedProduction labels may be delayed or wrong
Prevented lossAssumed 63,600 USDRequires an intervention-effect assumption
Customer impact746 synthetic negatives flaggedNot every flag causes abandonment
Unobserved alternativeOutcome without the actionNeeds a valid evaluation design

Connect the result to the system

Report all four cells, outcome definitions, and the cost and capacity implications.

Check the population, evidence, permitted action, and actual effect together. A balanced calculation can still use the wrong population; a successful response can still leave an unknown financial outcome. The case’s numerical result applies only to its stated assumptions.

Sources and further reading

The chapter sources support the concepts and scope. They do not prescribe the synthetic model rates.

  1. scikit-learn: model evaluation metrics
  2. scikit-learn: probability calibration
  3. Federal Reserve SR 26-2: revised model-risk guidance (2026)