Summarize this article:
1394 LearnersLast updated on November 25, 2025

A probability mass function is a function used specifically to predict the probability of a discrete random variable. It is used in real-life situations to calculate discrete probabilities, such as predicting business losses. In this topic, you’ll learn how to use the probability mass function to determine the likelihood of any occurrence.
The probability mass function (PMF) indicates the probability assigned to each possible value of a discrete random variable. For example, when we flip a coin twice, the PMF gives the probability of each possible outcome: heads or tails.
The formula to calculate the probability mass function is:
\(f(x) = P(X = x)\)
Where,
f(x) or P(X = x) is the probability of a discrete random variable X
X is a discrete random variable
x is the possible value that the random variable takes
Example for probability mass function
Let us consider a scenario in which we roll a fair 6-sided die. Let the random variable X be the number that we roll on the die. We know that the random variable X is discrete because a die shows only whole numbers. A Probability Mass Function (PMF) is a function that assigns a probability to each possible value of a discrete random variable, showing how likely each specific outcome is. Since the die is fair, each number on it has an equal chance of occurring.
Therefore, the PMF is,
\(P(X=x)=\frac{1}{6}.\) Where, \(x = 1, 2, 3, 4, 5, 6.\)
This means that,
We can verify this by confirming that each probability is between 0 and 1 and that their sum is 1.
Therefore, we can confirm that this probability mass function is valid.
The probability mass function for a discrete variable X can be mathematically expressed as: \(f(x) = P(X = x).\)
There are various other formulas to determine PMF for different distribution, as listed below:
Probability mass function in binomial distribution:
The binomial distribution represents the number of possible outcomes, the likelihood of success, and the likelihood of failure.
The formula for the binomial probability mass function is:
Binomial distribution: \( P(X = x) = \binom{n}{x} \, p^{x} \, (1 - p)^{\,n - x} \)
Here:
n: Number of outcomes
p: Probability of success
(1 − p): The probability of failure
Probability mass function in Poisson distribution:
The Poisson distribution represents the average and the quantity of independent events that occurred during a certain period.
The formula we use for the Poisson distribution is:
Poisson distribution: \(P(X = x) = \frac{(λ^x \times e^{−λ})}{x!}\)
A table of the Probability Mass Function (PMF) lists all possible values of a discrete random variable and their associated probabilities, thereby showing students how probability is distributed across outcomes. One of the advantages of having a PMF table for students is that it allows them to visualize probability more readily, see how probabilities are assigned, and compare the likelihoods of different outcomes.
The PMF table for the number of candies a kid may pick from a jar containing two chocolates, three toffees, and five jelly candies is given as;
Let X be the type of candy picked.
Total candies = 10
| Candy Types (X) | Probability P(X=x) |
| Chocolate | \(\frac{2}{10}= 0.2\) |
| Toffee | \(\frac{3}{10}= 0.3\) |
| Jelly Candy | \(\frac{5}{10}= 0.5\) |
Let us check their validity:
All probabilities are greater than or equal to 0, and the sum of all the probabilities is 1. This table helps us understand how likely each candy type is.


A Probability Mass Function (PMF) graph is a bar chart that displays the possible values of a discrete random variable along the x-axis and their corresponding probabilities on the y-axis. Here, the height of each bar represents how likely that outcome is to occur.
Let us use the same data from the above section and create a graph, as we did with the table. Therefore, the PMF graph for the number of candies a kid may pick from a jar containing two chocolates, three toffees, and five jelly candies is given as;
The probability density function (PDF) is a statistical technique for measuring the likelihood of different results across a continuous range or interval, where, rather than more discrete points on the scale, “a student’s t-distribution” is used extensively by analysts in finance to analyze distributions of return from investment and associated risk. It allows financial analysts to model and analyze risks by assuming continuous distributions of returns despite actual discrete outcomes.
The sequential plot of the S&P 500 index over 3 years is shown in the image below. The chart showed a right-skewed bell curve, suggesting greater upside over three years.
The difference between the probability mass function and the probability density function is shown in the table below:
| Probability Mass Function | Probability Density Function |
| The probability mass function is a probability distribution for a discrete random variable that can take on exact values. | The probability density function is a type of probability distribution in which a continuous random variable takes on values within a specific interval. |
| It deals with discrete random variables. | It deals with continuous random variables. |
| PMF is evaluated at a specific point. | PDF is evaluated at a specified interval. |
| \(f(x) = P(X = x)\) | \(P(x) = F’(x)\) where, F(x) is CDF |
Understanding the properties of the probability mass function enables us to identify the function easily. Here are a few properties that will help:
There are unique characteristics of probability mass function (PMF) that you might not know. We’ll explore a few key facts here:
The probability mass function can be confusing for many learners. Here are some practical, easy tips and tricks to help learners master the concept of the probability mass function.
The probability mass function is of paramount importance in math. However, students might find it difficult to grasp the concept, leading to many mistakes. Here, we list a few common mistakes along with some tricks to avoid them.
We use probability mass function to understand the probability of discrete events in different real-life situations. Let’s look at some:
Given a probability mass function: f(x) = bx^3, for x = 4, 5, 6.
b = 1/405 which satisfies the condition, and the probability adds up to 1.
∑x ϵ S f(x) = 1
We now substitute the given function:
\(\sum_{x=4}^{6} bx^3 = 1\)
\(b × (4^3 + 5^3 + 6^3) = 1\)
\(b × (64 + 125 + 216) = 1\)
\(b × (405) = 1\)
\(b = \frac{1}{405}\)
If X denotes the number of heads, find the PMF of X when two coins are tossed fairly.
\(P(X = 0) = \frac{1}{4}\\[1em] P(X = 1) = \frac{1}{2}\\[1em] P(X = 2) = \frac{1}{4}\)
Out of 4 outcomes (HH, HT, TH, TT), the counts of heads are 0, 1, or 2.
If two dice are rolled fairly, find P(X = 7). Let X be the sum of the numbers obtained.
\(P(X = 7) = \frac{6}{36} = \frac{1}{6}\)
Outcomes giving sum 7: (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)
Here, we have 6 outcomes.
\(\text{Total outcomes = 6 × 6 = 36}\)
So, \(P(X = 7) = \frac{6}{36} = \frac{1}{6}.\)
If X is the number of heads, find P(X = 2) when a fair coin is tossed thrice.
\( P(X = 2) = \binom{3}{2}(0.5)^{2} \, (0.5)^{1} = 0.375 \)
Substituting the values in the formula, we get:
\( P(X = 2) = \binom{3}{2}(0.5)^{2} \, (0.5)^{1} = 0.375 \)
Computing step by step, we get:
\(\binom{3}{2} =3\)
\((0.5)^2 = 0.25\)
\((0.5)^1 = 0.5\)
So, \(3 × 0.25 × 0.5 = 0.375\)
Therefore, \(P(X = 2) = 0.375.\)
There are 10 bulbs in a box and 2 are defective. Find the PMF of X if one bulb is selected randomly. Let X = 1 if the bulb is defective and X = 0 if it works.
\(P(X = 1) = \frac{2}{10} = 0.2\)
\(P(X = 0) = \frac{8}{10} = 0.8\)
It’s a Bernoulli distribution with success probability \(p = 0.2.\)
Jaipreet Kour Wazir is a data wizard with over 5 years of expertise in simplifying complex data concepts. From crunching numbers to crafting insightful visualizations, she turns raw data into compelling stories. Her journey from analytics to education ref
: She compares datasets to puzzle games—the more you play with them, the clearer the picture becomes!






