 The corresponding risk function (expected loss) is mean squared error (MSE).Squared Euclidean distance is not a metric, as it does not satisfy the triangle inequality.However, it is a more general notion of distance, namely a divergence (specifically a Bregman divergence), and can be used as a statistical distance.