10-Random Variables-Material - I - RANDOM - VARIABLES
10-Random Variables-Material - I - RANDOM - VARIABLES
6.1 Types of Random variables: There are two types of random variables namely,
(1) Discrete random variables and (2) Continuous random variables.
1) Discrete random variable: A random variable which takes only a
finite or countable infinite number values is called a discrete random
variable.
Examples: Test scores, number of students, marks obtained by students, number
of
children is different families, number of heads in two-coin tossing, etc.,
2) Continuous random variable: A random variable which takes all
values in one or more intervals is called a continuous random variable.
Examples: Height, weight, age, length, temperature etc.,
Remarks: It X and Y are random variables then
(i) k X (ii) X+Y (iii) X-Y (iv) k1 X+ k2 Y and (v) X Y are also random
variables. Here k, k1 and k2 are constants.
The function pi = P(X = xi) is called the probability mass function (p.m.f)
of the
random variable X or the probability function of the random variable X.
Further, the following table that consists of all possible ordered pairs {x,
p(x)}, is called the probability distribution of discrete random variable X;
1
X: x1, x2 ………………………. xn Total
P(x) p1, p2 ………………………. pn 1
Example: Consider the random experiment of tossing two coins. The sample
space S is
given by
S = HH , HT , TH , TT
Define a random variable X as the number of heads obtained. Then X
takes
values 0, 1, 2. We have ,
1 2 1
P X 0 , P X 1 , P X 2
4 4 4
1 2 1
such that P X 0 P X 1 P X 2 1
4 4 4
The probability distribution of X is given by
x 0 1 2 Total
p(x) 1/4 2/4 1/4 1
The width of this interval is dx and P stands for the weight assigned to
dx points. Then the weight assigned to one point is the probability density
function (p.d.f) of
2
the random
variable X, which is denoted by,
P x
dx
X x
dx
2 2
f(x) =
dx
b
3. P a X b f x dx
a
The curve y = f(x) is known as the probability curve and the area under the
curve between x = a and x = b refers to the probability that the random
variable X assumes values between a and b. The area under curve
between - and is unity.
PROBLEM 6.5.1: Three unbiased coins are tossed. X represents the random
variable of
number of heads. Construct its probability distribution.
SOLUTION:
Sample space: S = HHH , HHT , HTH , THH , HTT , THT , TTH , TTT
Define the random variable X as
X = Number of heads.
X = 0, 1, 2, 3
Thus we have
1
P X 0 = P TTT
8
3
P X 1 = P HTT , THT , TTH
8
3
3
p X 2 = P HHT , HTH , THH
8
1
P X 3 = P HHH
8
x: -2 -1 0 1 2 3
P(x) 0.1 K 0.2 2k 0.3 k
Find the value of K and hence find P 1 X 2
Solution: We have, P x 1
0.1 + k + 0.2 + 2k + 0.3 + k = 1
4k + 0.6 = 1
4k = 1-0.6 = 0.4
k = 0.1
Thus the probability distribution is given by,
x: -2 -1 0 1 2 3
P(x) 0.1 0.1 0.2 0.2 0.3 0.1
Consider P 1 X 2
= P X 1 1 X 0 X 0 0 X 1 X 1 1 X 2 X 2
P X 1 P 1 X 0 P X 0 P 0 X 1 P X 1 P 1 X 2 P X 2
4
Problem 6.5.3.: Given below is the probability distribution of a random variable X:
x: 0 1 2 3
P[X = x] 0.1 0.3 0.5 0.1
2
If Y = X + 2X, then find the probability distribution of Y. Also find
P 0 Y 5
Solution: Given
Y = X2+2X 0 3 8 5
P[Y = y] 0.1 0.3 0.5 0.1
We have, P 0 Y 5 = P Y 0 + P 0 Y 3 + P Y 3 +
P 3 Y 5
P [0 Y 5] = 0.4
Problem 6.5.4: Let P( x) be the probability mass function of a discrete random
variable X
that assumes x1 , x2 , x3 , x4 , such that, 2P( x1 ) 3P( x2 ) P( x3 ) 5P( x4 ) .
Find the probability distribution.
2
Solution: Given, P x2 = P x1
3
P x3 = 2 P x1
2
P x4 =P x1
5
By definition of p.m.f we have
P x1 P x2 P x3 P x4 1
2 2
P x1 P x1 2P x1 P x1 1
3 5
2 2
P x1 1 2 1
3 5
61
P x1 1
15
15
P x1
16
2 15 10
Thus, P x2 =
3 61 61
5
15 30
P x3 2
61 61
2 15 6
P x4
5 61 61
The probability distribution is given by:
x x1 x2 x3 x4
15 10 30 6
p ( x) 61 61 61 61
Problem 6.5.5: A lot of 10 items contain 3 defectives out of which 4 items are
drawn at
random. Let X denote the number of the defectives in the sample. What is
the probability distribution of X?
x: 0 1 2 3
1 1 3 1
P(X = 6 2 10 30
x)
6
1
f(x) = , a xb
ba
= 0 other wise
SOLUTION: Consider
a b
f x dx = f x dx
+ f x dx + f x dx
a b
a b b
1
= 0 dx + b a dx 0 dx
a a
b
1
= 0 dx 0
a
ba
1 1
xa b a 1
b
=
b a ba
It follows that f(x) is a probability density function
PROBLEM6.6.2: Given below is probability density function of a random variable
X:
f(x) = a e3 x , 0 x Find the value of a and hence find P 2 X 3
SOLUTION:
1. Since f(x) is probability density function, we have f x dx 1
0
f x dx f x dx 1
0
0
0 dx f x dx 1
0
ae
3 x
dx 1
0
e3 x
a 1
3 0
1
a 0 1
3
a
1 or a = 3
3
f x 3e3 x , 0 x
7
3 3
2. Consider P(2 X 3) = 3 e 3 x
.dx = 3 e3 x .dx
2 2
3
e3 x e9 e6 6 9
= 3 3 3 3 e e
3 2
P 2 X 3 = e6 e9
x2 x
1.0
2 1.5
= 2 x
2 0.5 2 1.0
1.0 2
0.5 2
1.5 2 1.0 2
= 2 1.5 2 1.0
2 2 2 2
3 3
1 1 3 2 2 1
= 2 2
2 8
2 2
2
1 1 9 3 3
= 3 =
2 8 8 2 4
PROBLEM 6.6.4: The shelf life (in hours) of a certain perishable packaged food is
a
random variable whose probability density function is given by
8
20, 000
if x 0
= x 100
3
f(x)
0
other wise
Find the probability that one of the packages will have a shelf life of (a)
atleast 200 hours; (b) atmost 100 hours; (c) any where from 80 to 120
hours.
1
= 20000
2 x 100
2
200
20000 1
= x 100
2
2 200
1 10000 1
= 10000
300
2
90000 9
1
P X 200
9
100
20, 000
b. P 0 X 100 = x 100 3
dx
0
20000
100
1
= x 100
2
2 0
1
1
= 10, 000
200 100
2 2
= 10, 000
1 1
10000 40000
= 1
1 3
4 4
3
P 0 X 100 =
4
20, 000
120 120
20, 000 1
P 80 X 120 ( x 100) dx
c. =
80
3
2 ( x 100) 2
80
1 1
= 10000
220 180
2 2
9
= 10000
1
1 = 100
1
1
48400 32100
484 321
P 80 X 120 = 0.1049
(a)Write, 3 X 2 5 = 3 X 3 = X 1
3
P 3 X 2 5 = P X 1 = f x dx = f x dx + f x dx
1 1 3
3 3
1 1 1 1
= 6 dx 0 dx = 6 dx 6 2 3
1 3 1
1
P 3 X 2 5 =
3
PROBLEM 6.6.6: Suppose X be a continuous random variable with probability
density
function,
3x 2 , 0 x 1
f(x) =
0, other wise
Find a and b such that (i) P X a = P X a , and (ii) P X b 0.05
Solution:
10
3 x dx = x
a
P X a =
a
1. We have a
2 3 3
0
0
1
= 3 x 2 dx = x3 1 a3
1
P X a
a
a
given, P x a = P x a
1 1
a3 = 1-a3 2a3 = 1 a3 a 1/ 3
2 2
1
= 3 x 2 dx = x3 = 1-b3
1
2. Consider P X b
b
b
Given, P X b = 0.05
1-b3 = 0.05
b3 = 0.95
b = (0,.95)1/3
Suppose X be a random variable with range - < x < . For a real value
x, the distribution function of random variable X is denoted by F(x) and is
defined as
F(x) = P(X x) , - < x < .
Thus, F(x) gives the cumulative probability that X takes the values from its
lower limit to x.
4. F(-) = 0
Proof: F P X 0
Where F Lt F ( x)
x
5. F(+) = 1
Proof: F P x 1, where F Lt F ( x) ,
x
p P X x 1
i i
F x P X x P X xi
xi x
Remarks:
1. The distribution function of discrete random variable is a step function or a
jump function, the length of its jump at X = xi being P X xi pi
2. Let X be a discrete random variable taking values x1, x2, ……. such that
x1 < x2 < …. then the probability mass function can be determine by the
distribution function as follows :
P X xi F xi F xi 1 or P X xi P X xi P X xi 1
12
x
Remarks :
b
1. P a X b = P a X b = P a X b = P a X b = f x dx
a
0 if x 0
1
if 0 x 1
F ( x) 8
1 if 2 x 3
2 13
1 if x 3
Problem 6.8.2 : Let X be a random variable whose probability mass function is
given by,
1 2 3 4 5 15
F (5) P[ x 1] P[ X 2] P[ X 3] P[ X 4] P[ X 5] 1
15 15 15 15 15 15
The distribution function of X is,
0 if x 1
1
if 1 x 2
15
3
if 2 x 3
15
F ( x)
6 if 3 x 4
15
10
if 4 x 5
15
1 if x 5
P[ X 1] P[ X 1] 1
1 14
We know that, P[ X 1] 1 P[ X 1] 1 P[ X 1] 1
15 15
14
i.e., P[ X 1]
15
14
Further,
P ( X 1)
1
2
X
5
2
P 1 X
5
2
P[ X 2]
2
15
1 5
2 /15 1
P ( X 1) X
P
1
X
5
( X 1)
2 2
2 2 P[ X 1] 14 /15 7
Solution:
1. p(0)+p(1)+p(2) = 1
3C3+4C-10C2+5C-1 = 1
3C3-10C2+9C-2 = 0
C=1 is a root
(C-1)(3C2-7C+2) = 0
3C2-7C+2 = 0
(3C-1)(C-2) = 0
1
C= , 1, 2
3
C=1, 2 can not be accepted, since if C=1 or 2, P(0)>1
1
Thus, choose C=
3
1 2 6
p(0)= ; p(1)= ; p(2)=
9 9 9
1 2 3 1
3. P(X<2)=P(X=0)+P(X=1)=
9 9 9 3
15
6 2
P(1<X2)=P(X=2)=
9 3
1
1. F(x)<
2
1
P X x
2
1
Max. x : P[ X x] Max{0,1} 1
2
1
F(x)
3
1
P[Xx]
3
1
Min. x : P[ X x] min.{1, 2} 1
3
f ( x)dx
f ( x)dx f ( x)dx f ( x)dx 1
0 4
4 4
K
f ( x)dx dx
0 0 x
16
4
x1 2 1
K
1 1 4K 1 K
4
2 0
1
if 0 x 4
f ( x) 4 x
0 else where
x x
(ii) Let x satisfy x 0, F ( x)
f ( x)dx odx 0
0 x
0<x<4, F(x)=
f ( x)dx f ( x)dx
0
x
1
= 0 dx
0 4 x
1 12
F ( x) x
2
x 4, F ( x) 1
Remark: At x=4, F(4)=1. F(x) continues to be one for all values of x larger than 4.
0 if x 0
1
1
F(x) = x 2 if 0 x 4
2
1 if x 4
(iii)
P X
1
P X
1
P X
1
2
2
2
Remark: If x is a point of continuity of f(x),
x
P[X=x]= f ( x)dx 0
x
1 1
Since x= is a point of continuity of f(x), P X 0
2 2
P X
1
2
P X
1
2
F 1
2
1
1 1 2 1
2 2 2 2
17
P X
1
1
2
2 2
1 1
P[ X 1] 1 P[ X 1] 1 F (1) 1
2 2
1
p[ X 1]
2
PROBLEM6.9.2: Find the distribution function F(x) of the random variable X whose
probability density function is given by,
x if 0 x 1
f ( x ) 2 x if 1 x 2
0 else where
Evaluate P[0.8<X<1.2], using F(x)
x
Solution: Let x 0, f ( x)dx 0 F ( x)
x 0 x x
Let 0 x 1, F ( x)
f ( x)dx f ( x)dx f ( x)dx f ( x)dx
0 0
x
x2
xdx
0
2
0 1 x
Let 1 x 2, F ( x)
f ( x)dx f ( x) dx f ( x)dx
0 1
1 x
0 xdx (2 x)dx
0 1
x2
F ( x) 2x 1
2
0 if x 0
2
x if 0 x 1
2
F ( x) 2
x 2x 1 if 1 x 2
2
1 if x 2
[0.8<X<1.2]=[X<1.2]-[X0.8]
P[0.8<X<1.2]=P[X<1.2] –P[X0.8]
18
=P[X=1.2]+P[X<1.2]-P[X0.8], since P[X = 1.2] = 0
=P[X1.2] – P[X0.8]
=F(1.2)-F(0.8)
(1.2) 2 (0.8) 2
2(1.2) 1 0.68 0.32
2 2
0.36
9 16
Solution: P[X5]=F(5)=1-
25 25
P[X>8]=1-P[X8]=1-F(8)
9 9
=1- 1 P[X>8] =
64 64
19
X y1 y2 … yj …. yn Total
…. …. p 1j p1.
x1 p11 p12 p1j p1n j
…. …. p 2j p2
x2 p21 p22 p2j p2n j
. . . . . . . .
. . . . . . . .
. . . . . . . .
…. …. p ij pi
xi pi1 pi2 pij pin j
. . . . . . . .
. . . . . . . .
. . . . . . . .
…. …. p mj pm
xm pm1 pm2 pmj pmn j
Thus, the pairs of values xi , P X xi give the Marginal probability Distribution
of X;
X x1 x2 ………………. xm
P(X = xi) p1 p2 ……………….. pm
20
The sum of probabilities of Y taking a particular value yj and X taking all possible
values, is called the Marginal Probability Function of Y, which is given by
P Y y j = P X x1 , Y y j P X x2 , Y y j ... P X xm , Y y j
= P1 j P2 j ...... Pmj Pij P. j
i
Thus, the pairs of values y j , P Y y j give the Marginal Probability Distribution
of Y
Y y1 y2 …………… Yn
P(Y = yi) p.1 p.2 …………… p.n
P X xi / Y y j =
P X xi , Y y j P ij
P Y y j P. j
P X xi , Y y j Pij
P Y y j / X xi
P X xi Pi .
Remarks:
1. i pi. p1. p2. ...... pm. 1
2. j p j p.1 p.2 ..... p.n 1
p p1 j p2 j ...... pmj p. j
3. i p.ijj p. j
p. j
1
21
Suppose (X, Y) be a two dimensional continuous random variable, then the
joint probability distribution function of (X, Y) is denoted by F(x, y) and is
defined as F ( x, y) P X x, Y y
x y
= f x, y dx dy
where f(x, y) 0 and f x, y dx dy 1
(a) FX ( x) P X x, Y F x,
x
= f x, y dy dx
FY ( y) P X , Y y F , y or
y
= f x, y dx dy
Remarks: Let X and Y be the jointly distributed discrete random variables, then the
Marginal probability distribution functions of X and Y are respectively given by,
a) FX ( x) P X x, Y y
y
b) FY ( y) P X x, Y y
x
22
6.15 Conditional probability distribution function:
x
= F ( y / x) f
2 X ( x) dx
dFX ( x)
where f X ( x) is the marginal p.d.f. of X.
dx
Similarly, we have
y y
F(x, y) = F x / y d F y F x / y f y dy
1 Y
1 Y
dFY ( y )
where fY ( y ) is the marginal p.d.f. of Y.
dy
Here, F(x/y) = P X x / Y y
F1 x / y , F2 y / x are respectively the conditional distribution function of X
and Y.
f x, y or F x, y f x, y dx dy
x y
then f(x, y) is called the joint probability density function of (X, Y). It should be
noted that f(x, y) > 0 and f x, y dx dy 1
23
6.17 Marginal probability density function:
d FY y
2. fY(y) =
dy
f x, y dx
24
Remark: Stochastic independence of random variables
F(x, y) = FX(x) . FY(y)
Problem 6.20.1: In the experiment of rolling two dice, two random variables X and Y
are
defined as follows:
X: Sum of the scores on the upper most faces of the dice
Y: Product of the scores on the upper most faces of the dice.
Find the probability that X=5 and Y=6
Problem 6.20.2: Given below is the joint probability distribution of two random variables
X and
Y:
X 1 2 3
Y
1 1/12 1/6 0
2 0 1/9
1/5
3 1/18 1/4
2/15
Derive the conditional distribution of Y given X=2.
25
These conditional probabilities define the conditional probability distribution of Y
given X=3.
Problem 6.20.3 : Let X1 and X2 be two random variables whose joint probability mass
function
is given by,
x x
P[X1=x1, X2=x2] = 1 2 ; x1=1, 2, 3; x2=1, 2
21
Derive the marginal probability distributions
Solution: P[X1=x1]= P [ X1 x1 , X 2 x2 ]
x2
x1 1 x1 2 2 x1 3
=
21 21 21
2x 3 2 1 3 5
P[ X1 x1 ] 1 ; P[ X1 1]
21 21 21
Marginal probability distribution of X1:
X1 1 2
3
P[X1=x1] 5/21 7/21
9/21
P[ X 2 x2 ] P[ X 1 x1 , X 2 x2 ]
x1 x2
x1 x1 21
1 x2 2 x2 3 x2
21 21 21
3 x2 6
=
21
9
P[ X 2 1]
21
2
Problem 6.20.4: X and Y are discrete random variables, for which, P[X=0, Y=0]= ;
9
P[X=0,
26
1 1 5
Y=1]= : P[X=1, Y=0]= ; P[X=1, Y=1]= . Examine whenever X and Y are
9 9 9
independent.
Solution:
P [X=0]= P[X=0, Y=0] + P [X=0, Y=1]
2 1 3
=
9 9 9
P [X=1]= P [X=1, Y=0] + P [X=1, Y=1]
1 5 6
=
9 9 9
2 1 3
P [Y=0] = P [X=0, Y=0] + P [X=1, Y=0] =
9 9 9
1 5 6
P [Y=1] = P[X=0, Y=1] + P[X=1, Y=1] =
9 9 9
3 3 1 2
P [X=0] P [Y=0] = = P [X=0, Y=0]
9 9 9 9
X and Y are not independent
Problem 6.20.5 : Two cards are randomly drawn (without replacement) from an
arbitrary deck
of 52 playing cards. X and Y are number of aces obtained in the first draw and
number of aces drawn in both draws. Find. (a). the joint probability distribution of
X and Y; (b) the marginal distribution of X; (c) The conditional distribution of Y
given X=1
27
P [X = 0, Y = 3] = P [X = 0, Y = 4] = 0
P [X = 1, Y = 0] = 0
4
C1 48C1 C0 47C2
3
P [X = 1, Y = 1] = 52
50
C2 C2
C1 C1 C1 C1
4 48 3 47
P [X = 1, Y = 2] = 52
50
C2 C2
C1 C1 C 2 C0
4 48 3 47
P [X = 1, Y = 3] = 52
52
C2 C2
P [X = 1, Y = 4] = 0
P [X = 2, Y = 0] = 0
P [X = 2, Y = 1] = 0
4
C2 48 C0 2 C0 48 C1
P [X = 2, Y = 2] = 52
50
C2 C2
4
C2 48C0 2
C1 48C1
P [X = 2, Y = 3] = 52
50
C2 C2
C2 48C0
4 2
C2 48C0
P [X = 2, Y = 4] = 52
52
C2 C2
4
C0 48C2
P [X=0]= 52
C2
4
C1 48C1
P [X=1]= 52
C2
4
C2 48C0
P [X=2]= 52
C2
(c) The conditional distribution of Y given X = 1:
P [ X 1, Y 0] 0
P [Y = 0 / X = 1] = 0
P [ X 1] P[ X 1]
28
P[ X 1, Y 1]
P [Y=1/X=1] =
P [ X 1]
4
C1 48 C1 C0 47C2
3 4
C1 48C1 C0 47C2
3
52
50 52
= 50
C2 C2 C2 C2
P [ X 1, Y 2] C1 47C1
3
P [Y = 2 / X = 1] =
P [ X 1] 50
C2
P [ X 1, Y 2] C0 47C0
8
P [Y = 3 / X = 1] =
P [ X 1] 50
C2
P [X = 4 / X = 1] = 0
Problem 6.20.6 : X and Y are two random variables whose joint probability distribution
is given
by
X 1 2 3
Y
1 0.1 0.1 0.2
X 1 2 3
P X x Y 2 2 3 1
6 6 6
(b) X Y 4 X 1, Y 1 X 1, Y 2 X 2, Y 1
P X Y 4 P X 1, Y 1 P X 1, Y 2 P X 2, Y 1
=0.1+0.2+0.1=0.4
29
P X Y 4 0.4
Problem 6.20.7 : Two unbiased dice are rolled. X and Y represent the scores on first
and second
dice respectively, find the probabilities given below:
(a) P X Y 6 (b) P X Y 10
(c) P X Y (d) P X Y 6 Y 4
Solution:
a X Y 6 X 1, Y 5 X 2, Y 4 X 3, Y 3 X 4, Y 2 X 5, Y 1
5
P X Y 6
36
b X Y 10 X Y 10 X Y 11 X Y 12
X 4, Y 6 X 5, Y 5 X 6, Y 4 X 5, Y 6 X 6, Y 5 X 6, Y 6
6 1
P X Y 10
36 6
(c) X Y X 1, Y 1 X 2, Y 2 ........ X 6, Y 6
6 1
P X Y
36 6
(d) X Y 6 Y 4 X 2, Y 4
1
P X Y 6 Y 4 P X 2, Y 4
36
Problem 6.20.8 : The joint probability mass function of two random variables X and Y
is
specified as follows:
1
P X x, Y y 2 x y , x 0,1, 2; y 0,1, 2.
27
Find the conditional distribution Y for given X.
Solution :
Y
0 1 2 P[X=x]
X
1 2 3
0 0
27 27 27
30
1 2 3 4 9
27 27 27 27
2 4 5 6 15
27 27 27 27
1
f x, y
2 x y , x 0,1, 2; y 0,1, 2
27
Marginal distribution of X:
3 9 15
P X 0 ; P X 1 ; P X 2 ;
27 27 27
Conditional probability P Y y / X 0 ;
P X 0, Y 0
P Y 0 / X 0 0
P X 0
1/ 27 1
P Y 1 X 0
3/ 27 3
2 / 27 2
P Y 2 X 0
3/ 27 3
Conditional probabilities : P Y y X 1
2 / 27 2
P Y 0 X 1
9 / 27 9
3/ 27 3
P Y 1 X 1
9 / 27 9
4 / 27 4
P Y 2 X 1
9 / 27 9
Conditional Probabilities : P Y y X 2
4 / 27 4
P Y 0 X 2
15 / 27 15
5 / 27 5
P Y 1 X 2
15 / 27 15
6 / 27 6
P Y 2 X 2
15 / 27 15
Conditional distribution of Y for X x :
31
X
0 1 2
Y
0 0 1/3 2/3
1 2/9 3/9 4/9
2 4/15 5/15 6/15
Problem 6.20.9: X and Y are two random variables whose joint probability density
function is
given by,
x y if 0<x<1, 0<y<1
f x, y
0 otherwise
Find (a) the joint distribution function (b) marginal density functions and (c)
conditional density functions
x y x
y
F x, y u v du dv u v dv du
0 0 0 0
y
x
v2
x
y2
uv du uy du
0
2 0 0
2
32
x
u 2 y y 2u x 2 y xy 2 xy
x y
2 2 0 2 2 2
xy
F x, y x y , 0 x 1, 0 y 1
2
x 1, 0 y 1
x y 1
y
x y
F x, y u v du dv u v dv du u v dv du
0 0 0 0 1 0
1
y2
uy du 0
0
2
1
1
y2 u 2 y uy 2 y y2 y
F x, y uy du 1 y
0
2 2 2 0 2 2 2
y
F x, y
1 y , x 1, 0 y 1
2
Let (x, y) belong to region – III
x 1, y 1
x y
1 1 y
x 1 y
F x, y u v du dv u v dv u v dv du u v dv u v dv du
0 0 0 0 1 1 0 1
1 1
u v dv du 0 0
0 0
1 1
1
u2
1
1 u2 1 1 1
uv du u du 1
0
0
2 0 2 2 2 0 2 2
33
0 x 1, y 1
x 1
F x, y u v dv du
0 0
1
x
v2
uv du
0
2 0
x
1
x
u2 u x2 x
u du
0
2 2 2 0 2 2
x
F x, y 1 x , if 0 x 1, y 1
2
0 if x 0 or y 0
xy
x y if 0 x 1, 0 y 1
2
y
F x, y 1 y if x 1, 0 y 1
2
1 if x 1, y 1
x
1 x if 0 x 1, y 1
2
1
1
y2 1
f1 x x y dy xy 0 x
1
0 2 0 2
1
f1 x x if 0 x 1
2
1
1
x2 1
f 2 y x y dx xy 0 y
1
0 2 0 2
34
1
f2 y y if 0 y 1
2
f x, y x y
g1 x / y
f1 y y ½
2 x y
if 0 x 1
g1 x / y 2 y 1
0
otherwise
f x, y x y
g2 y / x
f2 x x
1
2
2 x y
if 0 y 1
g2 y / x 2 x 1
0
otherwise
Problem 6.20.10: The joint probability density function of two random variables X and Y
is
given by,
8 xy, 0 x y 1
F x, y
0 otherwise
1 1
Find (a) P X Y ,(b) marginal and conditional distributions
2 4
35
(a) The dotted area is the region of integration.
1 1
P X Y is the integral value of the joint probability
2 4
density function evaluated over OAB .
The horizontal grid in OAB gives the interval of integration for x as
1
0 x y, 0 y
4
1 1
1/ 4
y
P X Y
2 4 8 xy dx dy
0 0
1/ 4
y
8 y x dx dy
0 0
1/ 4
y2
0 2 dy
8 y
1/ 4
1/ 4
y4
4 y dy 4
3
0 4 0
1
256
1 1 1
P X Y
2 4 256
36
The perpendicular grid explains the variation of Y.
x y 1
The joint density, if integrated w.r.t. y over this range, the marginal density
of X is obtained.
1
1 1
y 2 8x
f1 ( x) 8 xy dy 8 x y dy 8 x (1 x 2 )
x x 2 x 2
f1 x 4 x 1 x 2 , 0 x 1
Marginal density of Y:
f 2 ( y ) 8 xy dx 8 y x dx 8 y
0 0 2 0
=4y3
f 2 ( y) 4 y 3 , o y 1
(c) Conditional density of X given Y:
f ( x, y ) 8 xy 2 x
g1 x / y 2
f 2 ( y) 4 y3 y
2x
g1 x / y ; 0 x y, 0 y 1
y2
Conditional density of Y given X:
37
f ( x, y) 8 xy 2y
g2 y / x
f1 ( x) 4 x(1 x ) 1 x 2
2
2y
g2 y / x ; x y 1, 0 x 1
1 x2
2 if x y 1, x 0 and y 0
f x, y
0 otherwise
Find the conditional distribution of Y, given X=x.
Solution:
2 if ( x, y) { x, y : x 0, y 0, x y 1
F x, y
0 otherwise
Vertical variation:
0 y 1 x
1 x
Density of X: f1 ( x) 2dy 2(1 x)
0
2(1 x), if 0 x 1
f1 ( x)
0
Conditional density of y given x:
f ( x, y) 2 1
g y / x
f1 ( x) 2(1 x) 1 x
1
g y / x ;0 y 1 x , 0 x 1
1 x
38
Problem 6.20.12: The joint probability density function of X and Y is given by,
6(1 x y) if x 0, y 0, x y 1
f x, y
0 otherwise
Examine if X and Y are independently distributed.
f1 ( x) 3(1 x)2 , 0 x 1
Marginal density function of Y:
f 2 ( y) 3(1 y)2
Product of marginal densities: f1 ( x) f 2 ( y) 9 1 x 1 y
2 2
f ( x, y)
X and Y are not independently distributed.
Problem 6.20.13: The following expression stands for a joint probability density
function:
k x x y ,if 0 x 1, x y x
f x, y find the value of k.
0 otherwise
1 x
Solution: kx x y dx dy 1
0 x
1
x
k x( x y )dy dx 1
0 x
1
k 2 x3dx 1
0
k
1 k 2
2
2 x( x y) if 0 x 1, x y x
f x, y
0 otherwise
39
Problem 6.20.14 : Given below is the distribution function of the random variables X
and Y:
1 e x e y e x y , x 0, y 0
F x, y
0 , otherwise
Find P(X+Y>3)
2 F ( x, y )
Solution: e x y
xy
e x y , x 0, y 0
f x, y
0 , otherwise
To find the required probability we use the change of variable technique
Let x y v
y u
x u v x v u
Since x>0, v>u
u v
If x and y are replaced by u and v we obtain,
G(u, v) ev J
Usually when a transformation of variables takes place, to bring equality between
integrals of the two functions, the transformed function should be multiplied by ,
|J|,called the modulus of Jacobian transformation.
If two variables are involved
x x
u v
J
y y
u v
In the present case, we have,
x v u
y u
x x y y
1; 1; 1; 0
u v u v
1 1
J 1
1 0
|J| = 1
G u, v e v
40
e v , 0 u v, 0 v
G u, v
0 , otherwise
Let f2(v) be the marginal density of v.
v u
f 2 v e v du e v du ve v
0 0
v e v , v 0
f2 v
0 , otherwise
The desired probability is P X Y 3
P X Y 3 P V 3 v e v dv
3
v e v e v dv
3
3
3e e 4e3 0.1991
3 3
P X Y 3 0.1991 .
41
x
x
x
2 x
P X x x
2
1
P Y 2 y y 2
Consider the event, X 2 x, Y 2 y x X x , y Y y
x y 1
P X 2 x, Y 2 y 4
1 xy dy dx x y
x y
42