Let be independent uniform random variables from , and consider the random variable . Computing the expectation is a routine computation: .
However, there a slick way of computing this expectation. Let be another uniform random variable in . Consider the probability . On the one hand due to symmetry, it is equal to , on the other hand it is also equal to .