Skip to main content
\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R} \DeclareMathOperator{\Bin}{Bin} \DeclareMathOperator{\Geom}{Geom} \DeclareMathOperator{\Poiss}{Poiss} \DeclareMathOperator{\Exp}{Exp} \DeclareMathOperator{\Norm}{N} \DeclareMathOperator{\E}{E} \DeclareMathOperator{\Var}{Var} \DeclareMathOperator{\Cov}{Cov} \newcommand{\L}{\mathcal{L}} \newcommand{\est}{\widehat} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \definecolor{fillinmathshade}{gray}{0.9} \newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}} \)

## Section 2.3 Joint Distributions

Sometimes multiple measurements are taken simultaneously and data is naturally grouped by combinations of measurement values. Consider a poll that asks respondents two yes or no questions. It may be natural to report counts of respondents who answered yes/yes, yes/no, no/yes, no/no.
🔗

### Definition 2.3.1.

Let \(X\) be a random variable taking values \(x_1, x_2, \dotsc, x_m\text{.}\) Let \(Y\) be a random variable taking values \(y_1, y_2, \dotsc, y_n\text{.}\) The joint distribution for \(X\) and \(Y\) is the collection of probabilities \(\Pr(X = x_i, Y = y_j)\) for all \(1 \leq i \leq m, 1 \leq j \leq n\text{.}\) The individual distributions for \(X\) and \(Y\) separately are called the marginal distributions.
🔗
🔗
In the probability \(\Pr(X = x_i, Y = y_j)\text{,}\) the comma should be read as "and". Think of the conditions \(X = x_i\) and \(Y = y_j\) as events, and \(\Pr(X = x_i, Y = y_j)\) is the probability of the intersection of these two events.
🔗
We’re restricting our attention here to joint distributions of two random variables, each taking only finitely many values. It shouldn’t be hard to imagine how to generalize this definition for a joint distribution of three or more discrete random variables. A bit more adjustment would need to be made for a joint distribution of continuous random variables, or a joint distribution between a discrete and continuous random variable.
🔗

### Example 2.3.2.

A poll asks two yes/no questions. Let \(X\) indicate a yes on Question 1 and \(Y\) indicate a yes on Question 2. When the data is collected, the following joint distribution for \(X\) and \(Y\) is created:
🔗
Table 2.3.3. Joint Distribution for Indicator Random Variables
🔗

| \(X = 0\) | \(X = 1\)
\(Y = 0\) | 0.1 | 0.2
\(Y = 1\) | 0.3 | 0.4

Note that the sum of all values in the table is 1; this is a probability distribution, and total probability must be 1. This table doesn’t show the distributions for \(X\) or \(Y\) individually. The data for the two distributions is mixed together. We can, if we wish, take this information and determine separate distributions for \(X\) and \(Y\text{.}\) For the distribution for \(X\text{,}\) we need to know \(\Pr(X = 0)\) and \(\Pr(X = 1)\) (with no reference to \(Y\)). We can get these probabilities by summing along the columns of the table:
\begin{align*} \Pr(X = 0) \amp = 0.1 + 0.3 = 0.4 \\ \Pr(X = 1) \amp = 0.2 + 0.4 = 0.6 \end{align*}
To get the distribution for \(Y\text{,}\) we should add along the rows:
\begin{align*} \Pr(Y = 0) \amp = 0.1 + 0.2 = 0.3 \\ \Pr(Y = 1) \amp = 0.3 + 0.4 = 0.7 \end{align*}
🔗
🔗
If we start with the joint distribution, we can get the marginal distributions. If we start with the marginal distributions, we can’t necessarily find the joint distribution, because we won’t know how the random variables interact.
🔗

### Definition 2.3.4.

Random variables \(X\) and \(Y\) are called independent if the events \(X = x\) and \(Y = y\) are independent for every possible combination of \(x\) and \(y\text{.}\)
🔗
🔗

### Example 2.3.5.

Using the joint distribution and marginal distributions in Example 2.3.2, we can check independence of \(X\) and \(Y\) by going cell by cell through the joint distribution table. The top-left cell shows \(\Pr(X = 0, Y = 0) = 0.1\text{.}\) The marginal distributions have \(\Pr(X = 0) = 0.4\) and \(\Pr(Y = 0) = 0.3\text{.}\) If \(X\) and \(Y\) were independent, we would have
\begin{align*} \Pr(X = 0, Y = 0) \amp = \Pr(X = 0) \Pr(Y = 0) \\ \text{however, } 0.1 \amp \neq (0.4)(0.3) \end{align*}
Therefore, \(X\) and \(Y\) are not independent.
🔗
Note that we can stop checking now. As soon as we find one cell in the joint distribution table where the independence condition fails, the two random variables are not independent. In order to establish independence of random variables, all cells in the joint distribution table would have to pass our check.
🔗
🔗

### Exercises Exercises

#### 1.

Consider \(X, Y\) with the joint distribution table below. Are \(X, Y\) independent?
🔗
Table 2.3.6. Joint distribution for \(X, Y\)
🔗

| \(X = 0\) | \(X = 1\)
\(Y = 0\) | 0.2 | 0.3
\(Y = 1\) | 0.4 | 0.1

Answer.
No. For example, \(\Pr(X = 0, Y = 0) \neq \Pr(X = 0)\Pr(Y = 0).\)
🔗
🔗
🔗

#### 2.

Suppose \(X, Y\) have the distributions:
\begin{align*} \Pr(X = 0) \amp = 0.1 \amp \Pr(Y = 0) \amp = 0.4 \\ \Pr(X = 1) \amp = 0.4 \amp \Pr(Y = 1) \amp = 0.6 \\ \Pr(X = 2) \amp = 0.5 \end{align*}
Assuming \(X, Y\) are independent, write a joint distribution table.
🔗
Answer.
Table 2.3.7. Joint Distribution
🔗

| \(X = 0\) | \(X = 1\) | \(X = 2\)
\(Y = 0\) | 0.04 | 0.16 | 0.2
\(Y = 1\) | 0.06 | 0.24 | 0.3

🔗
🔗
🔗
🔗
Prev Top Next