The cumulative distribution function of a discrete variable is a running total of its pmf. It climbs in steps at each possible value and stays flat in between.
| Step | On with probabilities | |
|---|---|---|
| 1 | Sort the possible values from smallest to largest. The CDF accumulates from the left, so order matters. | |
| 2 | Add the probabilities cumulatively. At each value, is the sum of at that value and every value below it (CDF from PMF). | |
| 3 | Write the step function, including the outer pieces. to the left of the smallest value and from the largest value on. Between two values stays constant. | on , , , , |
| 4 | Read the probabilities you need. Use (interval via the CDF). For a strict inequality, step back one value. |