Exam P · Joint & Marginal Distributions · Free Lesson

Conditional and Marginal Probability Functions for Discrete Random Variables

Free SOA Exam P (Probability) lesson in Joint & Marginal Distributions. 18 min read, ~2,754 words.

"Given that this policyholder filed 3 hospital claims, what is the distribution of their prescription claims?" That requires a conditional distribution, the joint PMF sliced to one row and rescaled.

Given the joint PMF pX,Y(x,y) p_{X,Y}(x,y) , the marginal PMF of X X sums over all values of Y Y :

pX(x)=∑ypX,Y(x,y)p_X(x) = \sum_y p_{X,Y}(x,y)

In a table, the marginal of X X is the column of row totals. The marginal of Y Y is the row of column totals. They sit in the margins, hence the name.

HIGH-FREQUENCY: Computing marginals by summing rows or columns is tested on virtually every joint distribution problem.

The conditional PMF of Y Y given X=x X = x :

pY∣X(y∣x)=pX,Y(x,y)pX(x),pX(x)>0p_{Y|X}(y|x) = \frac{p_{X,Y}(x,y)}{p_X(x)}, \quad p_X(x) > 0

This isolates one row of the table and rescales so the entries sum to 1. The rescaling factor is 1/pX(x) 1/p_X(x) .

Symmetrically, pX∣Y(x∣y)=pX,Y(x,y)/pY(y) p_{X|Y}(x|y) = p_{X,Y}(x,y) / p_Y(y) divides by the column total.

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

When a problem gives conditional distributions and a marginal (the "Bayesian setup"), build the full joint PMF table first, multiply each conditional by its marginal weight. Then read off whatever the question asks. "Joint = Conditional times Marginal" (JCM). To get C: divide by M. To get M: sum across the other variable. "Divide by the given." P(Y∣X) P(Y|X) divides by the row total. P(X∣Y) P(X|Y) divides by the column total.

The full lesson (about 2,754 words, 18 min read) adds 3 worked examples, all 7 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free Exam P lessons or jump into free Exam P practice questions.