Why can variance sometimes decrease expected prediction error in 0-1 loss classification?

Quick Overview

Asks why the variance of a classifier under 0-1 loss can lower expected error at some test points, unlike under squared loss. Tests the bias-variance decomposition for classification, how bias and variance interact at biased points, and what that means for bagging and probability calibration.

Why can variance sometimes decrease expected prediction error in 0-1 loss classification?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Under squared loss, variance always adds to expected prediction error. Why can variance in 0-1 loss classification sometimes decrease expected prediction error instead? ```hint Only the label counts Under 0-1 loss a prediction is either right or wrong. Picture a test point where most training sets lead the model to the wrong label, and ask what an occasional different prediction does there. ``` ```hint Define the pieces first Define bias and variance relative to the most common prediction across training sets, then compute the error at a point where that most common prediction is wrong. ``` ### What a Strong Answer Covers - Defines the main prediction, bias and variance for 0-1 loss - Shows that the sign of the variance term depends on whether the point is biased, with a small numeric example - Contrasts this with the additive bias-variance decomposition under squared loss - Connects the result to practice, such as bagging high-variance learners and classifiers whose probabilities are off but whose labels are right ### Follow-up Questions - How does the decomposition change with more than two classes? - If variance lowers error at biased points, why does bagging still usually reduce classification error? - How does the view based on estimated class probabilities relate to the label-based decomposition? - Could you deliberately add randomness to a classifier to lower its error? When would that make sense?

Overview: Asks why the variance of a classifier under 0-1 loss can lower expected error at some test points, unlike under squared loss. Tests the bias-variance decomposition for classification, how bias and variance interact at biased points, and what that means for bagging and probability calibration.

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

Under squared loss, variance always adds to expected prediction error. Why can variance in 0-1 loss classification sometimes decrease expected prediction error instead?

What a Strong Answer Covers Guidance

  • Defines the main prediction, bias and variance for 0-1 loss
  • Shows that the sign of the variance term depends on whether the point is biased, with a small numeric example
  • Contrasts this with the additive bias-variance decomposition under squared loss
  • Connects the result to practice, such as bagging high-variance learners and classifiers whose probabilities are off but whose labels are right

Follow-up Questions Guidance

  • How does the decomposition change with more than two classes?
  • If variance lowers error at biased points, why does bagging still usually reduce classification error?
  • How does the view based on estimated class probabilities relate to the label-based decomposition?
  • Could you deliberately add randomness to a classifier to lower its error? When would that make sense?