In modeling theory, we observe something due to some generation process described by f(x).
Though there’s some process that produces a phenonemon, there’s always some disturbance that we call ϵ that effects what we observe. Then
y=f(x)+ϵ
Let’s talk a little more about ϵ. If we run the same experiment many times, we’ll expect what we see on average to be what the true process is. That is to say E[ϵ]=0. We also assume that this noise is entirely random and independent of the experiment. That is to say that E[ϵ∣experiment]=0 which also implies Cov(ϵ,experiment)=0.
With these assumptions, we’re ready to figure out what we expect y to be on average.
E[y]=E[f(x)+ϵ]=E[f(x)]+E[ϵ]=E[f(x)]
The goal of machine learning is to come up with f^(x)≈f(x). However we do not observe f(x), we observe y=f(x)+ϵ. Lets see what the implications of this are for our attempts at modeling. Remember E[ϵ]=0 and E[ϵ∣experiment]=0. We probably need to spend some time defining what we mean by “experiment” which would require its own discussion but let’s just say this last statement is equivalent to 0=E[ϵ∣x].
Note: To avoid unnecessary clutter, in the following derivation we write f^(x)=f^ and f(x)=f. We also write E[⋅∣x]=E[⋅]
E[(y−f^)2]=E[(f+ϵ−f^)2]=E[(f−f^)2+ϵ2+2ϵ(f−f^)]=E[(f−f^)2]+irreduscible Error = σ2E[ϵ2]+2E[ϵ(f−f^)]=E[(f−f^)2]+2E[ϵ(f−f^)]+σ2=E[(f−f^)2]+2By IndependenceE[ϵ]E[f−f^]+σ2=E[(f−E[f^]+E[f^]−f^)2]+2(0)E[f−f^]+σ2=E[(f−E[f^])2]+VarianceE[(f^−E[f^])2]+2E[(f−E[f^])(E[f^]−f^)]+σ2=f and E[f^] are constants(f−E[f^])2+Variance+f and E[f^] are constants2(f−E[f^])E[E[f^]−f^]+σ2=Bias2(f−E[f^])2+Variance+2(f−E[f^])linearity(E[f^]−E[f^])+σ2=Bias2+Variance+2(f−E[f^])(0)+σ2=Bias2+Variance+σ2
If MSE is chosen as the loss function to minimize, then in machin learning the goal is to find the model that will minimize E[(y−f^)2] for out of sample fit. Since we’ve shown that MSE is a function of Bias, model variance, and noise variance.
Econometrics chooses not to minimize MSE, but rather to minimize bias. Better predictions does not mean that bias is minimized, nor does it mean that the model can be used for inference on treatment effects.