Why the Product Has a Logarithmic Distribution
Let \(X\) and \(Y\) be independent Uniform\((0,1)\) random variables, and define their product by \(Z=XY\). Although each factor has a constant density, the product does not: many pairs in the unit square yield products near zero, while a product near one requires both factors to be near one. The resulting density contains a logarithm and becomes unbounded at zero.
The support is bounded, which makes the geometry particularly clear. The event \(XY\le z\) is a region of the unit square; its area gives the CDF. A change of variables gives the density directly. These two approaches also clarify why the density is singular at one boundary but still integrates to a finite probability.
Deriving the CDF from the Unit Square
Because \(X\) and \(Y\) are independent Uniform\((0,1)\), probabilities for their pair are areas in the unit square. Fix \(z\) with \(0<z<1\). For each fixed \(x\), the condition \(XY\le z\) is equivalent to \(Y\le z/x\) when \(x>0\). If \(0<x\le z\), then \(z/x\ge1\), so every possible value of \(Y\) satisfies the condition. If \(z<x<1\), only values \(Y\le z/x\) qualify. Thus
The first integral is the full vertical strip \(0<x\le z\); the second is the area beneath the curve \(y=z/x\) for \(z<x<1\). For \(z\le0\), \(XY\ge0\), and the probability \(P(XY\le z)\) is zero. For \(z\ge1\), \(XY\le1\), so the CDF is one. At the endpoints, \(F_Z(0)=0\) and \(F_Z(1)=1\); neither endpoint has positive probability.
Worked Example: Probability the Product Is at Most One Quarter
For independent Uniform\((0,1)\) variables \(X\) and \(Y\), calculate \(P(XY\le 1/4)\).
Since \(1/4\) lies between zero and one, use the CDF formula: $$ \begin{aligned} P(XY\le 1/4) &=F_Z(1/4)\\ &=\frac14\left(1-\ln\frac14\right)\\ &=\frac14(1+\ln4). \end{aligned} $$
Using \(\ln4\approx1.3862943611\), this is \(\frac14(2.3862943611)\approx0.5965735903\). The value is plausible: a product below \(1/4\) includes the entire strip \(0<x\le1/4\), as well as a substantial region to its right.
Deriving the Density
The earlier material on finite-to-one transformations gives a density by summing contributions from inverse branches. Here, away from \(x=0\), the transformation can be written as \((x,y)\mapsto(x,z)=(x,xy)\), which is one-to-one. Its inverse is \(y=z/x\), with \(x\) unchanged. The absolute Jacobian determinant of the inverse transformation is \(1/x\). The line \(x=0\) has probability zero, so it does not affect the density.
The original joint density is one inside the unit square. In the new coordinates, the region \(0<x<1,\ 0<y<1\) becomes \(0<x<1,\ 0<z<x\). Therefore the transformed joint density is \(1/x\) on that region. Integrating out \(x\), for \(0<z<1\), gives
This agrees with differentiating the CDF on \(0<z<1\): $$ \frac{d}{dz}\bigl[z(1-\ln z)\bigr] =1-\ln z-1 =-\ln z. $$ The change-of-variables derivation identifies the density directly; the CDF derivative provides an independent check on the formula.
To check that the density accounts for all probability, evaluate its improper integral: $$ \int_0^1-\ln z\,dz =\lim_{\epsilon\downarrow0}\bigl[-z\ln z+z\bigr]_{\epsilon}^{1} =1. $$ Here \(\epsilon\ln\epsilon\to0\) as \(\epsilon\downarrow0\). There is no atom at zero: since \(X,Y\) are nonnegative, \(XY=0\) requires \(X=0\) or \(Y=0\), and each event has probability zero. Similarly, \(XY=1\) requires \(X=Y=1\), also an event of probability zero. Together with the density integrating to one, this shows there is no remaining probability mass at either endpoint.
Behavior at the Support Boundaries
The density increases without bound as \(z\downarrow0\), because \(-\ln z\to\infty\). This is an integrable singularity, not an atom. For \(0<\epsilon<1\), the probability of a product in the short interval \((0,\epsilon)\) is $$ P(0<Z<\epsilon)=F_Z(\epsilon) =\epsilon(1-\ln\epsilon), $$ which tends to zero as \(\epsilon\downarrow0\). The density is unbounded there, but its integral over a shrinking interval still vanishes.
At the other boundary, \(f_Z(z)\to0\) as \(z\uparrow1\), and \(F_Z(z)\to1\). The upper tail has a useful exact form: $$ P(Z>z)=1-F_Z(z)=1-z+z\ln z,\qquad 0<z<1. $$ To see the geometry of this tail near one, put \(z=1-\delta\), where \(\delta\downarrow0\). Using \(\ln(1-\delta)=-\delta-\delta^2/2+O(\delta^3)\) gives $$ P(Z>1-\delta)=\frac{\delta^2}{2}+O(\delta^3). $$ Thus a product close to one is less likely on the order of the square of the distance to the boundary. Both factors must lie close to one, so the relevant corner region has approximately quadratic area.
Worked Example: Probability the Product Lies Between One Quarter and Three Quarters
Calculate \(P(1/4<XY\le3/4)\). Since the product has a continuous distribution, the choice of including or excluding either endpoint does not change the probability.
Subtract the CDF values: $$ \begin{aligned} P(1/4<XY\le3/4) &=F_Z(3/4)-F_Z(1/4)\\ &=\frac34\left(1-\ln\frac34\right) -\frac14\left(1-\ln\frac14\right)\\ &=\frac12+\frac34\ln\frac43-\frac14\ln4. \end{aligned} $$
With \(\ln(4/3)\approx0.2876820725\) and \(\ln4\approx1.3862943611\), $$ \frac12+\frac34(0.2876820725)-\frac14(1.3862943611) \approx0.3691879641. $$ Therefore the probability is approximately \(0.3692\). As a check, \(F_Z(3/4)\approx0.9657615543\) and \(F_Z(1/4)\approx0.5965735903\); their difference is \(0.3691879640\), up to rounding.
Worked Example: Upper-Tail Probability Near One
Find the probability that the product exceeds \(0.9\). This event requires both factors to be large.
Using the upper-tail formula, $$ \begin{aligned} P(XY>0.9) &=1-0.9+0.9\ln(0.9)\\ &=0.1+0.9(-0.1053605157)\\ &\approx0.0051755359. \end{aligned} $$
The result is small: only about \(0.00518\), or \(0.518\%\). Geometrically, the event \(XY>0.9\) is the region above \(y=0.9/x\) for \(0.9<x<1\), a thin region near the upper-right corner. The exact calculation is consistent with the boundary approximation: here \(\delta=0.1\), and \(\delta^2/2=0.005\), close to the exact probability.
Moments as a Check on the Distribution
Independence also makes the moments of \(Z\) straightforward to calculate. For any real \(r>-1\), the moment \(E[X^r]\) is finite and equals \(\int_0^1x^r\,dx=1/(r+1)\). Since \(Z^r=X^rY^r\) and \(X,Y\) are independent, $$ E[Z^r]=E[X^r]E[Y^r]=\frac{1}{(r+1)^2}. $$ For \(r>-1\), the corresponding integral using the product density also equals this value: $$ \int_0^1 z^r(-\ln z)\,dz=\frac{1}{(r+1)^2}. $$ For example, this integral follows by integration by parts on \((\epsilon,1)\) and taking \(\epsilon\downarrow0\); the boundary term \(\epsilon^{r+1}\ln\epsilon\) tends to zero because \(r+1>0\). Agreement between these calculations checks both the density and the role of its logarithmic factor.
Worked Example: Mean and Variance of the Product
Calculate the mean and variance of \(Z=XY\). For a Uniform\((0,1)\) variable, \(E[X]=1/2\) and \(E[X^2]=1/3\). Independence therefore gives $$ E[Z]=E[X]E[Y]=\frac12\cdot\frac12=\frac14, \qquad E[Z^2]=E[X^2]E[Y^2]=\frac13\cdot\frac13=\frac19. $$
Now apply \(\operatorname{Var}(Z)=E[Z^2]-(E[Z])^2\): $$ \operatorname{Var}(Z) =\frac19-\left(\frac14\right)^2 =\frac{16}{144}-\frac{9}{144} =\frac{7}{144} \approx0.04861. $$ The mean \(1/4\) is below the midpoint of the support, which is consistent with the product distribution placing substantial probability near zero.
Common Mistakes and Why the Formula Matters
- Assuming the product is uniform. Uniform factors do not imply a uniform product. The CDF calculation shows that \(F_Z(z)=z(1-\ln z)\), not \(z\), and the density varies across its support.
- Treating the infinite density at zero as an atom. A density value at one point does not determine the probability of that point. Here the density diverges as \(z\downarrow0\), but \(\int_0^\epsilon-\ln z\,dz=\epsilon(1-\ln\epsilon)\to0\), and \(P(Z=0)=0\).
- Using the density outside its support. The expression \(-\ln z\) applies only for \(0<z<1\). The density is zero outside that interval; the logarithm is not a density formula for negative \(z\) or \(z>1\).
- Dropping the full strip in the CDF calculation. When \(0<x\le z\), every \(y\in(0,1)\) satisfies \(xy\le z\). Omitting this region loses the first term \(z\) and gives the wrong CDF.
The exact distribution is useful whenever a statistic is the product of two independent proportions or random fractions, and it is a clear example of how a smooth transformation can produce an unbounded density at a support boundary. The CDF is often the simplest route to threshold and interval probabilities; the density is especially useful for integration and moment calculations. In either method, keeping the support and the boundary behavior explicit prevents errors.
Check Your Understanding
Use the formulas and reasoning developed above.
- For \(0<z<1\), explain why the CDF integral has a full-strip term from \(0<x\le z\) and a curved-region term from \(z<x<1\).
- Calculate \(P(XY\le1/2)\) exactly in terms of \(\ln2\).
- Why does \(f_Z(z)\to\infty\) as \(z\downarrow0\) not imply \(P(Z=0)>0\)?
- Use the upper-tail formula to express \(P(XY>z)\) for \(0<z<1\).
- For independent Uniform\((0,1)\) variables, find \(E[(XY)^3]\).