Find the Density of Y = 1/X When X Is Uniform on [0,1]
At a glance
- 1. Find the support
Since 0 < X ≤ 1 almost surely, Y = 1/X is at least 1.
- 2. Invert the transformation
For y ≥ 1, the event Y ≤ y is equivalent to X ≥ 1/y.
- 3. Differentiate the CDF
The resulting CDF is 1 − 1/y for y ≥ 1; differentiating gives the density.
- 4. Check the density
Integrate 1/y² over [1, ∞) to verify that the total probability is 1.
If is uniform on and , the reciprocal transformation sends values of near 1 to values of near 1, and values of near 0 to large values of . The density is therefore supported on and decreases as grows.
The density is
Find the support
A uniform random variable on satisfies with probability 1. Taking reciprocals gives . There are no values below 1, while arbitrarily large values are possible when is close to 0.
Strictly speaking, is undefined at . But a continuous uniform random variable equals any particular point with probability zero, including 0. You can define to be any value at without changing its probability distribution.
Derive the density from the CDF
For , the event is impossible, so . For , use the fact that is positive almost surely:
The last equality uses the uniform distribution: for , . Thus the full CDF is
Differentiating wherever the CDF changes gives
At the boundary , the density can be assigned the value according to the displayed formula; changing a density at a single point does not change any probabilities.
Check with the change-of-variables formula
The inverse transformation is , and its derivative is . Since on , the one-to-one change-of-variables formula gives
The absolute value matters: a density cannot be negative, even though the inverse function has a negative derivative. This method agrees with the CDF derivation.
Worked probability example
To find the probability that lies between 2 and 4, integrate the density:
You can check this directly using : the event is equivalent to . A uniform variable on an interval of length 1 falls in that interval with probability .
The CDF also makes tail probabilities quick to calculate. For ,
For example, . The tail decays slowly enough that the mean is infinite:
Common mistakes
- Using the wrong support: cannot be less than 1, because . The reciprocal becomes large, not small, near .
- Forgetting the Jacobian: Substituting into the original density alone is not enough. The derivative factor is required.
- Reversing an inequality incorrectly: From , with and , you get . The direction changes when taking reciprocals.
- Treating as a problem for the distribution: The expression is undefined at exactly 0, but that event has probability zero. It does not add a point mass to the distribution of .
- Confusing the density with a probability: is not the probability that equals exactly . For a continuous random variable, that probability is zero; probabilities come from integrating the density over intervals.
References
- A First Course in Probability, Sheldon Ross
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.