Why might two models with the same accuracy have very different log loss?

Quick Overview

Asks why two classifiers with identical accuracy can score very differently on log loss. Tests whether you can explain what each metric measures, work a small numeric example, and connect confidence and calibration to model comparison.

Why might two models with the same accuracy have very different log loss?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why might two binary classifiers with the same accuracy have very different log loss? ```hint Work a tiny example Take four positive examples and two models that get the same three right. Vary only how confident each model is, especially on the one it gets wrong, and compute both metrics. ``` ### What a Strong Answer Covers - What accuracy measures compared with what log loss measures, including the log loss formula - A numeric example with equal accuracy and clearly different log loss - How confidence on errors and confidence on correct predictions each move the loss - The link to calibration, and when to compare models on log loss or Brier score ### Follow-up Questions - Why does log loss punish a confident mistake so much more than Brier score does? - How would you fix a model that has good accuracy but poor log loss? - What goes wrong when a model outputs a probability of exactly 0 or 1?

Overview: Asks why two classifiers with identical accuracy can score very differently on log loss. Tests whether you can explain what each metric measures, work a small numeric example, and connect confidence and calibration to model comparison.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why might two binary classifiers with the same accuracy have very different log loss?

What a Strong Answer Covers Guidance

  • What accuracy measures compared with what log loss measures, including the log loss formula
  • A numeric example with equal accuracy and clearly different log loss
  • How confidence on errors and confidence on correct predictions each move the loss
  • The link to calibration, and when to compare models on log loss or Brier score

Follow-up Questions Guidance

  • Why does log loss punish a confident mistake so much more than Brier score does?
  • How would you fix a model that has good accuracy but poor log loss?
  • What goes wrong when a model outputs a probability of exactly 0 or 1?