Transformations
& Jacobians
Master the technique of changing variables in probability distributions using the Jacobian method to derive new densities.
Why Transform Random Variables?
In statistics, we often know the distribution of some random variable \(X\), but we actually need the distribution of a function of \(X\): for example, \(Y = X^2\), \(Y = e^X\), or \(Y = \ln X\). Transformations let us derive the new PDF from the old one.
Key Terminology
Visual Intuition
The Change-of-Variable Formula
Equivalently, writing \(x = g^{-1}(y)\):
Multivariate Jacobian
For a bivariate transformation \((X_1, X_2) \to (Y_1, Y_2)\) with inverse \(x_1 = h_1(y_1,y_2)\) and \(x_2 = h_2(y_1,y_2)\):
CDF Method vs Jacobian Method
| CDF Technique | Jacobian Technique | |
|---|---|---|
| Approach | Compute \(F_Y(y) = P(g(X) \leq y)\), then differentiate | Apply the change-of-variable formula directly |
| Requirement | Works for any transformation | Requires \(g\) to be monotonic (or piecewise monotonic) |
| Speed | Often slower: two steps | Often faster: one formula |
| Non-monotonic \(g\) | Handles naturally | Must partition into monotone pieces |
| Multivariate | Becomes very complex | Scales elegantly with the Jacobian matrix |
Step-by-Step Procedure
Example 1: Linear Transformation
Let \(X \sim \text{Uniform}(0,1)\) with \(f_X(x)=1\) for \(x \in [0,1]\). Find the PDF of \(Y = 3X + 2\).
Example 2: Exponential Transform
Let \(X \sim \text{Exp}(1)\) with \(f_X(x)=e^{-x}\) for \(x > 0\). Find the PDF of \(Y = \sqrt{X}\).
Example 3: Bivariate Jacobian
Let \(X_1, X_2 \sim \text{i.i.d. Exp}(1)\). Define \(Y_1 = X_1 + X_2\) and \(Y_2 = \frac{X_1}{X_1+X_2}\). Find the joint PDF of \((Y_1,Y_2)\).
Handling Non-Monotonic Transforms
When \(g\) is not one-to-one (e.g., \(Y = X^2\)), partition the domain into monotone pieces and sum the contributions:
Example: Let \(X \sim N(0,1)\) and \(Y = X^2\). The two branches are \(x = +\sqrt{y}\) and \(x = -\sqrt{y}\):
Mapping Regions in 2D
Application: Polar Coordinates
A classic application is transforming from Cartesian coordinates \((X,Y)\) to polar coordinates \((R, \theta)\). The formula requires the Jacobian of the inverse mapping (expressing old variables in terms of new): \(X = R\cos\theta\) and \(Y = R\sin\theta\).
Common Mistakes
Summary of Techniques
| Scenario | Formula | Key Detail |
|---|---|---|
| 1D Monotonic | \(f_Y(y) = f_X(g^{-1}(y))\,|J|\) | \(J = \left|\frac{dx}{dy}\right|\) |
| 1D Non-Monotonic | Sum over branches | Partition support into monotone intervals |
| 2D Transformation | \(f_{Y_1,Y_2} = f_{X_1,X_2}\,|J|\) | \(J = \det\!\bigl[\frac{\partial x_i}{\partial y_j}\bigr]\) |
| CDF Method | \(F_Y(y) = P(g(X)\leq y)\) | Differentiate to get \(f_Y(y)\) |
| MGF Method | Match \(M_Y(t)\) to known dist. | Works for sums of indep. RVs |
Question 1 of 5
Let \(X \sim \text{Uniform}(0,1)\) and \(Y = -\ln X\). What is the distribution of \(Y\)?
Question 2 of 5
If \(X\) has PDF \(f_X(x) = 2x\) for \(0 < x < 1\), and \(Y = X^3\), what is \(f_Y(y)\)?
Question 3 of 5
For the transformation \((X_1,X_2) \to (Y_1,Y_2)\) where \(Y_1 = X_1 + X_2\) and \(Y_2 = X_1 - X_2\), what is the absolute value of the Jacobian?
Question 4 of 5
Why must the Jacobian appear as an absolute value in the change-of-variable formula?
Question 5 of 5
Let \(X \sim N(0,1)\). To find the PDF of \(Y = X^2\) using the Jacobian method, you must: