A discrete random variable takes values you can list, each with a probability. Two descriptions carry the same information: the probability mass function lists $P(X = x)$, and the cumulative distribution function adds them up. Moving between them, with care at the endpoints, is the skill here.
Key idea
Why it works
On the CDF a filled dot sits at the top of each jump and an open dot at the bottom: at $x = a$ the CDF already includes $P(X = a)$.
Worked examples
Worked example: Reading the CDF from the pmf
- $F(1) = p(0) + p(1) = \frac{1}{2}$, and $F(1.5) = \frac{1}{2}$ too: no value lies between 1 and 1.5.
- $P(1 \le X \le 2) = p(1) + p(2) = \frac{3}{4}$.
- With the CDF: $F(2) - F(0) = \frac{7}{8} - \frac{1}{8} = \frac{3}{4}$. Subtract $F(0)$, not $F(1)$, so that $X = 1$ stays in.
Answer: $\frac{1}{2}$, $\frac{1}{2}$ and $\frac{3}{4}$
Worked example: From a CDF table
- $P(X = 2)$ is the jump at 2: $0.6 - 0.3 = 0.3$.
- $$P(1 \le X \le 3) = F(3) - F(0) = 0.85 - 0.1 = 0.75$$
- $$P(X \ge 2) = 1 - P(X \le 1) = 1 - 0.3 = 0.7$$
Answer: $0.3$, $0.75$ and $0.7$
Common mistake