Grinstead-Snell-Probability · Problem 6.3.12

Sums of Random Variables

Mathematics · expected-value-variance-continuous

Problem

Find E(XY)E(XY), where XX and YY are independent random variables which are uniform on [0,1][0, 1]. Then verify your answer by simulation.
Intuitive explanation

When two random variables are independent, their joint expectation factors beautifully: E(XY)=E(X)⋅E(Y)E(XY) = E(X) \cdot E(Y). Since both XX and YY are uniform on [0,1][0,1], each has expectation 12\frac{1}{2}—the midpoint of their range. Multiply these together to get your answer, then run a quick simulation by sampling pairs of uniform random numbers, computing their products, and averaging to confirm the theory matches reality.

Intuitive explanation

When two random variables are independent, their joint expectation factors beautifully: E(XY)=E(X)⋅E(Y)E(XY) = E(X) \cdot E(Y). Since both XX and YY are uniform on [0,1][0,1], each has expectation 12\frac{1}{2}—the midpoint of their range. Multiply these together to get your answer, then run a quick simulation by sampling pairs of uniform random numbers, computing their products, and averaging to confirm the theory matches reality.

Related theory

Browse the problem library