Learn Before
Concept

Expected Equality of Training Error and Test Error under I.I.D. Sampling

When a model's parameters ww are fixed (not chosen to minimize training loss), the expected training error equals the expected test error. Both expectations are computed by drawing datasets from the same distribution p(x,y)p(x, y), so they are mathematically identical. The discrepancy between training and test error arises only when parameters are selected to minimize training error on a particular sample, introducing an optimistic bias in training error relative to test error.

0

1

Updated 2026-05-17

References


Tags

Data Science