
University
Solutions: Problem Set 12
ECE 313
of Illinois Fall 1998
1. The joint pmf of
X
and
Y
is
p
X;Y
(
i; j
)=
2
,
(
i
,
1)
3
,
j
; i
=1
;
2
;:::
;
j
=1
;
2
;:::
0
;
otherwise
(a) Marginal for
X
:
p
X
(
i
)=
1
X
j
=1
2
,
(
i
,
1)
3
,
j
=2
,
(
i
,
1)
1
=
3
1
,
1
=
3
=2
,
i
=
1
2
2
,
(
i
,
1)
for
i
=1
;
2
;:::
.
Marginal for
Y
:
p
Y
(
j
)=
1
X
i
=1
2
,
(
i
,
1)
3
,
j
=2
3
,
j
1
=
2
1
,
1
=
2
=2
3
,
j
=
2
3
3
,
(
j
,
1)
, for
j
=1
;
2
;:::
.
Thus we see that
X
and
Y
are both geometric RVs, with parameters 1
=
2 and 1
=
3 respectively.
Furthermore, we see that
p
X;Y
(
i; j
)=2
,
(
i
,
1)
3
,
j
=(1
=
2) 2
,
(
i
,
1)
(2
=
3) 3
,
(
j
,
1)
=
p
X
(
i
)
p
Y
(
j
).
Hence
X
and
Y
are independent.
(b) The conditional pmf of
X
given that
Y
=
k
is
p
X
j
Y
(
i
j
j
=
k
)=
p
X;Y
(
i; k
)
p
Y
(
k
)
.Thus,
p
X
j
Y
(
i
j
j
=
k
)=
2
,
(
i
,
1)
3
,
k
2
3
,
k
=2
,
i
=
p
X
(
i
)
;
for
i
=1
;
2
;:::
(c) Since
p
X
j
Y
(
i
j
j
=
k
)=
p
X
(
i
), we know that
X
and
Y
are independent, whichwe determined in
part (a) also.
2. The RVs
X
1
;
X
2
and
X
3
are independent and identically distributed with pmf
p
X
i
(0) = 1
,
p; p
X
i
(1) =
p
.
(a)
Y
=
X
1
+
X
2
+
X
3
.Ifwe let
Z
=
X
1
+
X
2
, then we know from class that
p
Z
(
u
)=
p
X
1
(
u
)
p
X
2
(
u
),
where `
0
denotes convolution. Therefore
p
Y
(
u
)=
p
Z
(
u
)
p
X
3
(
u
)=
p
X
1
(
u
)
p
X
2
(
u
)
p
X
3
(
u
),
i.e., it is the convolution of all three pmfs. The pmfs of
Z
and
Y
are shown in Figure 1 below.
0 1 2
u
0 1 2 3
u
0 1
u
p
PMFs
Z
=
X
1
+
X
2
X
1
(1
,
p
)
Y
=
X
1
+
X
2
+
X
3
Figure 1: PMFs of
X
1
;
Z
=
X
1
+
X
2
;
Y
=
X
1
+
X
2
+
X
3
.
p
Z
(0) = (1
,
p
)
2
;p
Z
(1) = 2
p
(1
,
p
)=
2
1
p
(1
,
p
)
;p
Z
(2) =
p
2
p
Y
(0) = (1
,
p
)
3
;p
Z
(1) =
3
1
p
(1
,
p
)
2
;p
Z
(2) =
3
2
p
2
(1
,
p
)
;p
Z
(3) =
p
3
Thus we see that
Z
and
Y
are binomial RVs with parameters (2
;p
) and (3
;p
) respectively.
(b) If wehave
Y
=
X
1
+
+
X
n
, where the
X
i
's are independent and identically distributed (iid)
Bernoullis(
p
), then their sum is a binomial RV with parameters (
n; p
).
1