← AI Operations Tools

The Dollarized Confusion Matrix

Replace accuracy with dollars. The optimal threshold for any AI classifier is not a feeling - it is a calculation, and the inputs are the actual cost of being wrong in each direction.

The Matrix

A standard confusion matrix counts errors. A dollarized confusion matrix costs them. The two wrong cells drive every decision that follows.

Predicted Neg
Predicted Pos
Actual Neg
True Negative
+$0
False Positive
$3
Actual Pos
False Negative
$3k
True Positive
+$3

The insight: the four cells rarely cancel. Value on the diagonal moves the threshold just as much as cost off the diagonal.

Threshold Calculator

Start with a scenario
Optimal Threshold
θ* = 0.0010
Asymmetry
1001:1
0 (flag everything)0.5 (default)1 (flag nothing)

The cost of predicting negative and being wrong (missed gain + missed catch) is 1001x the cost of predicting positive and being wrong. Set the threshold low - flag aggressively. At θ* = 0.0010, you flag anything above 0.1% confidence. The asymmetry is extreme - even a small probability of a positive should trigger a flag.

The Formula

# Optimal threshold including value on correct decisions
θ* = (C_FP + V_TN) / (C_FP + V_TN + C_FN + V_TP)
# When V_TP = V_TN = 0 this collapses to C_FP / (C_FP + C_FN)
# Numerator = loss from predicting positive when wrong
# Denominator = total loss across both wrong-prediction arms

A correct prediction has a value too, not just zero. Flagging a true positive is worth V_TP (caught fraud is revenue retained). Passing on a true negative is worth V_TN (the frictionless path through the system). The Bayes-optimal threshold balances the expected utility of predicting positive against predicting negative, giving:

θ* = (C_FP + V_TN) / (C_FP + V_TN + C_FN + V_TP)

The numerator is what you lose when you predict positive and are wrong: you pay C_FP (the false alarm) and you forfeit V_TN (the clean pass you would have gotten). The denominator adds the symmetric loss on the other side. When all four are measured in the same units (dollars per decision), the threshold comes out dimensionless, which is what any probability gate requires.

Worked Examples

From Threshold to Autonomy

The threshold tells you where to draw the line. The expected cost per item tells you how much autonomy the classifier earns.

HARMFUL
Expected cost >$50/item
Classifier is worse than manual - disable it. You're paying for AI and getting negative ROI.
HITL
Expected cost $5-50/item
Classifier assists but humans typically verify every item. AI does the first pass, humans make the call. Illustrative rule: graduate to Autonomous when expected cost drops below $5.
AUTONOMOUS
Expected cost <$5/item
Classifier runs independently with spot-checks only. Illustrative rule: demote back to HITL if cost rises above $10 (hysteresis prevents oscillation).

Connection to the Templeton Ratio

The Verification Quadrant asks: how hard is it to check? The Dollarized Confusion Matrix asks: what happens when you check wrong?

Cost asymmetry modifies the effective Templeton Ratio. A task with T = 10 (fast verification) but 1,000:1 cost asymmetry needs verification at a much higher confidence level. The time to verify stays cheap, but the required thoroughness is driven by the stakes.

# Effective Templeton Ratio
T_effective = time_to_do / time_to_check_at_required_confidence
# Required confidence is set by cost asymmetry
required_confidence = f(C_FP, C_FN, θ*)

The Verification Quadrant tells you where to automate. This matrix tells you how carefully to calibrate what you automate.

When to Use This

Use when

  • +Costs of FP and FN are measurable
  • +Asymmetry exists (at least 2:1)
  • +You control the decision threshold
  • +Volume justifies the optimization

Skip when

  • -Costs are symmetric (just use 0.5)
  • -Scores are not calibrated probabilities
  • -Regulatory bright-lines override cost math
  • -Zero-tolerance domain (infinite FN cost)

Rosetta Stone

Four circles, four readings of the same object. Each role reads the artifact through its own lens.

See also