How is variance mathematically defined for a learning algorithm across different training draws?

Quick Overview

Asks for the formal definition of a learning algorithm's variance across independent training sets drawn from the same distribution. Tests understanding of what the expectation is taken over, how variance differs from bias and label noise, and how to estimate it by refitting.

How is variance mathematically defined for a learning algorithm across different training draws?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How is variance mathematically defined for a learning algorithm across different training draws? ```hint Pick the random variable Treat the training set as the random quantity. Fix one test input and ask how the prediction there behaves as you redraw the training set again and again. ``` ### What a Strong Answer Covers - The formula for variance at a fixed input, including the average predictor it is measured around - What the expectation is taken over: training sets of a given size, plus any randomness inside training - How the pointwise quantity is aggregated over test inputs - How variance differs from bias, and how to estimate it in practice ### Follow-up Questions - Write the bias-variance decomposition of expected squared error at a point. Where does label noise enter? - Why does bagging reduce variance, and why does it help less when the base models are highly correlated? - How would you estimate variance when you only have one fixed dataset? - How does the idea carry over to classification with 0-1 loss?

Overview: Asks for the formal definition of a learning algorithm's variance across independent training sets drawn from the same distribution. Tests understanding of what the expectation is taken over, how variance differs from bias and label noise, and how to estimate it by refitting.

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

How is variance mathematically defined for a learning algorithm across different training draws?

What a Strong Answer Covers Guidance

  • The formula for variance at a fixed input, including the average predictor it is measured around
  • What the expectation is taken over: training sets of a given size, plus any randomness inside training
  • How the pointwise quantity is aggregated over test inputs
  • How variance differs from bias, and how to estimate it in practice

Follow-up Questions Guidance

  • Write the bias-variance decomposition of expected squared error at a point. Where does label noise enter?
  • Why does bagging reduce variance, and why does it help less when the base models are highly correlated?
  • How would you estimate variance when you only have one fixed dataset?
  • How does the idea carry over to classification with 0-1 loss?