Three points are chosen inside a unit cube uniformly and independently at random. What is the probability that there exists a cube with side length and edges parallel to those of the unit cube that contains all three points?
Problem 889
Official solution
Solution:
Let the unit cube be placed on a -coordinate system, with edges parallel to the , , axes. Suppose the three points are labeled , , . If there exists a cube with side length and edges parallel to the edges of the unit cube that contain all three points, then there must exist a segment of length that contains all three projections of , , onto the -axis. The same is true for the - and -axes. Likewise, if there exist segments of length that contain each of the projections of , , onto the , , and axes, then there must exist a unit cube of side length that contains , , .
It is easy to see that the projection of a point onto the -axis is uniform across a segment of length , and that each of the dimensions are independent. The problem is therefore equivalent to finding the cube of the probability that a segment of length can cover three points chosen randomly on a segment of length .
Note that selecting three numbers uniformly and independently at random from to splits the number line into four intervals. That is, we can equivalently sample four positive numbers uniformly satisfying (here, we set , , , ). The probability that the points all lie on a segment of length is the probability that , or . Since and are symmetric, we have that this probability is and our final answer is .