







A probability mass function is a function that gives the probability of each individual value of a discrete random variable.
If is a discrete random variable, then its PMF is:
It tells you:
- which values
can take
- the probability of each value
A PMF must satisfy:
for all
⭐ Example 1: Rolling a Fair Die
Let the number rolled.
This PMF says each outcome has equal probability.
⭐ Example 2: Bernoulli Random Variable
Let if a coin flip is heads, and
if tails.
Let .
This is the simplest PMF — only two possible values.
⭐ Example 3: Number of Heads in 3 Coin Flips
Let number of heads in 3 flips.
Possible values: 0, 1, 2, 3.
This is a binomial PMF with ,
.
⭐ Example 4: Custom PMF (Non‑Uniform)
Suppose a random variable takes values 1, 2, 3 with probabilities:
| 1 | 0.2 |
| 2 | 0.5 |
| 3 | 0.3 |
Check:
This is a valid PMF.
⭐ PMF vs PDF (Quick Reminder)
| Feature | PMF | |
|---|---|---|
| For | Discrete variables | Continuous variables |
| Gives | Density, not probability | |
| Can assign probability to a single value? | Yes | No (always 0) |
🎨 Intuition
A PMF is like a menu listing all possible outcomes and the probability of each one.
If you can count the outcomes, you can build a PMF.