We know that in a prediction task of predicting $Y$ given $X$, $g(x) = E[Y|X=x]$ is the best predictor if the loss function is mean squared loss (albeit not the only one), $E[(y-g(x))^2]$.
For which expected loss function (or functions), conditional variance $VAR[Y|X]$ is the optimal predictor?
I acknowledge the fact that there may not be such a loss function as it may require the loss function to have a priori knowledge of the mean. And if it exists it is definetely not a proper loss function as variance is always positive but the domain of a distribution may be on the negative part of the real line. Nevertheless I cannot prove its absence.