Overfitting and the Bias-Variance Trade-off · seed 1 · A4, ink-friendly. The answer key prints on its own page for grown-ups.
En anglais

Too stiff, too wobbly, or just right

Computing · Machine Learning · ages 19-21
Name ______________________   Date ____________
  1. A straight line fits curving data and misses the same way no matter how much data arrives. What is this?

    • Bias
    • Variance
    • Overfitting
  2. A model always predicts 0.4 while the true share is 0.5. With bias as average prediction minus truth, what is the bias?

    Answer: ______________

  3. High prediction variance at a fixed input means predictions are widely spread around their average across possible training samples.

    Circle one:   True   False

  4. If a model has bias at an input, its predictions at that input cannot also vary across training samples.

    Circle one:   True   False

  5. Which method can reduce variance by combining fitted models?

    • Averaging many models over resampled data
    • Fitting one fixed line without comparing samples
    • Discarding observations without combining predictions
  6. Three models have these errors on the same held-out sample: A: training 8, held-out 9; B: training 4, held-out 5; C: training 2, held-out 7. Select by the lowest held-out error. Which choice follows this rule?

    • Model A, because its held-out error is 9
    • Model C, because its training error is 2
    • Model B, because its held-out error is 5
    • Model C, because its held-out error is 7
  7. At one fixed input, two equally likely training samples give predictions 2 and 4. Their average is 3. Prediction variance is the average squared distance from this average. What is the prediction variance?

    Answer: ______________

  8. Training error falls but held out error climbs as you add flexibility. What is happening?

    • Perfect learning
    • Underfitting
    • Overfitting
  9. Two models make errors: one is steady and stiff, and the other swings with samples. Which pairing is right?

    • Both are bias
    • Stiff is variance, swinging is bias
    • Stiff is bias, swinging is variance
  10. After collecting more representative training data, predictions at a fixed input have a smaller spread across repeated samples, but their average remains below the true mean response. Which conclusion is supported?

    • Bias disappeared, since a larger sample removes every error
    • Variance fell, while a negative bias remains
    • Variance rose, while the average miss proves there is no bias
LightMySky · lightmysky.comW1-mt_xznyNxeNNw-s1

Answer key

For grown-ups. Fold this page away before handing over the rest.

Too stiff, too wobbly, or just right W1-mt_xznyNxeNNw-s1

  1. Bias · Steady misses from a model that is too stiff mean bias.
  2. -0.1 · 0.4 minus 0.5 is minus 0.1, a steady underestimate.
  3. True · Variance averages squared distances from the average prediction across training samples. High variance describes a wide spread, not a guaranteed jump after every small edit.
  4. False · Bias concerns the average prediction relative to the true mean response. Variance concerns the spread around that average. A model can have both at the same input.
  5. Averaging many models over resampled data · Bagging averages predictions from models fitted to bootstrap samples of training data. It can reduce variance when their sampling errors differ.
  6. Model B, because its held-out error is 5 · Compare held-out errors 9, 5 and 7. The lowest is 5, so select model B. Model C's lower training error does not change the stated selection rule.
  7. 1 · The distances from 3 are -1 and 1. Squaring gives 1 and 1. Their average is (1 + 1) / 2 = 1.
  8. Overfitting · Falling training error with rising held-out error suggests overfitting: added flexibility is not improving performance on the held-out data.
  9. Stiff is bias, swinging is variance · A systematic average miss indicates bias. Changes in predictions across training samples indicate variance. One model can have both.
  10. Variance fell, while a negative bias remains · The smaller spread across training samples means lower prediction variance. The average remains below the true mean response, so bias is still negative.
Worksheet · LightMySky