Bias-Variance Tradeoff

Table of Contents

Bias

Wikipedia definition

Defined as:

bias_variance_tradeoff_5ec2f247c614ff85b6d6ae7d53bd0544f5443589.png

where the expectation is taken over bias_variance_tradeoff_2f482cd20edb20d2ba7e80741a7e454374211f2e.png, i.e. averaging over all possible observations.

Here we have assumed that the real model follows the same model as we want to use as an estimator, and then we're looking at how the exected value of our estimated parameter for this assumed model differs from the real parameter for the assumed model.

ESL definition

From The Elements of Statistical Learning, we have the following definition:

bias_variance_tradeoff_9a033f01ea5ea4dc000c9fbda6cf958b9fa73660.png

where bias_variance_tradeoff_3c314f80373742988ad542a6d4ce66a111b17847.png is a single observation, therefore we interpret bias_variance_tradeoff_7b806ffd9bfd9a10a9a70d5fbcbb21fbe0901df7.png as creating the same model over and over, and then taking the expectation of the predictions of all these models, basically like we do in bagging (Bootstrap Aggregation).

Notice how this differs from the Wikipedia definition where we assume that the estimator follows the same model as the real model, but simply using (potentially) different parameters.

Variance

Bias-Variance tradeoff

From what I understand, this all makes sense when using models where we can analytically determine the bias and variance of our estimator, but how about more complex models which do not have a clear way of performing a bias-variance decomposition?

From what I can tell, people then use the following not-so-rigorous "definitions":

  • Bias relates to underfitting, which can be observed when the training-loss does not decrease further with more training, with the error still being quite large. This might be due to one of the following:
    • Our model is not be "complex" enough to handle the target function → increase complexity
    • We're stuck in a local minima → might be worth changing optimizer (something with momentum, e.g. Adam)
  • Variance relates to overfitting, which can be observed when the difference between the loss on the train and test data is quite large, i.e. don't generalize well. This usually means we need to make use of some regularization methods.