16.1. Linear Transformations#
Linear transformations are both simple and ubiquitous: every time you change units of measurement, for example to standard units, you are performing a linear transformation.
16.1.1. Linear Transformation: Exponential Density#
Let
The parameter
That’s the cdf of the exponential
To summarize, if
You can think of the exponential
If
Here are graphs of the densities of

The formulas for the two densities are
Let’s try to understand the relation between these two densities in a way that will help us generalize what we are seeing in this example.
The relation between the two random variables is
For any
, the chance that is near is the same as the chance that is near . This explains the factor in the density of .If we think of
as a point on the horizontal axis, then to create you have to divide by . So the transformation consists of halving all distances on the horizontal axis. The total area under the density of must equal , so we have to compensate by doubling all distances on the vertical axis. This explains the factor in the density of .
Quick Check
If
Answer
See More
16.1.2. Linear Change of Variable Formula for Densities#
We use the same idea to find the density of a linear transformation of a random variable.
Let
Let’s take this formula in two pieces, as in the exponential example.
For
to be , has to be .The linear function
involves multiplying distances along the horizontal axis by ; the sign of doesn’t affect distances. To get a density, we have to compensate by dividing all vertical distances by .
This is a good way to understand the formula, and will help you understand the corresponding formula for non-linear transformations.
For a formal proof, start with the case
By the chain rule of differentiation,
If
Now the chain rule yields
Quick Check
(a) Write the density of
(b) Write the density of
Answer
(a) For all
(b) For all
16.1.3. The Normal Densities#
Let
Let
Thus every normal random variable is a linear transformation of a standard normal variable.
Quick Check
Let
Answer
16.1.4. The Uniform Densities, Revisited#
Let the distribution of
First it is a good idea to be clear about the possible values of
At
That’s the uniform density on