What is the difference between empirical risk and true (generalization) risk?
Last updated
True risk is expected loss over the full (unknown) data distribution. Empirical risk is average loss on a finite sample, and the difference is the generalization gap.
Training error is optimistically biased because the model was fit to that same data. The gap grows with model complexity and shrinks with more data.
Estimate true risk on held-out data or with cross-validation, without reusing the test set for tuning.