
2025-10-22
Cumulative distribution function (CDF) for discrete random variable
The cumulative distribution function (cdf) of a discrete RV \(X\) with pmf \(p_X(x)\), is defined for every value \(x\) by \[F_X(x) = \mathbb{P}(X \leq x) = \sum \limits_{\{all\ y:\ y\leq x\}}p_X(y)\]
\(F(x)\) is increasing or flat (never decreasing)
\(\min\limits_x F(x) = 0\)
\(\max\limits_xF(x)=1\)
CDF is a step function
Cumulative distribution function (CDF) for continuous random variable
The cumulative distribution function (cdf) of a continuous RV \(X\), is the function \(F_X(x)\), such that for all real values of \(x\), \[F_X(x)= \mathbb{P}(X \leq x) = \int_{-\infty}^x f_X(s)ds\]
Remarks: In general, \(F_X(x)\) is increasing and
\(\lim_{x\rightarrow -\infty} F_X(x)= 0\)
\(\lim_{x\rightarrow \infty} F_X(x)= 1\)
\(P(X > a) = 1 - P(X \leq a) = 1 - F_X(a)\)
\(P(a \leq X \leq b) = F_X(b) - F_X(a)\)
Discrete RV \(X\):

Continuous RV \(X\):

Example 1: Falls in Older Adults
A major public health concern is falls among older adults (age 65+). National data suggests that 25% of older adults will experience at least one fall within a given year. A community health program is tracking a random group of \(n = 8\) older adults for one year. Assume the likelihood of falling is independent from person to person.
Let \(X\) be the random variable representing the number of individuals in this group who experience at least one fall.
Recall our pmf: \[P(X = x) = \binom{8}{x} 0.25^x 0.75^{8-x}, x= 0, 1, 2, \dots, 8 \]
Example 1: Falls in Older Adults
Recall our pmf: \[P(X = x) = \binom{8}{x} 0.25^x 0.75^{8-x}, x= 0, 1, 2, \dots, 8 \]
\[F_X(x) = P(X \leq x) = \sum \limits_{k=0}^{x} \binom{8}{k} 0.25^y 0.75^{8-k}\]
Example 1: Falls in Older Adults
Example 1: Falls in Older Adults
Example 1: Falls in Older Adults
Example 2
Let \(f_X(x)= 2\), for \(2.5 \leq x \leq 3\). Find \(F_X(x)\).
Theorem 1
If \(X\) is a continuous random variable with pdf \(f_X(x)\) and cdf \(F_X(x)\), then for all real values of \(x\) at which \(F'_X(x)\) exists, \[\frac{d}{dx} F_X(x)= F'_X(x) = f_X(x)\]
Example 3
Let \(X\) be a RV with cdf \[F_X(x)= \left\{ \begin{array}{ll} 0 & \quad x < 2.5 \\ 2x-5 & \quad 2.5 \leq x \leq 3 \\ 1 & \quad x > 3 \end{array} \right.\] Find the pdf \(f_X(x)\).
Example 4
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Show \(f_X(x)\) is a pdf.
Find \(\mathbb{P}(1 \leq X \leq 3)\).
Find \(F_X(x)\).
Given \(F_X(x)\), find \(f_X(x)\).
Find \(\mathbb{P}(X \geq 1 | X \leq 3)\).
Find the median of the distribution of \(X\).
Example 4.1
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Do this problem at home for extra practice.
Example 4.2
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Example 4.3
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Do this problem at home for extra practice.
Example 4.4
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Example 4.5
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Example 4.6
Let \(X\) be a RV with pdf \(f_X(x)= 2e^{-2x}\), for \(x>0\).
Lesson 9 Slides