📐 Bias Definition
Bias²[f̂(x)] = (E[f̂(x)] - f(x))²
Bias measures the difference between the expected prediction of our model and the true value.
• E[f̂(x)]: Average prediction across all possible training sets
• f(x): True function we're trying to learn
• High bias: Model systematically under/over-estimates
📊 Variance Definition
Var[f̂(x)] = E[(f̂(x) - E[f̂(x)])²]
Variance measures how much predictions vary when we train on different datasets.
• f̂(x): Prediction from a specific training set
• E[f̂(x)]: Average prediction across training sets
• High variance: Predictions change dramatically with new data
🎯 In Practice: Estimation
For a regression model trained on dataset D:
Bias estimation:
Train many models on different samples, compute average prediction, compare to true function
Variance estimation:
Measure how much individual model predictions deviate from the average prediction
⚖️ The Tradeoff
Simple models:
• Low variance (consistent)
• High bias (may miss complexity)
Complex models:
• High variance (sensitive to data)
• Low bias (can capture complexity)
Goal: Find the sweet spot that minimizes total error