A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Transformations of Random Variables

Graduate Depth 104 in the knowledge graph ☐ I know this ☆ Set as goal
1topic build on this
523prerequisites beneath it
See this on the map →
Cumulative Distribution FunctionsProbability Density Functions+2 more→→Order Statistics
probability random-variables change-of-variables distributions jacobian cdf-method

Core Idea

If X has a known distribution and Y = g(X), the distribution of Y can be derived from that of X. The CDF method computes F_Y(y) = P(g(X) ≤ y) directly and then differentiates. When g is strictly monotone and differentiable, this gives the change-of-variables formula f_Y(y) = f_X(g⁻¹(y)) · |d g⁻¹(y)/dy|. For several variables the absolute derivative is replaced by the absolute value of a Jacobian determinant. Many standard distributions arise this way, such as the chi-square distribution as the square of a standard normal.

How It's Best Learned

Begin every problem with the CDF method, since it works for any g and shows where the formula comes from. Then derive the monotone formula once and use it as a shortcut. Draw the graph of g to see which x-values map below a given y, especially for functions such as x² that are not one-to-one. Finish with two-variable examples that need a Jacobian, such as the sum or ratio of independent variables.

Common Misconceptions

Explainer

Statistics constantly produces new random variables from old ones: a measurement converted to other units, the square of an error, the logarithm of an income. If we know the distribution of X and set Y = g(X), we want the distribution of Y.

The CDF method always works. Write F_Y(y) = P(Y ≤ y) = P(g(X) ≤ y), turn the event {g(X) ≤ y} into an event about X, and compute its probability from the distribution of X. Then differentiate to get f_Y. For example, if X is uniform on (0, 1) and Y = -ln X, then for y > 0, the event -ln X ≤ y is the same as X ≥ e⁻ʸ. So F_Y(y) = 1 - e⁻ʸ, and Y is exponential with rate 1.

When g is strictly increasing and differentiable, the method gives a general formula. F_Y(y) = P(X ≤ g⁻¹(y)) = F_X(g⁻¹(y)), and the chain rule gives f_Y(y) = f_X(g⁻¹(y)) · (g⁻¹)'(y). A decreasing g produces a minus sign that cancels the negative derivative, so both cases combine into

f_Y(y) = f_X(g⁻¹(y)) · |d g⁻¹(y)/dy|.

The derivative factor is the stretching factor. Probability is conserved: P(y < Y < y + dy) must equal P(x < X < x + dx) for the matching interval. If g stretches a short interval near x by a factor of 3, the density near y = g(x) must be one third as tall.

If g is not one-to-one, add the contributions from every preimage. For Y = Z² with Z standard normal, each y > 0 comes from z = √y and z = -√y. The CDF method gives F_Y(y) = Φ(√y) - Φ(-√y), and differentiating yields f_Y(y) = (1/√(2πy)) e-y/2, the chi-square distribution with one degree of freedom.

With several variables, (Y₁, Y₂) = g(X₁, X₂), the same reasoning uses the multivariable change of variables: the joint density of Y equals the joint density of X at the preimage, times the absolute value of the Jacobian determinant of the inverse map. This is how one derives the distributions of sums, products and ratios, such as the t and F distributions.

Finally, if X is continuous with CDF F, then F(X) is uniform on (0, 1). Read backward, F⁻¹(U) has CDF F when U is uniform, which is a standard way to simulate samples from F.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Double Integrals: Definition and Setup → Iterated Integrals and Fubini's Theorem → Double Integrals over Rectangular Regions → Double Integrals over General Regions → Applications of Double Integrals: Area, Mass, and Moments → Triple Integrals in Cartesian Coordinates → Triple Integrals in Cylindrical and Spherical Coordinates → Jacobians and Change of Variables → Transformations of Random Variables

Longest path: 105 steps · 523 total prerequisite topics

Prerequisites (4)

Leads To (1)