Definition · applies to discrete random variables · also called PMF

High school

Consider a random variable $X$ that takes finitely or countably many values. The probability mass function of $X$ gives the probability of each value:

\[p(x) = P(X = x).\]

Examples

Worked examples

  • Value:

    $p(k) = \frac{1}{6}$ for $k = 1, \dots, 6$

    The roll of a fair die has the probability mass function $p(k) = \frac{1}{6}$, because each of the $6$ outcomes is equally likely.

Properties

  • The values of a probability mass function are between $0$ and $1$, and they add up to $1$.

All definitions · All distinctions · All examples · Notation