Skip to main content

Change of variables

Change of variables is the technique of rewriting a random variable in Intro to Probability as a new variable so its distribution is easier to find. You use it to turn a messy transformation into a probability or density calculation you can actually do.

Last updated July 2026

What is change of variables?

Change of variables is the move you use in Intro to Probability when a random variable is transformed into a new one and you want the new distribution. Instead of working directly with the original variable, you rename the outcome in a simpler form, like Y = g(X), and then work backward to describe Y.

The main idea is that probabilities do not disappear when you change the way you label the outcome, but the formula you use often does. If X has a known Cumulative Distribution Function (CDF), you can often find the CDF of Y by rewriting the event "Y \le y" in terms of X. That gives you a way to calculate probabilities even when the transformation is nonlinear.

For one variable, the cleanest path is often the CDF method. You start with P(Y \le y), substitute Y = g(X), and solve for the X-values that satisfy the inequality. From there, you can write the new CDF and, if needed, differentiate it to get the Probability Density Function (PDF). When the transformation is one-to-one and continuous, this is where the Jacobian shows up in more advanced versions of the method, because the scale of the variable changes and the density has to be adjusted.

A simple example is Y = 2X + 3. If X is a continuous random variable, then the interval for Y is just a shifted and stretched version of the interval for X. If you want P(Y \le 7), you rewrite that as P(2X + 3 \le 7), which becomes P(X \le 2). The same logic works for more complicated functions, but the algebra gets heavier.

The part that trips people up is thinking that you can always just substitute numbers into a PDF and call it done. You cannot skip the transformation step, because densities change shape when variables are stretched, compressed, or flipped. Change of variables is really about translating the event first, then applying the probability rule in the original variable.

Why change of variables matters in Intro to Probability

Change of variables is one of the main tools for finding the distribution of a transformed random variable in Intro to Probability. A lot of real problems do not hand you a neat variable like X and ask for P(X \le a). Instead, they give you something like the square of a measurement, the sum of two quantities, or a rescaled version of a model output.

This is where the method shows up again and again. If you know the distribution of X but need the distribution of Y = g(X), you need a way to move from the old description to the new one without losing the probability information. In a CDF-based approach, that means translating an inequality in Y into an inequality in X. In a density-based approach, it means making the proper adjustment so the area under the curve still represents probability.

The skill matters because it connects algebra with probability language. You are not just rewriting an expression, you are rewriting an event. That is a different kind of thinking from plugging values into a formula, and it shows up in homework problems on transformed random variables, cumulative distribution functions, and sometimes sums or products of random variables.

It also builds intuition for why some transformations make problems easier. A messy random variable can become simpler after you shift, scale, or invert it. Once you see how the distribution changes, you can calculate probabilities, compare models, and interpret what a new variable is doing.

Keep studying Intro to Probability Unit 5

How change of variables connects across the course

Cumulative Distribution Function (CDF)

The CDF is usually the first tool you reach for with change of variables. You rewrite the probability statement for the new variable, then express it in terms of the original variable's CDF. This works especially well when the transformation is nonlinear and the density would be awkward to handle directly.

Jacobian

The Jacobian is the adjustment factor that appears when a variable change stretches or compresses scale. In one-variable probability, it shows up when converting from one density to another. If you forget it, your transformed PDF will not integrate to 1, which is a red flag.

Probability Density Function (PDF)

A PDF tells you how probability is spread across values of a continuous random variable, and change of variables tells you how that spread changes after a transformation. If Y = g(X), the PDF of Y is usually not the same shape as the PDF of X, even when the variables are tightly related.

Discrete Cumulative Distribution Function

Discrete random variables can also be transformed, but the method looks a little different because you work with probabilities at specific values instead of densities. The idea is still to map the new variable back to the original one, then sum the relevant probabilities from the discrete CDF.

Is change of variables on the Intro to Probability exam?

A quiz or problem-set question will usually give you a random variable X and a transformed variable like Y = 1/X, Y = X^2, or Y = aX + b, then ask for the distribution of Y. Your job is to rewrite the event for Y in terms of X, find the new CDF or PDF, and make sure the answer has the right support, like only positive values or only values in a certain interval.

If the problem asks for a probability, you translate the inequality first and calculate it with the original variable. If it asks for a density, you may need to differentiate the transformed CDF or include the Jacobian so the area still adds up correctly. A common mistake is forgetting that the range changes too, especially when the transformation flips the order or turns negative values impossible.

Change of variables vs substitution in algebra

Algebraic substitution replaces one expression with another to simplify an equation. Change of variables in probability goes further, because you are not just simplifying notation, you are transforming a random variable and tracking how its distribution changes. The probability statement or density has to be rewritten too.

Key things to remember about change of variables

  • Change of variables rewrites a random variable into a new one so you can find the new distribution more cleanly.

  • The safest first move is often to rewrite P(Y \le y) in terms of the original variable X.

  • For continuous variables, the PDF changes shape when you stretch, shift, or invert the variable, so you cannot just substitute blindly.

  • The Jacobian corrects for how much the transformation expands or compresses scale.

  • Check the new variable's range, because a transformation can create restrictions that were not obvious at first.

Frequently asked questions about change of variables

What is change of variables in Intro to Probability?

It is the method of turning a transformed random variable into an equivalent problem in the original variable. You use it to find the distribution, CDF, or PDF of something like Y = g(X) when X is the variable you already know.

How do you find a transformed random variable's CDF?

Start with P(Y \le y), replace Y with g(X), and solve the inequality for X. Then use the CDF of X to express that probability. This is often the cleanest way to handle nonlinear transformations.

Do you always need the Jacobian?

No, not in every intro problem. If you are working only with a CDF, you may not need to write it separately. But when you convert densities directly, the Jacobian is what keeps the transformed PDF correctly scaled.

Is change of variables the same as substitution?

Not quite. Substitution in algebra only changes the expression. Change of variables in probability changes the variable and the distribution, so you have to track how probabilities and support change too.