article15
article15
0/ 21
Today we start Chapter 5. The transition we are making is like going from one
variable calculus to vector calculus. We should really think of vectors (X , Y ) of
random variables.
So suppose X and Y are discrete random variables defined on the same sample
space S.
Definition
The joint probability mass function, joint pmf , PX ,Y (x , y ), is defined by
and
1/ 21
PX ,Y (x , y ) = P (X = x , Y = y )
= P ((X = x ) ∩ (Y = y ))
= P (X = x )P (Y = y |X = x )
2/ 21
First column (y = 0)
Let’s compute (upper left, x = 0)
(because )
3/ 21
1
P (X = 1, Y = 1) = P (HTT ) =
8
Third column (y = 2)
1
P (X = 0, Y = 2) = P (THH ) =
8
P (X = 1, Y = 2) = P (HTH ) + P (HHT )
2
=
8
Fourth column (y = 3)
P (X = 0, Y = 3) = 0
1
P (X = 1, Y = 3) = P (HHH ) =
8
4/ 21
5/ 21
P (Y = 1) = P (X = 0, Y = 1) + P (X = 1, Y = 1)
2 1 3
= + =
8 8 8
= the sum of the entries in the second column (i.e. the column corresponding to
y = 1)
(X = 1) = (X = 1, Y = 0) ∪ (X = 1, Y = 1) ∪ (X = 1, Y = 2) ∪ (X = 1, Y = 3)
1 2 1 1
=0+ + + =
8 8 8 2
= the sum of the entries in the second row (corresponding to X = 1)
6/ 21
Marginal Distributions
We can express the above nicely by expanding the table (*) “adding margins”.
7/ 21
8/ 21
X
1
0 ... 2
1
1 2
y 0 1 2 3
..
.
1 3 3 1
8 8 8 8
So we have
x 0 1 y 0 1 2 3
1 1 and 1 3 3 1
P (X = x ) P (Y = y )
2 2 8 8 8 8
! !
1 1
X ∼ Bin 1, Y ∼ Bin 3,
2 2
9/ 21
So you “sum away” one variable leaving a function of the remaining variable.
10/ 21
Examples
We will start with the pair (X , Y ) from our basic example.
The key point is that a function of a pair of random variables
is again a random variable.
11/ 21
(i) h (x , y ) = x + y so W = X + Y
We see that the possible values of the sum are 0, 1, 2, 3, 4 (since they are the
sums of the possible values of X and Y ).
We need to compute their probabilities. How do you compute
P (W = 0) = P (X + Y = 0)?
Answer
Find all the pairs x and y that add up to zero, take the probability of each such
pair and add the resulting probabilities.
12/ 21
P (W = 1) = P (X + Y = 1)
= P (X = 0, Y = 1) + P (X = 1, Y = 0)
2 2
= +0=
8 8
P (W = Z ) = P (X = 0, Y = Z ) + P (X = 1, Y = 1)
2
=
8
13/ 21
W 0 1 2 3 4
1 2 2 2 1
(b)
P (W = w ) 8 8 8 8 8
Remark
Technically the rule given in the “Answer” above is the definition of W = X + Y
as a random variable but as usual the definition is forced on us.
(ii) h (X , y ) = xy so W = XY
The possible values of W (the products of values of X with those of Y ) are
0, 1, 2, 3.
14/ 21
P(W=0)
We can get 0 as a product xy if either x = 0 or y = 0 so we have
P (W = 0) = P (XY = 0)
= P (X = 0, Y = 0) + P (X = 0, Y = 1) + P (X = 0, Y = 2)
+ P (X = 0, Y = 3) + P (X = 1, Y = 0)
1 2 1 1
= + + +0+0=
8 8 8 2
P(W=1)
1
P (W = 1) = P (X = 1, Y = 1) =
8
15/ 21
2
P (W = 2) = P (X = 1, Y = 2) =
8
P (W = 3)
1
P (W = 3) = P (X = 1, Y = 3) =
8
W 0 1 2 3
1 1 2 1
P (W = w ) 2 8 8 8
Remark
The max function doesn’t turn up in vector calculus but it turns up a lot in
statistics in advanced mathematics and real life.
16/ 21
P (W = 0)
P (W = 0) = P (Max(X , Y ) = 0)
1
= P (X = 0, Y = 0) =
8
P (W = 1)
P (W = 1) = P (Max(X , Y ) = 1)
= P (X = 0, Y = 1) + P (X = 1, Y = 0)
3
P (X = 1, Y = 1) =
8
P (W = 2)
P (W = 1) = P (X = 0, Y = 2) + P (X = 1, Y = 2)
3
=
8
17/ 21
W 0 1 2 3
1 3 3 1
P (W = w ) 8 8 8 8
18/ 21
Proposition
X
E (W ) = h (x , y )PX ,Y (x , y ) (])
all (x ,y )
possible
values of
(X ,Y )
In two ways?
19/ 21
20/ 21
21/ 21