The bias-variance trade-off
10 questions on bias, variance and noise, how model flexibility and regularisation move them, and what the trade-off does and doesn't tell you.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
Which combination typically describes a very flexible model?
- High bias and low variance
- Low bias and high variance
- High bias and high variance
Sample 2
The strength of a penalty on the weights is raised from very small to very large. What happens to bias and variance?
- Variance rises and bias falls
- Both fall
- Variance falls and bias rises
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
Train the same model on two slightly different samples of the same data, and you will get two slightly different models. Sometimes the difference is tiny and sometimes it is huge. That sensitivity to the particular sample is half of what goes wrong when a model makes bad predictions. The other half is more stubborn: even if you could average over every possible sample, a model that is too simple can be wrong in a systematic way. The two together, plus the noise nobody can remove, explain nearly every disappointing model, and they pull in opposite directions. That is the bias-variance trade-off.
This quiz builds the idea from the thought experiment that defines it. Imagine drawing many training sets of the same size and fitting the model to each. The average of those fits compared with the true underlying function gives the bias, and the scatter of the individual fits around their own average gives the variance. You will learn how the expected error splits into these two parts and the noise floor, and how that split explains why very flexible models and very rigid ones fail in opposite ways.
You will then see the idea at work with regularisation, the dial that moves a model between rigid and flexible. Turning it up makes fits more alike but systematically off, and turning it down does the reverse. The best setting balances the two, and the quiz asks where, compared with the error on fresh data. It also asks what averaging can do, and why the idea is so powerful in practice. Finally, it looks at the limits of the tool: the thought experiment needs many data sets, while real projects have just one.
Common misunderstandings are worth testing. People think that bias in this sense means the same as the unfairness in the data, that a low-bias model is always a good one, and that more data fixes both parts equally. The quiz separates these carefully and shows that the decomposition is best used as a guide to intuition, not as a recipe. A useful habit when a model disappoints is to ask which of the two is to blame, since the remedies differ: more data and stronger regularisation help against variance, whereas a richer model or better features help against bias. Keeping the two sources of error apart makes it much easier to decide whether to collect data, to change the model or to adjust the penalty.
The quiz suits students, practitioners and anyone who has been told to «balance bias and variance» without a clear picture of what it meant. It needs no mathematics. There are 10 questions, each explained after you answer, and the quiz takes about four minutes.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation appears after every answer.
›Is statistical bias the same as bias in a data set or an algorithm?
No. Statistical bias here means a systematic gap between a model's average prediction and the true function. Bias in the sense of unfairness is about skewed data or unequal treatment of groups. The two are unrelated, although both can be present in the same system. Both meanings of the word are in common use, so it pays to say which one you mean.
›What do bias and variance mean?
Bias is the extent to which the average prediction over all possible training sets differs from the true function. Variance is the extent to which the predictions from individual training sets scatter around that average. Together with the noise in the data they make up the expected squared error. Neither can be read off a single trained model, since both describe the behaviour of the training procedure over many possible data sets.
›Why do flexible models have high variance?
A flexible model can bend to follow whatever it is shown, including the random quirks of the particular sample. A different sample has different quirks, so the fit changes a lot.
›Why do rigid models have high bias?
A rigid model can only produce a limited range of shapes. If the truth lies outside that range, then no sample can make the model right, however much data you collect. The fits agree with each other, which means low variance, but they agree on the wrong answer. Giving such a model more features, or more layers, makes it richer and so reduces its bias.
›How does regularisation move a model along the trade-off?
Turning the penalty on the weights up or down moves a model along the trade-off, and choosing its strength is the practical way of picking a point on it.
›Does more data help with bias or variance?
Mostly with variance. A larger sample leaves less room for chance quirks, so fits become more alike and closer to their average. It does not repair a model that is too rigid to represent the truth, which needs a more flexible model. That is why collecting more data is the first remedy for an overfitting model, whereas a richer model is the first remedy for an underfitting one.
›Why is the decomposition of limited practical use?
Because it is defined by averaging over many training sets, and in practice you have one. If you did have many, you would be better off merging them into one large training set. The decomposition still gives valuable insight into why complexity has to be chosen carefully. The idea also helps explain why combining many models, as in ensembles, often works so well: each one may vary a lot, but their average varies far less.