Chapter 6 Joint Distribution Functions
6.1 Overview
In Section 5 we have introduced the concept of a random variable and a variety of discrete and continuous random variables. However, often in statistics it is important to consider the joint behaviour of two (or more) random variables. For example:
- Height, Weight.
- Degree class, graduate salary.
In this Section we explore the joint distribution between two random variables XX and YY.
6.2 Joint c.d.f. and p.d.f.
where x,y∈Rx,y∈R.
The function fX,YfX,Y is called the joint probability density function (joint p.d.f.) of XX and YY.
Hence we differentiate the c.d.f. FX,Y(x,y)FX,Y(x,y) with respect to both xx and yy to obtain the p.d.f. fX,Y(x,y)=∂2∂x∂yFX,Y(x,y).fX,Y(x,y)=∂2∂x∂yFX,Y(x,y).
- Find P(X>Y)P(X>Y),
- Find P(X>12)P(X>12).
- Let C={(x,y):x>y}C={(x,y):x>y} and write A={(x,y):fX,Y(x,y)>0}A={(x,y):fX,Y(x,y)>0}. Then,

- Let D={(x,y):x>1/2}D={(x,y):x>1/2}, then
6.3 Marginal c.d.f. and p.d.f.
There are many situations with bivariate distributions where we are interested in one of the random variables. For example, we might have the joint distribution of height and weight of individuals but only be interested in the weight of individuals. This is known as the marginal distribution.
Suppose that the c.d.f. of XX and YY is given by FX,YFX,Y, then the c.d.f. of XX can be obtained from FX,YFX,Y since FX(x)=P(X≤x)=P(X≤x,Y<∞)=limy→∞FX,Y(x,y).FX(x)=P(X≤x)=P(X≤x,Y<∞)=limy→∞FX,Y(x,y). FXFX is called the marginal distribution (marginal c.d.f.) of XX.
If fX,YfX,Y is the joint p.d.f. of XX and YY, then the marginal probability density function (marginal p.d.f.) of XX is given by fX(x)=∫∞−∞fX,Y(x,y)dy.fX(x)=∫∞−∞fX,Y(x,y)dy.
Consider Example 1.
Find the marginal p.d.f. and c.d.f of Y.
Attempt Exercise 1 and then watch Video 14 for the solutions.
Video 14: Ratio of Exponentials
Alternatively the solutions are available:
Solution to Exercise 1
Clearly, Z>0Z>0. For z>0z>0,

Note that we can extend the notion of joint and marginal distributions to random variables X1,X2,…,XnX1,X2,…,Xn in a similar fashion.
6.4 Independent random variables
Random variables XX and YY are said to be independent if, for all x,y∈Rx,y∈R,
that is, for all x,y∈Rx,y∈R, FX,Y(x,y)=FX(x)FY(y)FX,Y(x,y)=FX(x)FY(y).
where both XX and YY are distributed according to Exp(1)Exp(1). Thus the distribution ZZ given in Exercise 1 is the ratio of two independent exponential random variables with mean 1.
Note that we can easily extend the notion of independent random variables to random variables X1,X2,…,XnX1,X2,…,Xn.
The random variables X1,X2,…,XnX1,X2,…,Xn are said to independent and identically distributed (i.i.d.) if,
X1,X2,…,XnX1,X2,…,Xn are independent.
X1,X2,…,XnX1,X2,…,Xn all have the same distribution, that is, Xi∼FXi∼F for all i=1,…,ni=1,…,n.
Definition 6 extends the notion of i.i.d. given at the start of Section 5.4.2 for discrete random variables.
The random variables X1,X2,…,XnX1,X2,…,Xn are said to be a random sample if they are i.i.d.
Suppose X1,X2,…,XnX1,X2,…,Xn are a random sample from the Poisson distribution with mean λλ. Find the joint p.m.f. of X1,X2,…,XnX1,X2,…,Xn.
If Xi∼Po(λ)Xi∼Po(λ), then its p.m.f. is given by
Since X1,X2,…,XnX1,X2,…,Xn are independent, their joint p.m.f. is given by,
The joint p.m.f. of X=(X1,X2,…,Xn)X=(X1,X2,…,Xn) tells us how likely we are to observe x=(x1,x2,…,xn)x=(x1,x2,…,xn) given λλ. This can be used either:
- To compute P(X=x)P(X=x) when λλ is known;
- Or, more commonly in statistics, to assess what is a good estimate of λλ given xx in situations where λλ is unknown.
Student Exercise
Attempt the exercise below.
Question.
A theory of chemical reactions suggests that the variation in the quantities XX and YY of two products C1C1 and C2C2 of a certain reaction is described by the joint probability density functionOn the basis of this theory, answer the following questions.
- What is the probability that at least one unit of each product is produced?
- Determine the probability that quantity of C1C1 produced is less than half that of C2C2.
- Find the c.d.f. for the total quantity of C1C1 and C2C2.
Solution to Question.
- The required probability is
P(X≥1,Y≥1)=∫∞1∫∞12(1+x+y)3dydx=∫∞1[−1(1+x+y)3]∞y=1dx=∫∞11(2+x)2dx=[−12+x]∞x=1=13.P(X≥1,Y≥1)=∫∞1∫∞12(1+x+y)3dydx=∫∞1[−1(1+x+y)3]∞y=1dx=∫∞11(2+x)2dx=[−12+x]∞x=1=13. - The required probability is
P(X≤12Y)=∫∞0∫y/202(1+x+y)3dxdy=∫∞0[−1(1+x+y)3]y/2x=0dy=∫∞0(1(1+y)2−1(1+3y/2)2)du=[−11+y−−2/3(1+3y/2)]∞y=0=13.P(X≤12Y)=∫∞0∫y/202(1+x+y)3dxdy=∫∞0[−1(1+x+y)3]y/2x=0dy=∫∞0(1(1+y)2−1(1+3y/2)2)du=[−11+y−−2/3(1+3y/2)]∞y=0=13. - Since both XX and YY are non-negative random variables, X+YX+Y is non-negative. Thus P(X+Y≤z)=0P(X+Y≤z)=0 for z<0z<0. For z≥0z≥0,
P(X+Y≤z)=∫z0∫z−y02(1+x+y)3dxdy=∫z0[−1(1+x+y)3]z−yx=0dy=∫z0(1(1+y)2−1(1+z)2)du=[−11+y−y(1+z)2]zy=0=−11+z−z(1+z)2+1+0=(z1+z)2.P(X+Y≤z)=∫z0∫z−y02(1+x+y)3dxdy=∫z0[−1(1+x+y)3]z−yx=0dy=∫z0(1(1+y)2−1(1+z)2)du=[−11+y−y(1+z)2]zy=0=−11+z−z(1+z)2+1+0=(z1+z)2.