Problem 4:
Two points are selected at random from the interval [0,1]. Let Z be the distance between these points (Euclidean distance for one dimension). Find the pdf fz(z), the expected value E[Z], and variance Var(Z).
Now suppose that two points are selected at random from the unit square [0,1]x[0,1]. Let T be the distance between these points (Euclidean distance for two dimensions). Find E[T^2].