Docsity

Final Exam Solutions - Probabilistic Methods in Computer Engineering | ECE 30200, Exams of Electrical and Electronics Engineering

Toggle sidebar
bg1
NAME:__________________________________
ECE 302 Division 1 MWF 10:30-11:20 (Prof. Pollak)
Final Exam Solutions, 5/3/2004.
Please read the instructions carefully before proceeding.
•If you are not in Prof. Pollak’s section, you may not take this
exam.
•No questions will be answered during the exam. If you think you found
a mistake in a problem statement, write so in your solution and explain your reasoning.
•This is a closed-book exam. A formula sheet is provided. No calculators are allowed.
•You have two hours to complete FIVE problems.
•Be sure to fully and clearly explain all your answers.
•There will not be any discussion of grades. All re-grade requests must be submitted in writing.
Problem Points Score
160
235
320
420
515
TOTAL 150
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Final Exam Solutions - Probabilistic Methods in Computer Engineering | ECE 30200 and more Exams Electrical and Electronics Engineering in PDF only on Docsity!

NAME:__________________________________

ECE 302 Division 1 MWF 10:30-11:20 (Prof. Pollak)

Final Exam Solutions, 5/3/2004.

Please read the instructions carefully before proceeding.

• If you are not in Prof. Pollak’s section, you may not take this

exam.

• No questions will be answered during the exam. If you think you found

a mistake in a problem statement, write so in your solution and explain your reasoning.

  • This is a closed-book exam. A formula sheet is provided. No calculators are allowed.
  • You have two hours to complete FIVE problems.
  • Be sure to fully and clearly explain all your answers.
  • There will not be any discussion of grades. All re-grade requests must be submitted in writing.

Problem Points Score

1 60

TOTAL 150

Some random variables, their distributions, and associated transforms:

Random variable PMF or PDF Mean Variance Transform

Bernoulli p for k = 1; 1 − p for k = 0. p p(1 − p) 1 − p + pes

Discrete uniform (^1) n , k = k 0 + 1, k 0 + 2,... , k 0 + n k 0 + n+1 2 n (^2) − 1 12

es(e(k^0 +n)s−ek^0 s) n(es−1) Geometric (1 − p)k−^1 p, k = 1, 2 , 3 ,... (^1) p p^12 − (^1) p pe

s 1 −(1−p)es

Binomial

n

k

 (1^ −^ p)n−kpk,^ k^ = 0,^1 ,... , n^ pn^ np(1^ −^ p)^ (1^ −^ p^ +^ pes)n

Pascal of order k

t − 1

k − 1

 pk(1^ −^ p)t−k,^ t^ =^ k, k^ + 1,...^ kp k

1 p^2 −^

1 p

pes 1 −(1−p)es

)k

Poisson e−λ λ k k! ,^ k^ = 0,^1 ,^2 ,...^ λ^ λ^ e

λ(es−1)

Continuous uniform (^) b−^1 a , a ≤ x ≤ b b+ 2 a (b−a)

2 12

esb−esa (b−a)s Exponential λe−λx, x ≥ 0 λ−^1 λ−^2 λλ−s

Normal (Gaussian)

2 πσ

e−^

(x−μ)^2 2 σ^2 μ σ^2 e σ

(^2) s 2 2 +μs

Erlang of order k λ

k (^) yk− (^1) e−λy (k−1)! ,^ y^ ≥^0

k λ

k λ^2

λ λ−s

)k

where (^) ( n k

n! (n − k)!k!

Problem 2 (35 points). Consider the Markov chain below.

1/2 1/4 1/2^ 1/

Given that this process is in state 0 just before the first transition, determine the probability that:

a (7 points) The process enters state 4 for the first time as the result of the K-th transition.

Solution. By inspecting the transition graph, we can see that it takes at least 2 steps to reach state 4 from state 0. If K ≥ 2, the only way from state 0 to state 2 with exactly K transitions is:

0 → 3 →︸ 3 → (^3) ︷︷→ · · · → 3 ︸ K− 2 transitions

The probability of this is:

PK = p 03 pK 33 − 2 p 34 = (1/3)(1/4)K−^2 (1/2) = (1/6)(1/4)K−^2 , K = 2, 3 ,...

b (7 points.) The process never enters state 3.

Solution. From zero, the process can only go to 3, 1, or 5. In the two latter cases, it will never reach 3. Therefore, the probability to never enter 3 is 2/3.

c (7 points) The process enters state 3, and leaves state 3 on the transition immediately after it entered state 3. Solution. This is the probability to enter state 3, which is 1/3, times the probability to imme- diately leave state 3, which is 1/4+1/2 = 3/4. Answer: 1/ 3 · 3 /4 = 1/4.

d (7 points) The process enters state 5 for the first time on the third transition.

Solution. The only path that takes the process from state 0 to state 5 in exactly 3 steps is:

0 → 3 → 4 → 5

The probability of this is: p 03 p 34 p 45 =

e (7 points.) The process is in state 3 as a result of the N -th transition.

Solution. The only way for this to happen is:

0 →︸ 3 → (^3) ︷︷→ · · · → 3 ︸ N transitions The probability of this sequence is:

p 03 pN 33 − 1 = (1/3)(1/4)N^ −^1

Fully and clearly explain all your answers.

Problem 4 (20 points). Let X 1 , X 2 ,... be independent, identically distributed, exponential random variables with parameter λ = 4. For n = 1, 2 ,.. ., let

Sn = X 1 +... + Xn Yn =

Sn n Wn = 4 Sn − n √ n

a (7 points.) Is Yn convergent in probability? If so, to what value? Explain.

b (7 points.) Is Sn convergent in probability? If so, to what value? Explain.

c (6 points.) Let an = P(Wn < 0), for n = 1, 2 ,.. .. Does the sequence of numbers a 1 , a 2 , a 3 ,... converge? If so, to what value? Explain.

Fully and clearly explain all your answers.

Solution.

a,b. According to the weak law of large numbers, Yn converges in probability to the expectation of Xn which is 1/4. Therefore, since Sn = nYn,

nlim→∞ Sn^ = lim n→∞ nYn^ = lim n→∞ n/4 =^ ∞, which means that Sn does not converge in probability.

c. Note that E[Xn] = 1/4, and therefore E[Sn] = n/4, and E[Wn] = (4E[Sn] − n)/

n = 0. Also, E[Xn] = 1/16, and therefore var(Sn) = n/16, var(4Sn − n) = n, and var(Wn) = 1. We can therefore apply the central limit theorem to yield:

lim n→∞ an = lim n→∞ P(Wn < 0) = Φ(0) = 0. 5.

Problem 5 (15 points). In each part, obtain the simplest possible answer. Hint. This problem does not require much calculation.

a (5 points). Evaluate (^) ∫ ∞

0

(x − 2)^2 · 16 x^3 e−^2 x 6

dx

Solution. Note that Erlang distribution of order k = 4 with parameter λ = 2 is:

24 x^4 −^1 e−^2 x (4 − 1)!

16 x^3 e−^2 x 6

and, moreover, the expected value for this distribution is k/λ = 2. Therefore, the given integral is simply the variance, which is equal to k/λ^2 = 1.

b (5 points). Evaluate ∑∞

n=

  1. 5 n

n − 1 3

)n− 4

You can use 0. 5 n^ = en^ loge^0.^5. Solution. This expression is the transform MX (s), where X is a Pascal random variable of order k = 4 with p = 1/9. Since 0. 5 n^ = eloge^0.^5 n = en^ loge^0.^5 , in this case s = loge 0 .5, and so the expression is equal to:

MX (loge 0 .5) =

(1/9)eloge^0.^5 1 − (8/9)eloge^0.^5

c (5 points). Let

f (x) =

2 e−^2 x, x ≥ 0 0 , otherwise, Find f (x) ∗ f (x) ∗ f (x) ∗ f (x) where ∗ stands for convolution. Solution. Note that f is an exponential PDF with parameter λ = 2. The convolution of four f ’s is therefore the PDF of the sum of four independent identical exponential random variables with parameter λ = 2, which is Erlang PDF of order k = 4: { (^16) x (^3) e− 2 x 6 ,^ x^ ≥^0 0 , otherwise,

Fully and clearly explain all your answers.