PMF/CDF Visualizer

Choose a named discrete random variable and adjust its parameters. The plots of its probability mass function and cumulative distribution function update as you go, and the buttons below the plots open tools for computing probabilities and the expected value.

Random Variable

Parameters

Axis limits:
PMF vertical axis:

Probability mass function

Cumulative distribution function

The probability mass function (PMF), \(P_X(x) = P(X = x)\), gives the probability that a discrete random variable \(X\) takes exactly the value \(x\). The cumulative distribution function (CDF), \(F_X(x) = P(X \le x)\), gives the probability that \(X\) is at most \(x\); it is the running sum of the PMF. The two plots above update together, and any probability you compute is highlighted in both.