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 be a discrete random variable with a countable set of possible values . Its probability mass function is the function defined by . It satisfies for every , for , and . For any set of values , .
Key Formula
Where:
- = A discrete random variable, such as a count or a die result
- = One specific value that X can take
- = The probability that X equals exactly x
- = A set of values, such as all x with x at least 5
Worked Example
Problem: You roll two fair six-sided dice. Let be the larger of the two numbers (if they match, is that number). Find a formula for the PMF of , then use it to find .
Step 1: There are equally likely outcomes. Both dice are at most in outcomes, and both are at most in outcomes. The difference counts the outcomes where the larger die is exactly .
Step 2: Evaluate the PMF at each value in the event .
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.
Answer: The PMF is for , and .
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 .
Correction: is the probability of exactly 5. For a range of values, add the PMF over every value in that range. In the dice example, can be at most 6, so .
