Probability & Statistics

Product of Two Uniforms

Draw two independent numbers uniformly from the unit interval and multiply them. How likely is the product to land above one half?

solvedmedium1 min

Draw XX and YY independently, each uniform on [0,1][0,1]. What is the probability that the product XYXY exceeds 12\tfrac12?

Reveal solutionHide solution

#A region in the unit square

The pair (X,Y)(X,Y) is uniform on the unit square, so any probability is just the area of the matching region. The event XY>12XY > \tfrac12 is the set of points lying above the hyperbola xy=12xy = \tfrac12. Since xyxxy \le x, the event forces x>12x > \tfrac12, and for each such xx it forces y>12xy > \tfrac{1}{2x}.

Both draws are uniform on the unit square, so the chance is an area. The product beats one half only in the small region above the hyperbola, pinched off near the corner at x equals one half. Its area works out to one minus the natural log of two, all over two.

#Integrating the area

For each xx in (12,1](\tfrac12, 1] the admissible yy run from 12x\tfrac{1}{2x} up to 11, a strip of height 112x1 - \tfrac{1}{2x}. Sweeping xx across the interval,

P ⁣(XY>12)=1/21(112x)dx.(1)\PP\!\left(XY > \tfrac12\right) = \int_{1/2}^{1} \left(1 - \frac{1}{2x}\right) dx. \tag{1}

The antiderivative is x12lnxx - \tfrac12\ln x, so

P ⁣(XY>12)=[x12lnx]1/21=(10)(1212ln12)=12+12ln12.(2)\PP\!\left(XY > \tfrac12\right) = \left[\,x - \tfrac12\ln x\,\right]_{1/2}^{1} = (1 - 0) - \left(\tfrac12 - \tfrac12\ln\tfrac12\right) = \tfrac12 + \tfrac12\ln\tfrac12. \tag{2}

#Result

With ln12=ln2\ln\tfrac12 = -\ln 2,

P ⁣(XY>12)=1ln220.153.(3)\PP\!\left(XY > \tfrac12\right) = \frac{1 - \ln 2}{2} \approx 0.153. \tag{3}

So a little under one chance in six. The product is small far more often than intuition suggests, since multiplying two numbers below 11 drags the result down.