Given two vectors $X$ and $Y$ (length $n$, sampled from random variables), what is the name of the following quantity:
$$ \frac{1}{n^2}\sum_{i=1}^n\sum_{j=1}^n(x_i-y_j)^2 $$
I 'came up' with the formula to quantify the variance between two vectors and I guess that the formula is either nonsense, or if not -- given its triviality -- a well-known quantity. I know it's not the covariance between $X$ and $Y$, but what is it instead?
Edit: obviously, in the context of predictions with e.g. data $X$ and prediction $Y$, this would correspond to the mean squared error (except for the normalisation constant which would be $\frac{1}{n}$). I wonder though whether it has a name (and a meaning) in the context of statistics. see comment by Stephan Kolassa