Chapter 8A: Transformations and Convolutions  
MATH/STAT 394: Probability I  
Arman Jahangiri  
University of Washington Department of Mathematics  
Summer 2026  
Arman Jahangiri  
Summer 2026  
1
 
Learning Goals  
By the end of this lecture, students should be able to:  
compute distributions of transformed random variables;  
apply the change-of-variables formula;  
distinguish between discrete and continuous transformations;  
derive distributions using the CDF method;  
define convolutions;  
compute distributions of sums of independent random variables;  
derive Gamma and Triangle distributions from convolutions.  
Arman Jahangiri  
Summer 2026  
2
Transformations of Random Variables  
Arman Jahangiri  
Summer 2026  
3
Why Transform Random Variables?  
Transformations appear everywhere in probability and statistics.  
Examples:  
unit conversion;  
standardization;  
logarithms;  
sums and averages;  
squares and absolute values;  
maxima and minima.  
Main question  
If  
Y = g(X),  
what is the distribution of Y ?  
Arman Jahangiri  
Summer 2026  
4
Transformations in the Discrete Case  
If X is discrete and  
Y = g(X),  
then  
X
P(Y = y) =  
P(X = x).  
x:g(x)=y  
One-to-one case  
If g is one-to-one, then  
P(Y = y) = P(X = g1(y)).  
Arman Jahangiri  
Summer 2026  
5
Transformation in the Continuous Case  
Setup  
Let X be a continuous random variable with PDF fX and support  
SX = {x : fX (x) > 0}.  
Let  
Y = g(X),  
where g : SX SY is differentiable and strictly monotone (i.e., strictly increasing or strictly decreasing). Then g has  
an inverse  
g1 : SY SX .  
We write  
x = g1(y).  
The support of Y is  
SY = g(SX ) = {g(x) : x SX }.  
In the next slide, we will see how to find fY  
.
Arman Jahangiri  
Summer 2026  
6
Change of Variable Formula  
Change of Variables Formula  
For y SY ,  
d
fY (y) = fX  
g
1(y)  
g1(y)  
dy  
and for y / SY ,  
fY (y) = 0.  
Arman Jahangiri  
Summer 2026  
7
Proof: g Increasing  
Assume g is strictly increasing on SX . Then  
Y = g(X)  
SY = g(SX ),  
has support  
and for y SY  
,
Y y g(X) y X g1(y).  
Therefore, since g is increasing,  
FY (y) = P(Y y) = P(g(X) y) = P X g1(y) = FX g1(y) .  
Now differentiate with respect to y. According to the chain rule, we have  
d
d
fY (y) =  
FY (y) =  
FX g1(y) .  
dy  
dy  
Using the chain rule,  
d
fY (y) = fX g1(y)  
g1(y).  
dy  
Since g is increasing,  
d
g1(y) > 0,  
dy  
so  
d
fY (y) = fX g1(y)  
g1(y) .  
dy  
Arman Jahangiri  
Summer 2026  
8
Proof: g Decreasing  
Assume g is strictly decreasing on SX . Then for y SY  
,
Y y g(X) y.  
Because g is decreasing, applying g1 reverses the inequality:  
g(X) y X g1(y).  
Therefore,  
FY (y) = P(Y y) = P X g1(y) = 1 FX g1(y) .  
Differentiate with respect to y,  
ꢁꢄ  
d
fY (y) =  
1 FX g1(y)  
.
dy  
Using the chain rule,  
Since g is decreasing,  
Hence,  
d
fY (y) = fX g1(y)  
g1(y).  
dy  
d
g1(y) < 0.  
dy  
d
d
g1(y) =  
g1(y) .  
dy  
dy  
Thus,  
d
fY (y) = fX g1(y)  
g1(y) .  
dy  
Arman Jahangiri  
Summer 2026  
9
Transformation Formula: Final Form  
Let  
Y = g(X),  
where g : SX SY is differentiable and strictly monotone (i.e., strictly increasing or strictly decreasing).  
Then for y SY  
,
dx  
dy  
fY (y) = fX (x)  
where  
x = g1(y).  
Equivalently,  
d
fY (y) = fX g1(y)  
g1(y) .  
dy  
For y / SY  
,
fY (y) = 0.  
Important  
The absolute value appears because the inverse derivative is positive in the increasing case and negative in the  
decreasing case.  
Arman Jahangiri  
Summer 2026 10  
How to Use the Formula  
Steps:  
1
Write  
y = g(x).  
2
Solve for  
x = g1(y).  
3
Compute  
dx  
dy  
.
4
Substitute everything in terms of y.  
Do not forget  
Always specify the support of the transformed variable.  
Arman Jahangiri  
Summer 2026 11  
Log-Normal Distribution  
Let  
X N(0, 1),  
and define  
Y = eX .  
Here, g(x) = ex is strictly increasing, so it satisfies the condition of the Change of Variable Formula. Note that  
x = log y.  
This means that  
g
1(y) = log(y)  
Also,  
dx  
dy  
1
=
.
y
Thus,  
1
fY (y) = φ(log y)  
,
y > 0.  
y
This is called the Log-Normal distribution.  
Arman Jahangiri  
Summer 2026 12  
Squaring a Standard Normal  
Let  
X N(0, 1),  
Y = X2.  
and define  
The function  
is not one-to-one.  
g(x) = x2  
So the simple change-of-variables formula does not directly apply.  
Arman Jahangiri  
Summer 2026 13  
CDF Method for Y = X2  
For  
y > 0,  
the event  
is equivalent to  
Thus,  
X2 y  
y X y.  
FY (y) = Φ( y) Φ(y).  
Using symmetry,  
FY (y) = 2Φ( y) 1.  
Arman Jahangiri  
Summer 2026 14  
PDF of Y = X2  
Differentiating,  
Hence,  
1
fY (y) = 2φ( y) ·  
.
2
y
φ( y)  
fY (y) =  
,
y > 0.  
y
This is an example of a Chi-Square distribution.  
Arman Jahangiri  
Summer 2026 15  
Location-Scale Transformations  
Suppose  
Then  
Y = a + bX,  
y a  
b
̸= 0.  
x =  
,
b
and  
dx  
dy  
1
=
.
|b|  
Thus,  
y a  
1
fY (y) = fX  
.
b
|b|  
Arman Jahangiri  
Summer 2026 16  
Convolutions  
Arman Jahangiri  
Summer 2026 17  
What Is a Convolution?  
A convolution is the distribution of a sum of independent random variables.  
If  
T = X + Y ,  
and X, Y are independent, we want the distribution of T.  
Why sums matter  
Sums appear everywhere:  
totals;  
averages;  
waiting times;  
counting processes.  
Arman Jahangiri  
Summer 2026 18  
Discrete Convolution Formula  
Theorem  
If X and Y are independent discrete random variables, then  
X
P(T = t) =  
P(Y = t x)P(X = x).  
x
This is just the law of total probability.  
Arman Jahangiri  
Summer 2026 19  
Continuous Convolution Formula  
Theorem  
If X and Y are independent continuous random variables, then  
Z
fT (t) =  
fY (t x)fX (x) dx.  
−∞  
This is the continuous analog of the discrete convolution sum.  
Arman Jahangiri  
Summer 2026 20  
Convolution of Two Exponentials  
Let  
i.i.d.  
X, Y Exp(λ).  
Define  
Then for  
T = X + Y .  
t > 0,  
Z
t
fT (t) =  
λeλ(tx)λeλx dx.  
0
Arman Jahangiri  
Summer 2026 21  
Gamma Distribution Appears  
Simplifying,  
Therefore,  
Z
t
fT (t) = λ2eλt  
dx.  
0
fT (t) = λ2teλt  
,
t > 0.  
This is a Gamma distribution.  
Arman Jahangiri  
Summer 2026 22  
Convolution of Two Uniforms  
Let  
i.i.d.  
X, Y Unif(0, 1).  
Define  
Then  
T = X + Y .  
0 < T < 2.  
The PDF becomes piecewise linear.  
Arman Jahangiri  
Summer 2026 23  
Triangle Distribution  
The PDF of  
is  
T = X + Y  
t,  
0 < t 1,  
fT (t) =  
2 t, 1 < t < 2,  
0,  
otherwise.  
Interpretation  
Middle values are more likely because there are more ways to obtain them.  
Arman Jahangiri  
Summer 2026 24  
Why the Triangle Shape Makes Sense  
Values near  
1
can occur in many ways:  
0.4 + 0.6,  
0.2 + 0.8,  
0.5 + 0.5,  
etc.  
But values near  
0
2
or  
require both variables to be extreme simultaneously.  
This explains the triangular shape.  
Arman Jahangiri  
Summer 2026 25  
Connection with Dice  
Recall: the sum of two fair dice also produced a triangular PMF.  
Analogy  
Discrete Uniform triangular PMF,  
Continuous Uniform triangular PDF.  
Arman Jahangiri  
Summer 2026 26  
Summary  
Transformations convert one distribution into another.  
Continuous transformations require Jacobians.  
The CDF method always works.  
Convolutions describe sums of independent random variables.  
Sums of Exponentials lead to Gamma distributions.  
Sums of Uniforms lead to Triangle distributions.  
Next lecture  
Beta and Gamma distributions.  
Arman Jahangiri  
Summer 2026 27