Interval of U | Length of U interval | Probability | Interval of X | Length of X interval |
---|---|---|---|---|
(0, 0.1) | ||||
(0.1, 0.2) | ||||
(0.2, 0.3) | ||||
(0.3, 0.4) | ||||
(0.4, 0.5) | ||||
(0.5, 0.6) | ||||
(0.6, 0.7) | ||||
(0.7, 0.8) | ||||
(0.8, 0.9) | ||||
(0.9, 1) |
18 Distributions of Transformations of Random Variables
- A function of a random variable is a random variable: if
is a random variable and is a function then is a random variable. - Since
is a random variable it has a distribution. In general, the distribution of will have a different shape than the distribution of .
18.1 Linear rescaling
Example 18.1
Let
- Does
result from a linear rescaling of ?
- What are the possible values of
?
- Is
the same random variable as ?
- Find
and .
- Sketch a plot of what the histogram of many simulated values of
would look like.
- Does
have the same distribution as ?
Example 18.2
Suppose that
- Is
the same random variable as ?
- Does
have the same distribution as ?
Example 18.3
Let
- Donny Don’t says that the distribution of
will look like an “upside-down bell”. Is Donny correct? If not, explain why not and describe the distribution of .
- Donny Don’t says that the standard deviation of
is -1. Is Donny correct? If not, explain why not and determine the standard deviation of .
- A linear rescaling is a transformation of the form
. - A linear rescaling of a random variable does not change the basic shape of its distribution, just the range of possible values.
- However, remember that the possible values are part of the distribution. So a linear rescaling does technically change the distribution, even if the basic shape is the same. (For example, Normal(500, 100) and Normal(0, 1) are two different distributions.)
- A linear rescaling transforms the mean in the same way the individual values are transformed.
- Adding a constant to a random variable does not affect its standard deviation.
- Multiplying a random variable by a constant multiplies its standard deviation by the absolute value of the constant.
- Whether in the short run or the long run,
- If
has a Uniform(0, 1) distribution then has a Uniform( , ) distribution. - If
has a Normal(0, 1) distribution then has a Normal( , ) distribution. - Remember, do NOT confuse a random variable with its distribution.
- The random variable is the numerical quantity being measured
- The distribution is the long run pattern of variation of many observed values of the random variable
18.2 Nonlinear transformations of random variables
- In general the shape of the distribution
will be different than that of . - In general: whether in the short run or the long run
Example 18.4
Let
Example 18.5
For each of the intervals of
Interval of X | Length of X interval | Probability | Interval of U | Length of U interval |
---|---|---|---|---|
(0, 0.5) | ||||
(0.5, 1) | ||||
(1, 1.5) | ||||
(1.5, 2) | ||||
(2, 2.5) | ||||
(2.5, 3) | ||||
(3, 3.5) | ||||
(3.5, 4) | ||||
(4, 4.5) | ||||
(4.5, 5) |
Example 18.6
We have now seen a few reasons why if
- Identify the possible values of
. (We have done this already, but this should always be your first step.)
- Let
denote the cdf of . Find .
- Find
.
- Find the cdf
.
- Find the pdf
.
- Why should we not be surprised that
has cdf ? Hint: what is the function in this case?
- If
is a continuous random variable whose distribution is known, the cdf method can be used to find the pdf of - Determine the possible values of
. Let represent a generic possible value of . - The cdf of
is . - Rearrange
to get an event involving . Warning: it is not always . Sketching a picture of the function helps. - Obtain an expression for the cdf of
which involves and some transformation of the value . - Differentiate the expression for
with respect to , and use what is known about , to obtain the pdf of . You will typically need to apply the chain rule when differentiating. - You will need to use information about
at some point in the last step above. You can either:- Plug in the cdf of
and then differentiate with respect to . - Differentiate with respect to
and then plug in the pdf of . - Either way gets you to the correct answer, but depending on the problem one way might be easier than the other.
- Plug in the cdf of
Example 18.7
Let
- Identify the possible values of
.
- Sketch the pdf of
. Hint: consider a few equally spaced intervals of values and see what values they correspond to.
- Run a simulation to approximate the pdf of
.
- Find
.
- Use the cdf method to find the pdf of
. Is the pdf consistent with your simulation results?