Marginal Distributions for Discrete Random Variables

Given the joint PMF of two discrete random variables, recover the distribution of a single variable by summing the joint PMF over the other variable.

Step 1 of 119%

Tutorial

Marginal PMFs from a Joint PMF

Recall that a joint PMF pX,Y(x,y)=P(X=x,Y=y)p_{X,Y}(x,y)=P(X=x,Y=y) specifies the probability of every pair (x,y)(x,y). To recover the distribution of just one of the variables, we sum out the other.

The marginal PMF of XX is

pX(x)=P(X=x)=ypX,Y(x,y),p_X(x)=P(X=x)=\sum_{y} p_{X,Y}(x,y),

where the sum runs over all values that YY can take. This is the law of total probability applied to the partition {Y=y}\{Y=y\}. Similarly, the marginal PMF of YY is

pY(y)=xpX,Y(x,y).p_Y(y)=\sum_{x} p_{X,Y}(x,y).

When the joint PMF is displayed as a table, pX(x)p_X(x) is the sum of row xx and pY(y)p_Y(y) is the sum of column yy — the marginals appear literally in the margins of the table. For instance, with

Y=0Y=1pX(x)X=00.20.10.3X=10.40.30.7pY(y)0.60.41\begin{array}{c|cc|c} & Y=0 & Y=1 & p_X(x) \\ \hline X=0 & 0.2 & 0.1 & 0.3 \\ X=1 & 0.4 & 0.3 & 0.7 \\ \hline p_Y(y) & 0.6 & 0.4 & 1 \end{array}

we read off pX(0)=0.2+0.1=0.3p_X(0)=0.2+0.1=0.3 and pY(1)=0.1+0.3=0.4p_Y(1)=0.1+0.3=0.4. Each marginal PMF must itself sum to 11.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle