Docsity

Solutions to Old Midterm - Probability and Random Process Engineering | ECE 153, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
UCSD ECE 153 Handout #15
Prof. Young-Han Kim Wednesday, October 29, 2008
Solutions to Old Midterm Exam II
1. First available teller (20 points). Consider a bank with two tellers. The service times for
the tellers are independent exponentially distributed random variables X1∼Exp(λ1)
and X2∼Exp(λ2), respectively. You arrive at the bank and find that both tellers are
busy but that nobody else is waiting to be served. You are served by the first available
teller once he/she becomes free. Let the random variable Ydenote your waiting time.
Find the pdf of Y.
Solution: This problem is very similar to Question 4 in Homework Set #4. First
observe that Y= min(X1, X2). Since
P{Y > y}= P{X1> y, X2> y}
= P{X1> y}P{X2> y}
=e−λ1y×e−λ2y
=e−(λ1+λ2)y
for y≥0, Yis an exponential random variable with pdf
fY(y) = ((λ1+λ2)e−(λ1+λ2)y, y ≥0,
0,otherwise.
2. Sum of packet arrivals (40 points). Consider a network router with two types of
incoming packets, wireline and wireless. Let the random variable N1(t) denote the
number of wireline packets arriving during time (0, t] and let the random variable
N2(t) denote the number of wireless packets arriving during time (0, t]. Suppose N1(t)
and N2(t) are independent Poisson with pmfs
P{N1(t) = n}=(λ1t)n
n!e−λ1tfor n= 0,1,2, . . .
P{N2(t) = k}=(λ2t)k
k!e−λ2tfor k= 0,1,2, . . . .
Let N(t) = N1(t) + N2(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.
1
pf3
pf4

Partial preview of the text

Download Solutions to Old Midterm - Probability and Random Process Engineering | ECE 153 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

UCSD ECE 153 Handout # Prof. Young-Han Kim Wednesday, October 29, 2008

Solutions to Old Midterm Exam II

  1. First available teller (20 points). Consider a bank with two tellers. The service times for the tellers are independent exponentially distributed random variables X 1 ∼ Exp(λ 1 ) and X 2 ∼ Exp(λ 2 ), respectively. You arrive at the bank and find that both tellers are busy but that nobody else is waiting to be served. You are served by the first available teller once he/she becomes free. Let the random variable Y denote your waiting time. Find the pdf of Y. Solution: This problem is very similar to Question 4 in Homework Set #4. First observe that Y = min(X 1 , X 2 ). Since

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.

  1. Sum of packet arrivals (40 points). Consider a network router with two types of incoming packets, wireline and wireless. Let the random variable N 1 (t) denote the number of wireline packets arriving during time (0, t] and let the random variable N 2 (t) denote the number of wireless packets arriving during time (0, t]. Suppose N 1 (t) and N 2 (t) are independent Poisson with pmfs

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}

=