5.1.2 Joint Cumulative Distributive Function (CDF)
Remember that, for a random variable , we define the CDF as . Now, if we have two random variables and and we would like to study them jointly, we can define the joint cumulative function as follows:
The joint cumulative distribution function of two random variables and is defined as \begin{align}%\label{} \nonumber F_{XY}(x,y)=P(X \leq x, Y \leq y). \end{align}
As usual, comma means "and," so we can write
\begin{align}%\label{}
\nonumber F_{XY}(x,y)&=P(X \leq x, Y \leq y) \
\nonumber &= P\big((X \leq x)\textrm{ and }(Y\leq y)\big)=P\big((X \leq x)\cap(Y\leq y)\big).
\end{align}
Figure 5.2 shows the region associated with in the two-dimensional plane. Note that the above definition of joint CDF is a general definition and is applicable to discrete, continuous, and mixed random variables.
Since the joint CDF refers to the probability of an event, we must have $0 \leq F_{XY}(x,y) \leq 1$.

Figure 5.2: is the probability that belongs to the shaded region. The dots are the pairs in .
If we know the joint CDF of and , we can find the marginal CDFs, and . Specifically, for any , we have \begin{align}%\label{} \nonumber F_{XY}(x,\infty)&=P(X \leq x, Y \leq \infty) \ \nonumber &= P(X \leq x)=F_X(x). \end{align} Here, by , we mean . Similarly, for any , we have \begin{align}%\label{} \nonumber F_Y(y)=F_{XY}(\infty, y). \end{align}
Marginal CDFs of and :
\begin{align}\label{Eq:CDF-marginals} \nonumber F_X(x)&=F_{XY}(x, \infty)=\lim_{y \rightarrow \infty} F_{XY}(x,y), \hspace{20pt} \textrm{ for any } x,\ F_Y(y)&=F_{XY}(\infty, y)=\lim_{x \rightarrow \infty} F_{XY}(x,y), \hspace{20pt} \textrm{ for any } y \hspace{20pt} (5.2) \end{align}
Also, note that we must have \begin{align}%\label{} \nonumber &F_{XY}(\infty, \infty)=1,\ \nonumber &F_{XY}(-\infty, y)=0,\hspace{20pt} \textrm{ for any } y,\ \nonumber &F_{XY}(x,-\infty)=0,\hspace{20pt} \textrm{ for any } x. \end{align}
Example Let and be independent, where $0<p,q<1$. Find the joint PMF and joint CDF for and .
- Solution
First note that the joint range of and is given by \begin{align}%\label{} \nonumber R_{XY}={(0,0),(0,1),(1,0),(1,1)}. \end{align} Since and are independent, we have \begin{align}%\label{} \nonumber P_{XY}(i,j)=P_X(i)P_Y(j), \hspace{20pt} \textrm{for }i,j=0,1. \end{align} Thus, we conclude \begin{align}%\label{} \nonumber &P_{XY}(0,0)=P_X(0)P_Y(0)=(1-p)(1-q),\ \nonumber &P_{XY}(0,1)=P_X(0)P_Y(1)=(1-p)q,\ \nonumber &P_{XY}(1,0)=P_X(1)P_Y(0)=p(1-q),\ \nonumber &P_{XY}(1,1)=P_X(1)P_Y(1)=pq. \end{align} Now that we have the joint PMF, we can find the joint CDF \begin{align} \nonumber F_{XY}(x,y)=P(X \leq x, Y \leq y). \end{align} Specifically, since $0 \leq X,Y \leq 1$, we conclude \begin{align} \nonumber &F_{XY}(x,y)=0, \hspace{20pt} \textrm{if } x<0,\ \nonumber &F_{XY}(x,y)=0, \hspace{20pt} \textrm{if } y<0,\ \nonumber &F_{XY}(x,y)=1, \hspace{20pt} \textrm{if } x \geq 1 \textrm{ and } y \geq 1. \end{align} Now, for $0 \leq x <1$ and , we have \begin{align}%\label{} \nonumber F_{XY}(x,y) &=P(X \leq x, Y \leq y)\ \nonumber &= P(X=0, y \leq 1)\ \nonumber &=P(X=0)=1-p. \end{align} Similarly, for $0 \leq y <1$ and , we have \begin{align}%\label{} \nonumber F_{XY}(x,y) &=P(X \leq x, Y \leq y)\ \nonumber &= P(X \leq 1, y=0)\ \nonumber &=P(Y=0)=1-q. \end{align} Finally, for $0 \leq x <1$ and $0 \leq y < 1$, we have \begin{align} \nonumber F_{XY}(x,y) &=P(X \leq x, Y \leq y)\ \nonumber &= P(X=0, y=0)\ \nonumber &=P(X=0)P(Y=0)=(1-p)(1-q). \end{align} Figure 5.3 shows the values of in different regions of the two-dimensional plane. Note that, in general, we actually need a three-dimensional graph to show a joint CDF of two random variables, i.e., we need three axes: , , and . However, because the random variables of this example are simple, and can take only two values, a two-dimensional figure suffices.

Figure 5.3 Joint CDF for and in Example 5.2
Here is a useful lemma:
Lemma For two random variables and , and real numbers , , we have \begin{align}%\label{} \nonumber P(x_1<X &\leq x_2, \hspace{5pt} y_1<Y \leq y_2)= \ \nonumber &F_{XY}(x_2,y_2)-F_{XY}(x_1,y_2)-F_{XY}(x_2,y_1)+F_{XY}(x_1,y_1). \end{align} To see why the above formula is true, you can look at the region associated with (as shown in Figure 5.2) for each of the pairs . You can see, as we subtract and add regions, the part that is left is the region .
