Beginner Topic 14 of 51 AI & Machine Learning
Bias-Variance Tradeoff
Balance between systematic error and sensitivity to data.
How it works
The expected prediction error of a model can be decomposed into bias squared, error from wrong assumptions that makes the model too simple; variance, error from sensitivity to the particular training sample, making it too flexible; and irreducible noise. Simple models have high bias and low variance, complex models have low bias and high variance, and the best generalization comes from balancing them. Ensembles such as bagging reduce variance, and boosting reduces bias.
Step-by-step walkthrough
- Bias is error from wrong assumptions, an underfit model.
- Variance is sensitivity to the particular training data, an overfit model.
- Simple models have high bias and low variance.
- Complex models have low bias and high variance.
- The best model balances both, giving the lowest total error.
Where it is used
The tradeoff guides choices of model complexity, regularization strength, tree depth, number of neighbors and amount of training data needed.
Common pitfall
Modern overparameterized deep networks show double descent, where test error can fall again beyond the interpolation threshold, so the classic U curve is not the whole story. The decomposition is clean for squared error but less direct for other losses. Estimate variance by retraining on resampled data, and use learning curves to see whether more data or a richer model would help.
Where it fits in the course
Bias-Variance Tradeoff is topic 14 of 51 in AI & Machine Learning, rated Beginner. It follows Overfitting and Underfitting. The next topic is Evaluation Metrics.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the AI & Machine Learning quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the AI & Machine Learning quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Bias-Variance Tradeoff?
Where do people use Bias-Variance Tradeoff?
What is the most common mistake with Bias-Variance Tradeoff?
What should I learn before this topic?
How can I practice it?
Is Bias-Variance Tradeoff hard to learn?
How long does it take to learn Bias-Variance Tradeoff?
Which topics are related to Bias-Variance Tradeoff?
What should I study after Bias-Variance Tradeoff?
Related topics
- Overfitting and Underfitting (AI & Machine Learning)
- Evaluation Metrics (AI & Machine Learning)
- k-Means Clustering (AI & Machine Learning)
- Confusion Matrix (AI & Machine Learning)
- Variance and Standard Deviation (Math for Computing)