Skip to content

Probability Mass Function

Definition

Let XX be a discrete random variable. The probability mass function of XX is the function pXp_X defined by

pX(x)=P(X=x).p_X(x)=\mathbb{P}(X=x).

It is zero except on the countable set of values that XX can take.


Interpretation

A PMF lists, for each possible value of a discrete random variable, the probability that the variable takes exactly that value. It describes the whole distribution of such a variable as a table or a bar chart.

Probability bars for the number of heads in three tosses, 1/8, 3/8, 3/8 and 1/8, with the bars for 2 and 3 heads highlighted.

The diagram shows X∼Bin⁡(3,1/2)X\sim\operatorname{Bin}(3,1/2), the number of heads in three fair tosses, with masses 1/81/8, 3/83/8, 3/83/8 and 1/81/8, which sum to 11. The two red bars give P(X≥2)=3/8+1/8=1/2\mathbb{P}(X\ge2)=3/8+1/8=1/2.

Each mass is the probability of a generated event {X=x}\{X=x\}. These events are disjoint for different values and together make up the whole sample space, so the masses are nonnegative, add up to 11, and the probability of any set BB of values is the sum of the masses in BB; summing up to a threshold tt gives the CDF, as in the Key Results.

The argument of pXp_X is a value, not an outcome: in the figure, pX(1)=3/8p_X(1)=3/8 collects the three outcomes HTTHTT, THTTHT and TTHTTH. The PMF is 00 away from the possible values, for example pX(1.5)=0p_X(1.5)=0.


Key Results

  • pX(x)≥0p_X(x)\ge0 and ∑xpX(x)=1\displaystyle \sum_xp_X(x)=1.
  • FX(t)=∑x≤tpX(x)\displaystyle F_X(t)=\sum_{x\le t}p_X(x).

Examples

  • For a fair die, pX(3)=1/6p_X(3)=1/6 and P(X≤3)=3/6\mathbb{P}(X\le3)=3/6.
  • If pX(0)=0.7p_X(0)=0.7 and pX(1)=0.3p_X(1)=0.3, then P(X>0)=0.3\mathbb{P}(X>0)=0.3.

Prerequisites

Sources

Aliases: PMF, frequency function, mass function, p.m.f. Symbols: sum

Last updated: 20 October 2026 03:02