In the equation for expected test error we are summing the function's bias, variance and noise.
I am not quite sure why we are also summing the variance of the function. My intuition says that more flexible functions, which have higher variance, can copy the error of our training data too much which will cause overfitting. But we can also have good data with little noise, so why would choosing a more flexible function automatically increase the expected test error?
Or in other words, Why are we also summing the variance in that equation?