5.2.1 Joint Probability Density Function (PDF)
Here, we will define jointly continuous random variables. Basically, two random variables are jointly continuous if they have a joint probability density function as defined below.
Definition Two random variables and are jointly continuous if there exists a nonnegative function , such that, for any set , we have \begin{align}\label{eq:double-int} P\big((X,Y) \in A\big) =\iint \limits_A f_{XY}(x,y)dxdy \hspace{30pt} (5.15) \end{align} The function is called the joint probability density function (PDF) of and .
In the above definition, the domain of is the entire . We may define the range of as \begin{align}%\label{} \nonumber R_{XY}={(x,y) | f_{X,Y}(x,y)>0}. \end{align} The above double integral (Equation 5.15) exists for all sets of practical interest. If we choose , then the probability of must be one, so we must have
\begin{align}%\label{} \nonumber \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{XY}(x,y)dxdy=1 \end{align}
The intuition behind the joint density is similar to that of the PDF of a single random variable. In particular, remember that for a random variable and small positive , we have \begin{equation}%\label{} \nonumber P(x<X \leq x+\delta) \approx f_X(x) \delta. \end{equation} Similarly, for small positive and , we can write \begin{equation}%\label{} \nonumber P(x<X \leq x+\delta_x, y \leq Y \leq y+\delta_y ) \approx f_{XY}(x,y) \delta_x \delta_y. \end{equation}
Example Let and be two jointly continuous random variables with joint PDF \begin{equation} \nonumber f_{XY}(x,y) = \left{ \begin{array}{l l} x+cy^2 & \quad 0 \leq x \leq 1,0 \leq y \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- Find the constant .
- Find .
- Solution
- To find , we use \begin{align}%\label{}
\nonumber \int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{XY}(x,y)dxdy=1. \end{align} Thus, we have \begin{align}%\label{} \nonumber 1&=\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{XY}(x,y)dxdy\ \nonumber &=\int_{0}^{1} \int_{0}^{1} x+cy^2 \hspace{5pt} dxdy\ \nonumber &=\int_{0}^{1} \bigg[ \frac{1}{2} x^2+cy^2x \bigg]{x=0}^{x=1} \hspace{5pt} dy\ \nonumber &=\int{0}^{1} \frac{1}{2}+cy^2 \hspace{5pt} dy\ \nonumber &=\bigg[ \frac{1}{2}y+\frac{1}{3}cy^3 \bigg]{y=0}^{y=1}\ \nonumber &=\frac{1}{2}+\frac{1}{3}c. \end{align} Therefore, we obtain . 2. To find , we can write \begin{align}%\label{} \nonumber P\big((X,Y) \in A\big) =\iint{A} f_{XY}(x,y)dxdy, \hspace{10pt} \textrm{for }A={(x,y)| 0 \leq x,y \leq 1}. \end{align} Thus, \begin{align}%\label{} \nonumber P (0 \leq X \leq \frac{1}{2}, 0 \leq Y \leq \frac{1}{2})&= \int_{0}^{\frac{1}{2}}\int_{0}^{\frac{1}{2}} \left(x+\frac{3}{2}y^2\right) dxdy \ \nonumber &= \int_{0}^{\frac{1}{2}} \bigg[\frac{1}{2}x^2+\frac{3}{2}y^2x\bigg]{0}^{\frac{1}{2}}dy\ \nonumber &=\int{0}^{\frac{1}{2}} \left(\frac{1}{8}+\frac{3}{4}y^2\right) dy\ \nonumber &=\frac{3}{32}. \end{align}
We can find marginal PDFs of and from their joint PDF. This is exactly analogous to what we saw in the discrete case. In particular, by integrating over all 's, we obtain . We have
Marginal PDFs
\begin{align}%\label{} \nonumber f_X(x)=\int_{-\infty}^{\infty} f_{XY}(x,y)dy, \hspace{10pt} \textrm{ for all }x,\ \nonumber f_Y(y)=\int_{-\infty}^{\infty} f_{XY}(x,y)dx, \hspace{10pt} \textrm{ for all }y. \end{align}
Example In Example 5.15 find the marginal PDFs and .
- Solution
- For $0 \leq x \leq 1$, we have \begin{align}%\label{} \nonumber f_X(x)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dy \ \nonumber &=\int_{0}^{1}\left(x+\frac{3}{2}y^2\right)dy\ \nonumber &=\bigg[xy+\frac{1}{2}y^3 \bigg]{0}^{1}\ \nonumber &=x+\frac{1}{2}. \end{align} Thus, \begin{equation} \nonumber f{X}(x) = \left{ \begin{array}{l l} x+\frac{1}{2} & \quad 0 \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Similarly, for $0 \leq y \leq 1$, we have \begin{align}%\label{} \nonumber f_Y(y)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dx \ \nonumber &=\int_{0}^{1}\left(x+\frac{3}{2}y^2\right)dx\ \nonumber &=\bigg[\frac{1}{2}x^2+\frac{3}{2}y^2x \bigg]{0}^{1}\ \nonumber &=\frac{3}{2}y^2+\frac{1}{2}. \end{align} Thus, \begin{equation} \nonumber f{Y}(y) = \left{ \begin{array}{l l} \frac{3}{2}y^2+\frac{1}{2} & \quad 0 \leq y \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
Example Let and be two jointly continuous random variables with joint PDF \begin{equation} \nonumber f_{XY}(x,y) = \left{ \begin{array}{l l} cx^2y & \quad 0 \leq y \leq x \leq 1 \ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation}
- Find and show it in the plane.
- Find the constant .
- Find marginal PDFs, and .
- Find .
- Find .
- Solution
From the joint PDF, we find that \begin{align}%\label{} \nonumber R_{XY}={(x,y)\in \mathbb{R}^2| 0 \leq y \leq x \leq 1 }. \end{align} Figure 5.6 shows in the plane.

Figure 5.6: Figure shows as well as integration region for finding .
To find the constant , we can write \begin{align}%\label{}
\nonumber 1&=\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{XY}(x,y)dxdy\ \nonumber &=\int_{0}^{1} \int_{0}^{x} cx^2y \hspace{5pt} dydx\ \nonumber &=\int_{0}^{1} \frac{c}{2} x^4 dx\ \nonumber &=\frac{c}{10}. \end{align} Thus, . 3. To find the marginal PDFs, first note that . For $0 \leq x \leq 1$, we can write \begin{align}%\label{} \nonumber f_X(x)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dy\ \nonumber &=\int_{0}^{x}10x^2ydy\ \nonumber &=5x^4. \end{align} Thus, \begin{equation} \nonumber f_X(x) = \left{ \begin{array}{l l} 5x^4 & \quad 0 \leq x \leq 1\ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} For $0 \leq y \leq 1$, we can write \begin{align}%\label{} \nonumber f_Y(y)&=\int_{-\infty}^{\infty} f_{XY}(x,y)dx\ \nonumber &=\int_{y}^{1}10x^2ydx\ \nonumber &=\frac{10}{3}y(1-y^3). \end{align} Thus, \begin{equation} \nonumber f_Y(y) = \left{ \begin{array}{l l} \frac{10}{3}y(1-y^3) & \quad 0 \leq y \leq 1\ & \quad \ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} 4. To find , we need to integrate over region shown in Figure 5.6. In particular, we have \begin{align}%\label{} \nonumber P\left(Y\leq \frac{X}{2}\right)&=\int_{-\infty}^{\infty} \int_{0}^{\frac{x}{2}} f_{XY}(x,y)dydx\ \nonumber &=\int_{0}^{1} \int_{0}^{\frac{x}{2}} 10x^2y \hspace{5pt} dydx\ \nonumber &=\int_{0}^{1} \frac{5}{4} x^4 dx\ \nonumber &=\frac{1}{4}. \end{align} 5. To find , we have \begin{align}%\label{} \nonumber P\left(Y\leq \frac{X}{4}|Y\leq \frac{X}{2}\right)&=\frac{P\left(Y\leq \frac{X}{4},Y\leq \frac{X}{2}\right)}{P\left(Y\leq \frac{X}{2}\right)}\ \nonumber &=4P\left(Y\leq \frac{X}{4}\right)\ \nonumber &=4\int_{0}^{1} \int_{0}^{\frac{x}{4}} 10x^2y \hspace{5pt} dydx\ \nonumber &=4\int_{0}^{1} \frac{5}{16} x^4 dx\ \nonumber &=\frac{1}{4}. \end{align}