Transformations of Random Variables
Study guide: Exam MAS-I
A Transformation of a Random Variable produces a new variable Y = g(X) from an existing one. The reliable way to find its distribution is the CDF method: write F_Y(y) = P(g(X) \leq y), rearrange the inequality into an event about X, evaluate with F_X, then differentiate to get the density.
F_Y(y) = P\bigl(g(X) \leq y\bigr)
f_Y(y) = \frac{d}{dy}F_Y(y)
f_Y(y) = f_X\bigl(g^{-1}(y)\bigr)\left|\frac{d}{dy}g^{-1}(y)\right|
- The third line is the change-of-variable shortcut, valid only when
gis strictly monotone on the support ofX. The Jacobian factor|dg^{-1}/dy|is what most solutions forget. - If
gis not monotone (e.g.Y = X^2withXtaking both signs), the shortcut fails — go back to the CDF method and collect every branch ofXthat maps into the region. - Always carry the support through the transformation. Deriving a correct formula on the wrong interval is the most common way to lose the mark.
- A linear transformation
Y = aX + bgivesE[Y] = aE[X] + band\text{Var}(Y) = a^2\text{Var}(X)directly, with no integration needed. - Insurance applications are transformations:
Y = (X-d)_+under a Deductible,Y = \min(X, u)under a Benefit Limit, andX' = (1+r)Xunder Inflation all reshape the Loss Random Variable into the Payment Random Variable. - If
E[g(X)]is all that is wanted, do not findf_Y— useE[g(X)] = \int g(x) f_X(x)\,dxdirectly.
Scaling an Exponential Loss for Inflation Losses follow
X \sim \text{Exponential}with mean 1000. Next year losses inflate by 10%, soY = 1.1X. Find the density ofY.Answer
g(x) = 1.1xis strictly increasing, withg^{-1}(y) = y/1.1and\frac{d}{dy}g^{-1}(y) = 1/1.1. Apply the change-of-variable formula:\begin{align*} f_Y(y) &= f_X\!\left(\frac{y}{1.1}\right) \cdot \frac{1}{1.1} \\ &= \frac{1}{1000}e^{-y/1100} \cdot \frac{1}{1.1} \\ &= \frac{1}{1100}e^{-y/1100}, \quad y > 0 \end{align*}That is exponential with mean 1100 — scaling an exponential just scales its mean. Dropping the
1/1.1Jacobian would have left a density that does not integrate to 1.
The Probability Integral Transform
Xis continuous with strictly increasing CDFF_X. Show thatU = F_X(X)is\text{Uniform}(0,1).Answer Use the CDF method. For
0 < u < 1:\begin{align*} F_U(u) &= P\bigl(F_X(X) \leq u\bigr) \\ &= P\bigl(X \leq F_X^{-1}(u)\bigr) \\ &= F_X\bigl(F_X^{-1}(u)\bigr) \\ &= u \end{align*}
F_U(u) = uon(0,1)is exactly the uniform CDF. Run backwards, for any CDFFthat is strictly increasing where0 < F < 1,X = F^{-1}(U)has CDFF— so uniform random numbers can be turned into samples from such a distribution, the basis of simulation.
A Non-Monotone Transformation
X \sim \text{Uniform}(-1, 1), sof_X(x) = 1/2on(-1,1). Find the density ofY = X^2.Answer
g(x) = x^2is not monotone on(-1,1), so the shortcut does not apply. Use the CDF method, keeping both branches ofXthat produceY \leq y:\begin{align*} F_Y(y) &= P(X^2 \leq y) \\ &= P(-\sqrt{y} \leq X \leq \sqrt{y}) \\ &= \frac{2\sqrt{y}}{2} \\ &= \sqrt{y}, \quad 0 < y < 1 \end{align*}Differentiating:
f_Y(y) = \frac{1}{2\sqrt{y}}, \quad 0 < y < 1Note the support collapsed from(-1,1)to(0,1)— squaring folds the negative half onto the positive half.