


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!



UCSD ECE 153 Handout # Prof. Young-Han Kim Wednesday, October 29, 2008
Solutions to Old Midterm Exam II
P{Y > y} = P{X 1 > y, X 2 > y} = P{X 1 > y}P{X 2 > y} = e−λ^1 y^ × e−λ^2 y = e−(λ^1 +λ^2 )y
for y ≥ 0, Y is an exponential random variable with pdf
fY (y) =
(λ 1 + λ 2 )e−(λ^1 +λ^2 )y, y ≥ 0 , 0 , otherwise.
P{N 1 (t) = n} =
(λ 1 t)n n!
e−λ^1 t^ for n = 0, 1 , 2 ,...
P{N 2 (t) = k} =
(λ 2 t)k k!
e−λ^2 t^ for k = 0, 1 , 2 ,....
Let N (t) = N 1 (t) + N 2 (t) be the total number of packets arriving at the router during time (0, t].
(a) Find the mean E(N (t)) and variance Var(N (t)) of the total number of packet arrivals.
(b) Find the pmf of N (t). (c) Let the random variable Y be the time to receive the first packet of either type. Find the pdf of Y. (d) What is the probability that the first received packet is wireless?
Solution:
(a) Since N 1 and N 2 are independent,
EN = EN 1 + EN 2 = λ 1 t + λ 2 t = (λ 1 + λ 2 )t.
and Var(N ) = Var(N 1 ) + Var(N 2 ) = (λ 1 + λ 2 )t.
(b) In fact, as discussed in class, N (t) is Poisson itself. To see this,
P{N = n} =
∑^ n
k=
P{N 1 = k}P{N 2 = n − k}
∑^ n
k=
(λ 1 t)k k!
e−λ^1 t^
(λ 2 t)n−k (n − k)!
e−λ^2 t
∑^ n
k=
n k
(λ 1 t)k(λ 2 t)n−k^
e−(λ^1 +λ^2 )t n!
=
((λ 1 + λ 2 )t)n n!
e−(λ^1 +λ^2 )t
for n = 0, 1 , 2 ,.... (c) Since N (t) is Poisson with parameter (λ 1 + λ 2 )t, the time to the first packet is exponential with parameter λ 1 + λ 2 (cf. Question 2 in Homework Set #3); also recall Question 8 in Homework Set #2. Therefore,
fY (y) =
(λ 1 + λ 2 )e−(λ^1 +λ^2 )y, y ≥ 0 , 0 , otherwise.
Alternatively, we can let X 1 and X 2 denote the times until first packets of each type and see that Y = min(X 1 , X 2 ). Now we can use the result in Question 1 of this exam. (d) If we let X 1 and X 2 denote the times until first packets of each type, the probability that the first packet is wireless is simply P{X 2 < X 1 } = (^) λ 1 λ+^2 λ 2. (Recall Question 4 in Homework Set #3.)
(c) Since both modes are equally likely, the optimal MAP decoding rule reduces to the ML rule, in which
d(y) =
0 , if fY |M (y|0) > fY |M (y|1), 1 , otherwise
0 , if − 1 < y < 1 , 1 , otherwise.
1 4 fY |M (y|1)
− 2 − 1 1 2 y
d(y) = 0 d(y) = 1 d(y) = 1
1 fY |M (y|0) 2
(d) The probability of error is given by
P{M 6 = d(Y )} = P{M = 1, − 1 < Y < 1 } = P{M = 1}P{− 1 < Y < 1 |M = 1}
=