Skip to main content

Joint probability mass function

A joint probability mass function gives P(X = x, Y = y) for each pair of discrete values. In Intro to Probability, it describes how two random variables behave together.

Last updated July 2026•Fiveable Content Team

What is joint probability mass function?

A joint probability mass function, or joint PMF, is the probability rule for two discrete random variables taken together. For values x and y, it gives P(X = x, Y = y), the chance that X and Y land on that exact pair at the same time.

In Intro to Probability, this is how you model a two-variable random outcome instead of two separate one-variable outcomes. Think of a table where rows list possible values of X and columns list possible values of Y. Each cell holds the probability for one outcome pair, like P(X = 1, Y = 0) or P(X = 2, Y = 3).

The joint PMF has to satisfy two basic rules. Every probability is between 0 and 1, and when you add up every cell in the whole table, the total must be 1. That is what makes it a complete distribution for the pair of random variables.

Once you have the joint PMF, you can pull out more information. To get a marginal probability, you add across a row or down a column. For example, P(X = x) = sum over y of P(X = x, Y = y). That tells you the distribution of X by itself, even though the table started with both variables together.

You can also use the joint PMF to study conditional probability and dependence. If knowing X changes the probabilities for Y, the variables are related. If the joint PMF factors into P(X = x)P(Y = y), then the variables are independent. A common mistake is to treat the joint PMF like a formula for one variable only, but it always describes the pair as a unit.

Why joint probability mass function matters in Intro to Probability

The joint probability mass function is the bridge between single-variable probability and true two-variable modeling in Intro to Probability. Once you move past one random variable, you need a way to track how outcomes pair up, not just how they appear one at a time.

This shows up any time a problem asks for probabilities about two discrete measurements together, like the number of successes in one trial and the number in another, or two categorical outcomes recorded at the same time. The joint PMF gives you the full picture, so you can answer questions about totals, overlaps, and patterns in the data.

It also sets up the tools that come next in the course: marginal probability, conditional probability, and independence. If you can read a joint PMF correctly, you can slice it in different ways instead of starting over each time. That makes it much easier to solve multi-step probability problems and check whether two variables move together or separately.

In class problems, this often appears as a table, a list of ordered pairs, or a word problem that hides a two-variable distribution. Recognizing the joint PMF early tells you what kind of probability work to do next: add across, condition on one variable, or test for independence.

Keep studying Intro to Probability Unit 10

Official unit cheatsheet

open one-pager

How joint probability mass function connects across the course

Marginal Probability

Marginal probability comes from the joint PMF by adding across rows or columns. It strips away one variable so you can see the distribution of X alone or Y alone. If a table gives P(X = x, Y = y), the marginal for X is the sum over all y values.

Conditional Probability

Conditional probability uses the joint PMF after you fix one variable. Instead of asking about every pair, you ask what happens to Y when X is known, or the other way around. The joint PMF supplies the numerator, and the matching marginal supplies the denominator.

Discrete Random Variables

Joint PMFs only apply when the random variables are discrete, meaning they take countable values. If X and Y are discrete, you can list probabilities for each pair in a table or formula. That is different from continuous variables, which use density functions instead of PMFs.

joint probability table

A joint probability table is one common way to display a joint PMF. Each row and column label a possible value, and each interior cell gives the probability of that combination. Reading the table correctly is often the fastest way to find marginals, totals, or conditional probabilities.

Is joint probability mass function on the Intro to Probability exam?

A problem set item will usually give you a table or formula and ask for a missing probability, a marginal distribution, or a conditional probability. Your move is to read the pair values correctly, add the right cells, and check that all probabilities sum to 1. If the question asks whether two variables are independent, compare the joint value to the product of the marginals. If they match for every pair, you have independence; if not, you do not. In quiz questions, a table of ordered pairs is often the fastest clue that you are dealing with a joint PMF, not a single-variable PMF.

Joint probability mass function vs Marginal Probability

A joint PMF gives probabilities for pairs of values, while a marginal probability gives the probability for just one variable after you sum out the other one. If the table shows both X and Y at once, you are looking at the joint distribution. If the answer only mentions X or only mentions Y, you are usually in marginal territory.

Key things to remember about joint probability mass function

  • A joint probability mass function gives P(X = x, Y = y) for each pair of discrete values.

  • The probabilities in a joint PMF must all be between 0 and 1, and the whole table must add to 1.

  • You can get marginal probabilities by summing across rows or columns of the joint PMF.

  • The joint PMF is the main tool for checking conditional probability and independence for discrete random variables.

  • If the joint PMF factors into the product of the marginals, the variables are independent.

Frequently asked questions about joint probability mass function

What is joint probability mass function in Intro to Probability?

It is the probability distribution for two discrete random variables at the same time. Instead of giving one value at a time, it gives P(X = x, Y = y) for each pair of outcomes. That lets you study how the variables behave together.

How do you find a marginal from a joint PMF?

Add the probabilities across the row or column for the variable you want to keep. For example, to find P(X = x), sum P(X = x, Y = y) over every possible y value. This removes the other variable from the table.

How is a joint PMF different from a joint probability table?

The joint PMF is the actual probability rule, and the joint probability table is one way to display it. A table is the layout you see on the page, while the PMF is the distribution those cells represent. Many Intro to Probability problems use both ideas together.

How do you know if two discrete random variables are independent from the joint PMF?

Check whether P(X = x, Y = y) equals P(X = x)P(Y = y) for every pair. If that product rule works everywhere, the variables are independent. If even one pair fails, they are not independent.