Definition
Bias
The bias of an estimator for a quantity is the difference between its expected value and the true value:
An unbiased estimator has , i.e. it is correct on average over repeated samples. Bias is a property of the estimator, not of any single sample: it measures systematic deviation, the error that survives even with infinitely many samples.
Bias in the mean squared error
Bias is one of two independent sources of error in an estimator. The mean squared error decomposes as
so a biased estimator can still be preferable when its variance is low enough that the total error shrinks. Balancing the two terms is the bias-variance tradeoff. In supervised learning the same idea appears at each input as , the bias of a predictor, whose learning-theory counterpart is the approximation error.