Cumulative Distribution Functions and Transformations
Last modified — 21 Jun 2026
By the end of this lecture, students are anticipated to be able to:
The cumulative distribution function of a random variable \(X\) is \[F_X(x) \, = \, \mathbb{P}\left( X \le x \right) \, , \qquad \mbox{ for } x \in {\mathbb{R}}\]
Let \(X\) be a random variable with CDF \(F_X\). Then:
Discrete RV
\[F_X(x) = \sum_{t \leq x} p_X(t)\]
Continuous RV
\[F_X(x) = \int_{-\infty}^x f_X(t) \mathsf{d}t\]

Let \(X \sim {\mathrm{Exp}}(\lambda)\), with pdf \[f_X(x) = \lambda e^{-\lambda x} I_{[0,\infty)}(x).\]
Find \(F_{X}\left(x \right)\). Use the CDF to calculate \(\mathbb{P}(x \le 10)\) when \(\lambda = 1/5\).
Consider rolling one fair six-sided die, so that \(\Omega = \{1, 2, 3, 4, 5, 6\}\), with \(\mathbb{P}(\omega) = 1/6\) for each \(\omega \in \Omega\) Let \(X\) be the number showing on the die. What is \(F_{X}(x)\)? Use this to find \(\mathbb{P}(X \le 5)\).
Let \(X\) be any random variable with CDF \(F_X\). Let \(B\) be any subset of \({\mathbb{R}}\). Then \(\mathbb{P}(X \in B)\) can be determined solely from \(F_X\).
Let \(X\) be an absolutely continuous random variable with cumulative distribution function \(F_X\). Let
\[ f_X(x) = \frac{d}{dx}F_X(x) = F'(x). \] Then, \(f(x)\) is the density function for \(X\).
Aside: The discrete case involves finding the differences between consecutive CDF values.
Let \(X_1, X_2,\dots\) be a random variables with CDFs \(F_{X_1}, F_{X_2}, \dots\).
For any constants \(p_i\) such that \(p_i \ge 0\) and \(\sum_{i = 1}^k p_i = 1\), \(F_G(x) = \sum_{i = 1}^k p_i F_{X_i}(x)\) is the CDF of the mixture of \(F_{X_i}\).
Suppose a bag contains two coins. You choose one at random and flip it once. Let \(X\) be the number of heads.
Coin A is a fair coin, with \(\mathbb{P}(\text{flip Heads}) = 0.5\) Coin B is a loaded coin, with \(\mathbb{P}(\text{flip Heads}) = 0.9\)
Write out the CDF for the number of heads flipped.
Consider the scores of a midterm. Suppose that there are three types of students, modeled as follows:
Find the CDF of the overall score distribution \(X\). Write your answer in terms of the standard normal CDF \(\Phi(\cdot)\).
Hint: If \(Y \sim \mathcal{N}(\mu, \sigma)\), then \(F_Y(y) = \Phi\left( \frac{y - \mu}{\sigma} \right)\).
Sometimes we want to perform transformations on a random variable. This is when we can turn to change of variables.
There are two ways to do this: the distribution method and the Jacobian method. We will present both.
The distribution method just uses the definition:
\[\mathbb{P}(Y \in A) = \mathbb{P}(g(X) \in A) = \mathbb{P}(\{x : g(x) \in A\}).\]
If we can characterize these sets, we can find the distribution of \(Y\). This method always works, and is easy for discrete random variables.
Let \(X\) be a discrete random variable with PMF \(p_X(x)\). Let \(Y = g(X)\) for some function \(g : {\mathbb{R}}\to {\mathbb{R}}\). Then the PMF of \(Y\) is given by \[p_Y(y) = \sum_{x : g(x) = y} p_X(x) = \sum_{x \in g^{-1}(y)} p_X(x).\]
Let’s make this method a little more algorithmic.
If you want to find the distribution of \(Y = g(X)\), then you can do the following: \[\mathbb{P}(Y \in A) = \mathbb{P}(g(X) \in A) = \mathbb{P}(\{x : g(x) \in A\}) = \cdots\]
Let’s start with a straightforward example:
Find the PMF of \(Y\).
Let \(X \sim {\mathrm{Exp}}(\lambda)\), find the distribution of \(Y = 3X\).
If \(X \sim {\mathrm{Exp}}(\lambda)\), what is the CDF of \(Y = X + 5\)?
The following useful results follow from the previous examples
If \(X\) be a random variables with CDFs \(F_{X}\) Then the the following hold:
For continuous random variables, you can also use the distribution method, and sometimes this is the easiest way. The other common method is the Jacobian method.
Let \(X\) be an (absolutely) continuous random variable, with density function \(f_X\). Let \(Y = h(X)\), where \(h : {\mathbb{R}}\to {\mathbb{R}}\) is a function that is differentiable and monotonic.
Then \(Y\) is also absolutely continuous, and its density function \(f_Y\) is given by \[f_Y(y) = f_X(h^{-1}(y)) \left| \frac{\mathsf{d}}{\mathsf{d}y} (h^{-1}(y)) \right|,\] where \(h^{-1}(y)\) is the unique number \(x\) such that \(h(x) = y\).
Find the PDF of \(Y\).
Let \(X \sim {\mathrm{Unif}}\left( -1,1\right)\). Use the distribution method to find the PDF of \(Z = X^2\).
Let \(X \sim {\mathrm{Gam}}(\alpha, \lambda)\). Use the Jacobian method to find the PDF of \(Y = 1/X\).
Recall the Gamma PDF: \[f_X(x) = \frac{\lambda^\alpha}{\Gamma(\alpha)} x^{\alpha - 1} e^{-\lambda x} I_{(0, \infty)}(x).\]
Stat 302 - Winter 2025/26