

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































1.1. Example. Consider an experiment that consists of tossing a die and a coin at the same time. We can consider a number of random variables defined on this sample space. We will assign an indicator random variable to the result of tossing the coin. If it comes up heads we will assign a value of one, and if it comes up zero we will assign a value of zero. Consider the following random variables.
X 1 : The number of dots appearing on the die. X 2 : The sum of the number of dots on the die and the indicator for the coin. X 3 : The value of the indicator for tossing the coin. X 4 : The product of the number of dots on the die and the indicator for the coin. There are twelve sample points associated with this experiment where the first element of the pair is the number on the die and the second is whether the coin comes up heads or tails.
Random variable X 1 has six possible outcomes, each with probability 16. Random vari- able X 3 has two possible outcomes, each with probability 12. Consider the values of X 2 for each of the sample points. The possible outcomes and the probabilities for X 2 are as follows:
TABLE 1. Probability of X 2
Value of Random Variable Probability 1 1/ 2 1/ 3 1/ 4 1/ 5 1/ 6 1/ 7 1/
The possible outcomes and the probabilities for X 4 are as follows:
Date: January 23, 2006. 1
TABLE 2. Probability of X 4
Value of Random Variable Probability 0 1/ 1 1/ 2 1/ 3 1/ 4 1/ 5 1/ 6 1/
1.2. Bivariate Random Variables. Now consider the intersection of X 1 = 3 and X 2 = 3. We call this intersection a bivariate random variable. For a general bivariate case we write this as P (X 1 = x 1 , X 2 = x 2 ). We can write the probability distribution in the form of a table as follows for the above example.
TABLE 3. Joint Probability of X 1 and X 2
For the example, P (X 1 = 3, X 2 = 3) = 121 , which is the probability of sample point E 9.
2.1. Definition. If X 1 and X 2 be discrete random variables, the function given by
p(x 1 , x 2 ) = P (X 1 = x 1 , X 2 = x 2 )
for each pair of values of (x 1 , x 2 ) within the range of X 1 and X 2 is called the joint (or bivariate) probability distribution for X 1 and X 2. Specifically we write
p(x 1 , x 2 ) = P (X 1 = x 1 , X 2 = x 2 ), −∞ < x 1 < ∞, −∞ < x 2 < ∞. (1)
2.4. Example 2. Consider the example of tossing a coin and rolling a die from section 1. Now consider P (2 ≤ X 1 ≤ 3 , 1 ≤ X 2 ≤ 2). This is given as
P (2 ≤ X 1 ≤ 4 , 3 ≤ X 2 ≤ 5) = p(2, 3) + p(2, 4) + p(2, 5)
=
2.5. Example 3. Two caplets are selected at random from a bottle containing three aspirin, two sedative, and four cold caplets. If X and Y are, respectively, the numbers of aspirin and sedative caplets included among the two caplets drawn from the bottle, find the prob- abilities associated with all possible pairs of values of X and Y? The possible pairs are (0, 0), (0, 1), (1, 0), (1, 1), (0, 2), and (2, 0). To find the probability associated with (1, 0), for example, observe that we are concerned with the event of getting one of the three aspirin caplets, none of the two sedative caplets, and hence, one of the four cold caplets. The number of ways in which this can be done is ( 3 1
and the total number of ways in which two of the nine caplets can be selected is ( 9 2
Since those possibilities are all equally likely by virtue of the assumption that the selec- tion is random, it follows that the probability associated with (1, 0) is 1236 = 13. Similarly, the probability associated with (1, 1) is ( 3 1
1
0
and, continuing this way, we obtain the values shown in the following table:
TABLE 5. Joint Probability of Drawing Aspirin (X 1 ) and Sedative Caplets (Y ).
x 0 1 2 0 16 13 121
y 1 29 16 0 2 361 0 0
We can also represent this joint probability distribution as a formula
p(x, y) =
x
y
2 −x−y
, x = 0, 1 , 2; y = 0, 1 , 2; 0 ≤ (x + y) ≤ 2
3.1. Definition of the Distribution Function. If X 1 and X 2 are discrete random variables, the function given by
F (x 1 , x 2 ) = P [X 1 ≤ x 1 , X 2 ≤ x 2 ] =
u 1 ≤x 1
u 2 ≤x 2
p(u 1 , u 2 )
−∞ < x 1 < ∞ −∞ < x 2 < ∞
where p(u 1 , u 2 ) is the value of the joint probability function of X 1 and X 2 at (u 1 , u 2 ) is called the joint distribution function, or the joint cumulative distribution of X 1 and X 2.
3.2. Examples.
3.2.1. Example 1. Consider the experiment of tossing a red and green die where X 1 is the number of the red die and X 2 is the number on the green die. Now find F (2, 3) = P (X 1 ≤ 2 , X 2 ≤ 3). This is given by summing as in the definition (equation 2).
u 1 ≤ 2
u 2 ≤ 3
p(u 1 , u 2 )
= p(1, 1) + p(1, 2) + p(1, 3) + p(2, 1) + p(2, 2) + p(2, 3)
3.2.2. Example 2. Consider Example 3 from Section 2. The joint probability distribution is given in Table 5 which is repeated here for convenience.
TABLE 5. Joint Probability of Drawing Aspirin (X 1 ) and Sedative Caplets (Y ).
x 0 1 2 0 16 13 121
y 1 29 16 0 2 361 0 0
The joint probability distribution is
1 3
0
f (x 1 , x 2 ) dx 1 dx 2
1 3
0
6 x^21 x 2 dx 1 dx 2 +
1 3
0
0 dx 1 dx 2
1 3
0
6 x^21 x 2 dx 1 dx 2
Integrate the inner integral first.
(^13)
0
6 x^21 x 2 dx 1 dx 2
(^13)
2 x^31 x 2
0
dx 2
(^13)
x 2 − 0
dx 2
(^13)
x 2
dx 2
(^13)
x 2 dx 2
Now integrate the remaining integral
1 3
x 2 dx 2
x^22
1 (^13)
This probability is the volume under the surface f (x 1 , x 2 ) = 6x^21 x 2 and above the rect- angular set
{(x 1 , x 2 ) | 0 < x 1 < 34 , 13 < x 2 < 1 }
in the x 1 x 2 -plane. We can see this area in figure 1
FIGURE 1. Probability that
4.4. Definition of a Joint Distribution Function. If X 1 and X 2 are continuous random variables, the function given by
F (x 1 , x 2 ) = P [X 1 ≤ x 1 , X 2 ≤ x 2 ] =
∫ (^) x 2
−∞
∫ (^) x 1
−∞
f (u 1 , u 2 ) du 1 du 2
−∞ < x 1 < ∞ −∞ < x 2 < ∞
where f (u 1 , u 2 ) is the value of the joint probability function of X 1 and X 2 at (u 1 , u 2 ) is called the joint distribution function, or the joint cumulative distribution of X 1 and X 2. If the joint distribution function is continuous everywhere and partially differentiable with respect to x 1 and x 2 for all but a finite set of values then
f (x 1 , x 2 ) =
∂x 1 ∂x 2
F (x 1 , x 2 ) (5)
wherever these partial derivatives exist.
- 1 - 0.5 0.25 0.5 0.75 1 1.
0.
0.
0.
1
1.
We find the distribution function by integrating the joint density function. If either x 1 < 0 or x 2 < 0 , it follows that F (x 1 , x 2 ) = 0
For 0 < x 1 < 1 and 0 < x 2 < 1 , we get
F (x 1 , x 2 ) =
∫ (^) x 2
0
∫ (^) x 1
0
(s + t) ds dt =
x 1 x 2 (x 1 + x 2 )
for x 1 > 1 and 0 < x 2 < 1 , we get
F (x 1 , x 2 ) =
∫ (^) x 2
0
0
(s + t)ds dt =
x 2 (x 2 + 1)
for 0 < x 1 < 1 and x 2 > 1 , we get
F (x 1 , x 2 ) =
0
∫ (^) x 1
0
(s + t)ds dt =
x 1 (x 1 + 1)
and for x 1 > 1 and x 2 > 1 we get
F (x 1 , x 2 ) =
0
0
(s + t) ds dt = 1
Because the joint distribution function is everywhere continuous, the boundaries be- tween any two of these regions can be included in either one, and we can write
F (x 1 , x 2 ) =
0 for x 1 ≤ 0 or x 2 ≤ 0
1 2 x^1 x^2 (x^1 +^ x^2 )^ for^0 < x^1 <^1 ,^0 < x^2 <^1 1 2 x^2 (x^2 + 1)^ for^ x^1 ≥^1 ,^0 < x^2 <^1 1 2 x^1 (x^1 + 1)^ for^0 < x^1 <^1 , x^2 ≥^1
1 for x 1 ≥ 1 , x 2 ≥ 1
4.7. Deriving a Joint Density Function from a Distribution Function. Consider two ran- dom variables X 1 and X 2 whose joint distribution function is given by
F (x 1 , x 2 ) =
(1 − e−x^1 ) (1 − e−x^2 ) for x 1 > 0 and x 2 > 0 0 elsewhere
Partial differentiation yields ∂^2 ∂x 1 ∂x 2
F (x 1 , x 2 ) = e−(x^1 +x^2 )
For x 1 > 0 and x 2 > 0 and 0 elsewhere we find that the joint probability density of X 1 and X 2 is given by
f (x 1 , x 2 ) =
e−(x^1 +x^2 )^ for x 1 > 0 and x 2 > 0 0 elsewhere
5.1. Joint Density of Several Random Variables. The k-dimensional random variable (X 1 , X 2 ,... , Xk) is said to be a k-dimensional random variable if there exists a function f (·, ·,... , ·) ≥ 0 such that
F (x 1 , x 2 ,... , xk) =
∫ (^) xk
−∞
∫ (^) xk− 1
−∞
∫ (^) x 1
−∞
f (u 1 , u 2 ,... uk) du 1... duk (6)
for all (x 1 , x 2 ,... , xk) where F (x 1 , x 2 , x 3 ,... ) = P [X 1 ≤ x 1 , X 2 ≤ x 2 , X 3 ≤ x 3 ,... ]
The function f (·) is defined to be a joint probability density function. It has the following properties:
f (x 1 , x 2 ,... , xk) ≥ 0 ∫ (^) ∞
−∞
−∞
f (x 1 , x 2 ,... , xk) dx 1... dxk = 1
In order to make it clear the variables over which f is defined it is sometimes written f (x 1 , x 2 ,... , xk) = fX 1 , X 2 , ... , Xk (x 1 , x 2 ,... , xk) (8)
h(x 2 ) =
x 1
p(x 1 , x 2 ) (10)
for each x 2 within the range of X 2 is called the marginal distribution of X 2.
6.3. Marginal Distributions for Continuous Random Variables. If X and Y are jointly continuous random variables, then the functions fX (·) and fY (·) are called the marginal probability density functions. The subscripts remind us that fX is defined for the random variable X. Intuitively, the marginal density is the density that results when we ignore any information about the random outcome Y. The marginal densities are obtained by integration of the joint density
fX (x) =
−∞
fX, Y (x, y) dy
fY (y) =
−∞
fX, Y (x, y) dx
In a similar fashion for a k-dimensional random variable X
fX 1 (x 1 ) =
−∞
−∞
−∞
f (x 1 , x 2 ,... ) dx 2 dx 3... dxk
fX 2 (x 2 ) =
−∞
−∞
−∞
f (x 1 , x 2 ,... ) dx 1 dx 3... dxk
6.4. Example 1. Let the joint density of two random variables x 1 and x 2 be given by
f (x 1 , x 2 ) =
2 x 2 e−x^1 x 1 ≥ 0 , 0 ≤ x 2 ≤ 1
0 otherwise
What are the marginal densities of x 1 and x 2? First find the marginal density for x 1.
f 1 (x 1 ) =
0
2 x 2 e−x^1 dx 2
= x^22 e−x^1
0 = e−x^1 − 0
= e−x^1
Now find the marginal density for x 2.
f 2 (x 2 ) =
0
2 x 2 e−x^1 dx 1
= − 2 x 2 e−x^1
0 = 0 −
− 2 x 2 e^0
= 2x 2 e^0 = 2x 2
6.5. Example 2. Let the joint density of two random variables x and y be given by
f (x, y) =
6 (x^ + 4y)^0 < x <^2 ,^0 < y <^1 0 otherwise What are the marginal densities of x and y? First find the marginal density for x.
fX (x) =
0
(x + 4y) dy
(xy + 2y^2 )
1 0
=
(x + 2) −
(x + 2)
Now find the marginal density for y.
fY (y) =
0
(x + 4y) dx
x^2 2
2
0
=
(2 + 8y)
7.1. Conditional Probability Functions for Discrete Distributions. We have previously shown that the conditional probability of A given B can be obtained by dividing the prob- ability of the intersection by the probability of B, specifically,
TABLE 6. Joint and Marginal Probabilities of X 1 and X 2.
1 12
1 6
1 6
1 6
1 6
1 6
1 12
TABLE 7. Probability Function for X 1 given X 2.
1 12
1 6
1 6
1 6
1 6
1 6
1 12
7.3.1. Discussion. In the continuous case, the idea of a conditional distribution takes on a slightly different meaning than in the discrete case. If X 1 and X 2 are both continuous, P (X 1 = x 1 | X 2 = x 2 ) is not defined because the probability of any one point is identically zero. It make sense however to define a conditional distribution function, i.e.,
P (X 1 ≤ x 1 | X 2 = x 2 )
TABLE 8. Probability Function for X 2 given X 1.
1 12
1 6
1 6
1 6
1 6
1 6
1 12
because the value of X 2 is known when we compute the value the probability that X 1 is less than some specific value.
7.3.2. Definition of a Continuous Distribution Function. If X 1 and X 2 are jointly continuous random variables with joint density function f (x 1 , x 2 ), then the conditional distribution function of X 1 given X 2 = x 2 is
F (x 1 | x 2 ) = P (X 1 ≤ x 1 | X 2 = x 2 ) (16) We can obtain the unconditional distribution function by integrating the conditional one over x 2. This is done as follows.
F (x 1 ) =
−∞
F (x 1 | x 2 )fX 2 (x 2 ) dx 2 (17)
We can also find the probability that X 1 is less than x 1 is the usual fashion as
F (x 1 ) =
∫ (^) x 1
−∞
fX 1 (t 1 ) dt 1 (18)
But the marginal distribution inside the integral is obtained by integrating the joint den- sity over the range of x 2. Specifically,
fX 1 (t 1 ) =
−∞
fX 1 X 2 (t 1 , x 2 ) dx 2 (19)
This implies then that
F (x 1 ) =
−∞
∫ (^) x 1
−∞
fX 1 X 2 (t 1 , x 2 ) dt 1 dx 2 (20)
f (x, y) f (y)
(x + 4y) (8y + 2)
x + 4
2
2
(x + 2) (4 + 2)
(x + 2) 6 Then
0
(x + 2) dx
x^2 2
1
0
=
8.1. Discussion. We have previously shown that two events A and B are independent if the probability of their intersection is the product of their individual probabilities, i.e.
P (A ∩ B) = P (A)P (B) (24) In terms of random variables, X and Y , consistency with this definition would imply that
P (a ≤ X ≤ b, c ≤ Y ≤ d) = P (a ≤ X ≤ b) P (c ≤ Y ≤ d) (25) That is, if X and Y are independent, the joint probability can be written as the product of the marginal probabilities. We then have the following definition.
Let X have distribution function FX (x), Y have distribution function FY (y), and X and Y gave joint distribution function F (x, y). Then X and Y are said to be independent if, and only if,
F (x, y) = FX (X)FY (y) (26) for every pair of real numbers (x, y). If X and Y are not independent, they are said to be dependent.
8.2. Independence Defined in Terms of Density Functions.
8.2.1. Discrete Random Variables. If X and Y are discrete random variables with joint prob- ability density function p(x, y) and marginal density functions pX (x) and pY (y), respec- tively, then X and Y are independent if, and only if
pX,Y (x, y) = pX (x)pY (y) = p(x)p(y)
for all pairs of real numbers (x, y).
8.2.2. Continuous Bivariate Random Variables. If X and Y are continuous random variables with joint probability density function f (x, y) and marginal density functions fX (x) and fY (y), respectively then X and Y are independent if and only if
fX,Y (x, y) = fX (x)fY (y) = f (x)f (y)
for all pairs of real numbers (x, y).
8.3. Continuous Multivariate Random Variables. In a more general context the variables X 1 , X 2 ,... , Xk are independent if, and only if
fX 1 , X 2 , ..., Xk (x 1 , x 2 ,... , xk) =
∏^ k
i=
fXi (xi)
= fX 1 (x 1 )fX 2 (x 2 )... fXk (xk)
= f (x 1 )f (x 2 )... f (xk)
In other words two random variables are independent if the joint density is equal to the product of the marginal densities.
8.4. Examples.
8.4.1. Example 1 — Rolling a Die and Tossing a Coin. Consider the previous example where we rolled a die and tossed a coin. X 1 is the number on the die, X 2 is the number of the die plus the value of the indicator on the coin (H = 1). Table 8 is repeated here for convenience. For independence p(x, y) = p(x)p(y) for all values of x 1 and x 2. To show that the variables are not independent, we only need show that
p(x, y) 6 = p(x)p(y)
Consider p(1, 2) = 12. If we multiply the marginal probabilities we obtain ( 1 6