Mathwords logoMathwords

Probability Mass Function — Definition, Formula & Example

A probability mass function (PMF) is a rule that tells you the exact probability of each value a discrete random variable can take, such as the chance of rolling exactly a 5 or drawing exactly 2 red cards.

Let XX be a discrete random variable with a countable set of possible values SS. Its probability mass function is the function pp defined by p(x)=P(X=x)p(x) = P(X = x). It satisfies p(x)≥0p(x) \ge 0 for every xx, p(x)=0p(x) = 0 for x∉Sx \notin S, and ∑x∈Sp(x)=1\sum_{x \in S} p(x) = 1. For any set of values AA, P(X∈A)=∑x∈Ap(x)P(X \in A) = \sum_{x \in A} p(x).

Key Formula

p(x)=P(X=x),P(X∈A)=∑x∈Ap(x)p(x) = P(X = x), \qquad P(X \in A) = \sum_{x \in A} p(x)
Where:
  • XX = A discrete random variable, such as a count or a die result
  • xx = One specific value that X can take
  • p(x)p(x) = The probability that X equals exactly x
  • AA = A set of values, such as all x with x at least 5

Worked Example

Problem: You roll two fair six-sided dice. Let XX be the larger of the two numbers (if they match, XX is that number). Find a formula for the PMF of XX, then use it to find P(X≥5)P(X \ge 5).
Step 1: There are 3636 equally likely outcomes. Both dice are at most xx in x2x^2 outcomes, and both are at most x−1x - 1 in (x−1)2(x-1)^2 outcomes. The difference counts the outcomes where the larger die is exactly xx.
p(x)=x2−(x−1)236=2x−136,x=1,2,…,6p(x) = \frac{x^2 - (x-1)^2}{36} = \frac{2x - 1}{36}, \quad x = 1, 2, \ldots, 6
Step 2: Evaluate the PMF at each value in the event X≥5X \ge 5.
p(5)=936,p(6)=1136p(5) = \frac{9}{36}, \qquad p(6) = \frac{11}{36}
Step 3: Add the point probabilities. For a discrete variable, the probability of a set of values is the sum of the PMF over that set.
P(X≥5)=936+1136=2036=59≈0.556P(X \ge 5) = \frac{9}{36} + \frac{11}{36} = \frac{20}{36} = \frac{5}{9} \approx 0.556
Answer: The PMF is p(x)=2x−136p(x) = \frac{2x-1}{36} for x=1,…,6x = 1, \ldots, 6, and P(X≥5)=59≈0.556P(X \ge 5) = \frac{5}{9} \approx 0.556.

Why It Matters

A probability distribution is the broader idea: any complete description of how probability is spread over outcomes, whether by table, graph, CDF, or density. The PMF is the specific function that does this for discrete variables by assigning a probability to each single value. In AP Statistics you build probability distributions for discrete random variables, which are PMFs, to compute expected values. The binomial and geometric formulas are PMFs, and so is the Poisson formula met in college courses.

Common Mistakes

Mistake: Answering a question about "at least 5" with only p(5)p(5).
Correction: p(5)p(5) is the probability of exactly 5. For a range of values, add the PMF over every value in that range. In the dice example, XX can be at most 6, so P(X≥5)=p(5)+p(6)P(X \ge 5) = p(5) + p(6).

Related Terms