The true underlying function is f(x)=3x2. A learning algorithm draws a single training point xtrain∼Uniform[0,1] and observes its noise-free label ytrain=f(xtrain). It then returns the constant predictor f^(x)=ytrain=3xtrain2 for every input.
At the query point x0=0.5, compute the bias of this predictor.