How does model stacking influence both bias and variance?

Quick Overview

Asks how stacking several base models under a meta-learner changes the bias and the variance of the final predictor. Tests understanding of ensemble diversity, error correlation, out-of-fold training, and how a meta-learner can overfit and undo the gains.

How does model stacking influence both bias and variance?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How does model stacking influence both bias and variance? Stacking here means training a meta-learner on the predictions of several base models. ```hint Take the two terms one at a time Ask what the combined model can represent that no single base model can. Then ask separately what happens to each model's noise when predictions are combined. ``` ```hint The meta-learner is a model too It is fit on a finite set of base-model predictions, so it has a bias and a variance of its own. ``` ### What a Strong Answer Covers - What the combination does to bias, and what the meta-learner contributes - What it does to variance, and what that depends on - How the meta-learner can undo the gains - How to set up stacking so the gains hold ### Follow-up Questions - How does stacking compare with bagging and boosting in which error term each mainly reduces? - Five base models have equal error variance and pairwise error correlation of 0.9. How much does averaging them reduce variance? - When is a nonlinear meta-learner worth its extra variance? - Why does scikit-learn's StackingClassifier refit the base models on the full training set after computing the out-of-fold predictions?

Overview: Asks how stacking several base models under a meta-learner changes the bias and the variance of the final predictor. Tests understanding of ensemble diversity, error correlation, out-of-fold training, and how a meta-learner can overfit and undo the gains.

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

How does model stacking influence both bias and variance? Stacking here means training a meta-learner on the predictions of several base models.

What a Strong Answer Covers Guidance

  • What the combination does to bias, and what the meta-learner contributes
  • What it does to variance, and what that depends on
  • How the meta-learner can undo the gains
  • How to set up stacking so the gains hold

Follow-up Questions Guidance

  • How does stacking compare with bagging and boosting in which error term each mainly reduces?
  • Five base models have equal error variance and pairwise error correlation of 0.9. How much does averaging them reduce variance?
  • When is a nonlinear meta-learner worth its extra variance?
  • Why does scikit-learn's StackingClassifier refit the base models on the full training set after computing the out-of-fold predictions?