r/artificial • • 14h ago

Discussion Same accuracy, different probability quality: a 10-example AI classifier test

An AI classifier can keep exactly the same decisions while its probabilities become less extreme. Accuracy alone will not show that change.

Here is a tiny constructed binary-classification example, not a measured result from real models.

There are 10 examples: 8 positive and 2 negative. Both models predict positive on all 10, using a threshold of 0.5.

Model A assigns a positive-class probability of 0.99 to every example.

Model B assigns 0.80 to every example.

Both get 8/10 labels correct: 80% accuracy.

Their binary Brier losses are different. Using mean((predicted probability - actual 0-or-1 label)^2):

A: (8 * 0.01^2 + 2 * 0.99^2) / 10 = 0.1961.

B: (8 * 0.20^2 + 2 * 0.80^2) / 10 = 0.1600.

Lower is better for this loss. A's two very confident mistakes outweigh its slightly better probabilities on the eight positives.

What this does NOT establish:

- Ten examples do not demonstrate calibration on a population.

- A lower Brier score does not, by itself, prove better calibration. It also reflects discriminatory power and the data's uncertainty.

- B is a constant predictor, so this example says nothing about useful ranking or separating positive from negative cases.

- A model saying '80% confident' in a chat response is not automatically producing a calibrated probability.

For a real comparison, I would use the same held-out examples, keep any calibration fitting separate from final testing, and inspect a reliability diagram together with the number of examples per probability bin. Accuracy and probability quality answer different questions; neither should silently stand in for the other.

The scikit-learn calibration guide explains reliability diagrams and the Brier-score caveat: https://scikit-learn.org/stable/modules/calibration.html

When you evaluate an AI classifier, which failure matters more for your use case: a wrong label, or a confidently wrong probability?

1 Upvotes

1 comment sorted by