Consider the unit square $S =[0,1]\times[0,1]$. I'm interested in the average distance between random points in the square.
Let $ \mathbf{a} = \left< x_1,y_1 \right>$ and $ \mathbf{b} = \left< x_2,y_2 \right>$ be random points in the unit square. By random, I mean that $x_i$ and $y_i$ are uniformly distributed on $[0,1]$.
The normal approach is to use multiple integration to determine the average value of the distance between $\mathbf{b}$ and $\mathbf{a}$. I would like to try another approach.
$\mathbf{a}$ and $\mathbf{b}$ are random vectors, and each element has known distribution. So, the vector between them also has known distribution. The difference between two uniformly random variables has triangular distribution.
So $\mathbf{c} = \mathbf{b} - \mathbf{a}$. Then, the average distance is the expectation of $\lVert \mathbf{c} \rVert$. Perhaps it would be easier to calculate the expectation of $\lVert \mathbf{c} \rVert^2$.
In any case, I am not sure how to calculate the expectation for $\lVert \mathbf{c} \rVert^2$.
Can someone guide me in the right direction?