Docsity

Probability Distributions and Joint Probability Mass Functions of Random Variables, Assignments of Statistics

Toggle sidebar
bg1
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
pf3
pf4
pf5

Partial preview of the text

Download Probability Distributions and Joint Probability Mass Functions of Random Variables and more Assignments Statistics in PDF only on Docsity!

University Solutions: Problem Set 12 ECE 313

of Illinois Fall 1998

  1. The joint pmf of X and Y is

pX ;Y (i; j ) =

2 (i1)^3 j^ ; i = 1 ; 2 ; : : : ; j = 1 ; 2 ; : : : 0 ; otherwise

(a) Marginal for X: pX (i) =

X^1

j =

2 (i1)^3 j^ = 2 (i1)^1 ^1 = 13 = 3 = 2 i^ = 12 2 (i1)^ for i = 1 ; 2 ; : : :.

Marginal for Y : pY (j ) =

X^1

i=

2 (i1)^3 j^ = 2  3 j^

1 1 = 2 =^2 ^3

j (^) = 2 3 3

(j 1) (^) , for j = 1 ; 2 ; : : :.

Thus we see that X and Y are b oth geometric RVs, with parameters 1 = 2 and 1 = 3 resp ectively. Furthermore, we see that pX ;Y (i; j ) = 2 (i1)^3 j^ = (1=2) 2 (i1)^  (2=3) 3 (j^ 1)^ = pX (i)  pY (j ). Hence X and Y are indep endent.

(b) The conditional pmf of X given that Y = k is pX jY (i j j = k ) =

pX ;Y (i; k ) pY (k ).^ Thus,

pX jY (i j j = k ) = 2

(i1) 3 k 2  3 k^ =^2

i (^) = pX (i); fori = 1 ; 2 ; : : :

(c) Since pX jY (i j j = k ) = pX (i), we know that X and Y are indep endent, which we determined in part (a) also.

  1. The RVs X 1 ; X 2 and X 3 are indep endent and identically distributed with pmf pXi (0) = 1 p; pXi (1) = p.

(a) Y = X 1 + X 2 + X 3. If we let Z = X 1 + X 2 , then we know from class that pZ (u) = pX 1 (u) pX 2 (u), where ` 0 denotes convolution. Therefore pY (u) = pZ (u) pX 3 (u) = pX 1 (u) pX 2 (u) pX 3 (u), i.e., it is the convolution of all three pmfs. The pmfs of Z and Y are shown in Figure 1 b elow.

0 1 u 0 1 2 u 0 1 2 3 u

p

PMFs

(1 p) X^1 Z^ =^ X^1 +^ X^2 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.

pZ (0) = (1 p)^2 ; pZ (1) = 2 p(1 p) =

p(1 p); pZ (2) = p^2

pY (0) = (1 p)^3 ; pZ (1) =

p(1 p)^2 ; pZ (2) =

p^2 (1 p); pZ (3) = p^3

Thus we see that Z and Y are binomial RVs with parameters (2; p) and (3; p) resp ectively. (b) If we have Y = X 1 +    + Xn , where the Xi 's are indep endent and identically distributed (iid) Bernoullis(p), then their sum is a binomial RV with parameters (n; p).

(c) If X  Binomial (n; p) and Y  Binomial (m; p), then Z = X + Y can b e equivalently thought of as the sum of m + n indep endent Bernoullis RVs, each with parameter p. From the ab ove two parts, we see then that the pmf of Z is binomial with parameter (m + n; p).

  1. X; Y  exp onential () and are indep endent. Therefore fX (u) = eu^ ; u  0 and fY (u) = eu^ ; u  0.

(a) The random variable A = minfX; Y g.

FA (u) = P fmin fX; Y g  ug = 1 P fmin fX; Y g > ug =^ a 1 P fX > u; Y > ug =b 1 P fX > ug P fY > ug = 1 ( 1 FX (u)) (1 FY (u)) =^ c 1 e^2 u^ ; for u  0

Equality \a" follows from the fact that if min fX ; Y g > u then b oth X and Y have to b e bigger than u. Equality \b" follows from the indep endence of X and Y ; equality \c" follows b ecause FX (u) = FY (u) = 1 eu^ for u  0. Therefore, the p df of A is got by di erentiating FA (u) w.r.t u.

fA (u) = d du

(1 e^2 u^ ) =

2  e^2 u^ ; u  0 0 ; otherwise

(b) The random variable B = maxfX; Y g.

FB (u) = P fmaxfX; Y g  ug =a P fX  u; Y  ug =^ b P fX  ug P fY  ug = F X (u)FY (u) =^ c (1 eu^ )^2 ; for u  0

Equality \a" follows from the fact that if maxfX ; Y g  u then b oth X and Y have to b e smaller than u. Equality \b" follows from the indep endence of X and Y ; equality \c" follows b ecause FX (u) = FY (u) = 1 eu^ for u  0. Therefore, the p df of B is got by di erentiating FB (u) w.r.t u.

fB (u) = d du

(1 eu^ )^2 =

2  eu^ (1 eu^ ); u  0 0 ; otherwise

(c) To evaluate the p df of Z = A + B, we rst note that A and B are not indep endent, and so a simple convolution of their individual densities is not enough! To see that they are not indep endent, if A = X, then B = Y , and vice-versa. So we rst evaluate their joint CDF FA;B (u; v ) in terms of FX ;Y (u; v ). Now, FA;B (u; v ) = P fA  u; B  v g. If u  v then this probability is just equal to P fB  v g! This is b ecause if maxfX; Y g  v , this automatically implies that minfX; Y g  maxfX; Y g  v  u, so P fA  ug = 1. Therefore FA;B (u; v ) = FB (v ); u  v. Now all we need to do is evaluate the joint CDF for the region u < v. For u < v , the event fminfX; Y g  u; maxfX; Y g  v g can o ccur in three ways as shown in the Figure 3 b elow

Z = 2

u=

(e^2 u^ e^ )du

= 1 e^  e^ ;  0

Di erentiating with resp ect to , we get fZ ( ) = ^2 e^ ;  0. We can easily evaluate the p df of X + Y since X and Y are indep endent, as the convolution of their two densities. We get fX +Y ( ) = ^2 e^ ;  0, which is equal to fZ ( )! Is this hard to b elieve? | it shouldn't b e, since min fX; Y g + maxfX; Y g = X + Y (verify this), and hence their p dfs have to b e equal!

  1. Let us denote by C and S the random variables corresp onding to Calvin's and Susie's times of arrival resp ectively. If we x no on to b e our reference p oint, then C  U [ 5 ; 15] and S  U [ 15 ; 15]. Since C and S are indep endent RVs, the joint p df fC;S (u; v ) =

600 ;^ ^5 ^ u^ ^15 ;^ ^15 ^ v^ ^ 15,^ and^0 elsewhere, as shown in Figure 4(a) b elow.

(b)

u

v

15

5

15

15

v = u

v = u + 10

(a)

u

v

15

15

15

5

v = u

(a) Now the probability that Calvin arrives at \Dead Man's Perch" b efore Susie do es is P fC < Sg, which is the area of the triangle in Figure 4(a) multipled by the value of the uniform joint p df, which is 1 600

(b) Now if Calvin do esn't wait for more than 10 minutes after getting there, the probability that he gets to let lo ose with his b est slushball ever is got from Figure 4(b) as

P fC < S < C + 10 g = 1 600

10 ^10

  1. The joint p df of X and Y is 1 = 2 on the rhombus as shown in Figure 5(a).

(a) Right o the bat we can tell that X and Y are not indep endent since the fo otprint of their joint

f (^) X,Y(u,v)

f (^) X,Y(u,v)

u

1

f(u)

-1 0 1

u

v f (^) X,Y(u,v)

(1,0)

(0,1)

(0,-1)

(-1,0)

u

(1,0)

(0,1)

(0,-1)

u

f (^) X,Y(u,v)

(1,0)

(0,1)

(0,-1)

u

f (^) X,Y(u,v)

(1,0)

(0,1)

(0,-1)

u

(1,0)

(0,1)

(0,-1)

(-1,0) (-1,0)

(-1,0) (-1,0)

u = cv

u = cv c < 0

c > 0

uv > bb> 0

(c) (d)

(b)

u+v = α

u+v <a

v

v v

v

(a)

p df is not rectangular. The marginal for X is given by

fX (u) = 0 ; u  1 ; u > 1

=

Z 1+u

v = 1 u

1 = 2 dv = 1 + u; 1 < u  0

Z 1 u

v =u 1

1 = 2 dv = 1 u; 0 < u  1

This density is graphed in Figure 5(a). Since the joint p df is symmetric in u and v , it follows that the marginal density for Y is exactly the same.

(b) E [X] = 0 since the p df is an even function.

Var[X] = E [X^2 ] =

Z 0

1

u^2 (1 + u) du +

Z 1

0

u^2 (1 u) du = 1 6

(c) The p df of A = X + Y is b est calculated through a diagram. p df of A = X + Y: Rememb er that X and Y are not indep endent and so you cannot use the convolution formula! But calculating fA (a) is actually much easier than carrying out a convolution, as can b e seen from Figure 5(b):

FA (a) = P fA  ag =

0 ; a < 1 1 + a 2

; 1  a < 1 1 ; a  1

(^0) −1 1

1

u −−>

CDF of A=X+Y

(^0) −1 1

u −−>

pdf of A=X+Y

(a)

(^00)

1

u −−>

CDF of C=X/Y

(^00)

u −−>

pdf of C=X/Y

(b)

p oints X 1 ; X 2 ; X 3 have to b e  u. Therefore

FN 2 (u) = P fat least two of X 1 ; X 2 ; X 3  ug = 1 P fnone or exactly one p oint is  ug = 1

P fno p oint is  ug + P fexactly one p oint is  ug

(1 FX (u))^3 + 3 FX (u)(1 FX (u))^2

= 3 F (^) X^2 (u)

1 FX (u)

  • F (^) X^3 (u) = 0 ; u < 0; 3 u^2 2 u^3 ; 0  u < 1; 1 ; u  1

Therefore, the p df of the middle p oint is

fN 2 (u) =

0 ; u < 0 6 u 6 u^2 ; 0  u < 1 1 ; u  1

(b) Let Y = 1 N 3. We need to nd the p df of Y.

FY (u) = P f 1 N 3  ug = P fN 3  1 ug = 1 FN 3 (1 u) = 1 (1 u)^3 ; 0  u < 1

But this is just the distribution of the minimum of the three p oints, N 1! This shouldn't surprise you: if we were to ip the interval around, the maximum would b ecome the minimum and vice- versa. Therefore, the distribution of the distance b etween N 3 and 1 should b e the same as the distribution of the distance b etween 0 and N 1 , which is nothing but the distribution of N 1 itself. Therefore the p df of Y is just the p df of N 1 , which is given ab ove.