01 / 20

Transformations
& Jacobians

Master the technique of changing variables in probability distributions using the Jacobian method to derive new densities.

Mathematical Statistics Graduate Level

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.

Modeling
Physical measurements often follow nonlinear functions of a base variable.
Simulation
Generate samples from complex distributions using simple \(\text{Uniform}(0,1)\) draws.
Inference
Derive distributions of test statistics like \(\chi^2\), \(t\), and \(F\).

Key Terminology

Transformation
A function \(g\) mapping \(X\) to \(Y = g(X)\). Must be monotonic (one-to-one) on the support for the basic method.
Jacobian
The absolute value of the derivative of the inverse transformation: \(\left|\frac{dx}{dy}\right|\). Corrects for how \(g\) stretches or compresses probability.

Visual Intuition

PDF of X x dx g PDF of Y y dy

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

1
Write the transformation. Define \(Y = g(X)\) and identify the support of \(X\).
2
Find the inverse. Solve for \(x = g^{-1}(y)\). Verify \(g\) is one-to-one on the support.
3
Compute the Jacobian. Differentiate: \(J = \left|\frac{dx}{dy}\right|\). For multivariate: compute the determinant of the matrix of partial derivatives.
4
Substitute. Write \(f_Y(y) = f_X\!\bigl(g^{-1}(y)\bigr) \cdot |J|\).
5
Determine the new support. Map the endpoints of the support of \(X\) through \(g\) to find the support of \(Y\).

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\).

1
Inverse: \(x = g^{-1}(y) = \frac{y-2}{3}\)
2
Jacobian: \(\left|\frac{dx}{dy}\right| = \left|\frac{1}{3}\right| = \frac{1}{3}\)
3
Substitute: \(f_Y(y) = 1 \cdot \frac{1}{3} = \frac{1}{3}\)
4
Support: \(x=0 \Rightarrow y=2\), \(x=1 \Rightarrow y=5\). So \(Y \sim \text{Uniform}(2,5)\).

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}\).

1
Inverse: \(x = y^2\) (monotone increasing for \(y > 0\)).
2
Jacobian: \(\frac{dx}{dy} = 2y\), so \(|J| = 2y\).
3
PDF: \(f_Y(y) = e^{-y^2} \cdot 2y = 2y\,e^{-y^2}\) for \(y > 0\).

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

\((X_1, X_2)\) Space
\(x_1\)
\(x_2\)
Support \(g\)
\((Y_1, Y_2)\) Space
\(y_1\)
\(y_2\)
Image

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

✕ Forgetting Absolute Value
The Jacobian must be \(\left|\frac{dx}{dy}\right|\), not just \(\frac{dx}{dy}\). A negative derivative does not make the PDF negative.
✕ Wrong Support
After transforming, you must re-derive the support of \(Y\). Using the old support of \(X\) gives an invalid density.
✕ Non-Monotonic Oversight
Applying the one-to-one formula to \(Y = X^2\) without splitting into branches gives half the correct density.
✕ Jacobian Direction
The Jacobian is \(\frac{\partial(\text{old})}{\partial(\text{new})}\), not \(\frac{\partial(\text{new})}{\partial(\text{old})}\). Using the reciprocal inverts the density.

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: