


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!



Department of Electrical and Computer Engineering
ECE 139 Spring 2008 Instructor: K. Rose
Midterm Examination May 2008
Instructions: The exam is closed book and closed notes. It consists of three problems. The problems are not of equal worth nor of equal difficulty, so use discretion in allocating your time. All answers should be fully justified. Please make answers as simple as possible (but not simpler...). You have one hour and fifteen minutes to complete the exam.
Good Luck!
Problem # 1 (40). A three digit number (000 to 999) is chosen at random. Find the probability that: a) The number is greater than 799. b) The product of the last two digits is 12. c) Exactly two digits are greater than 5. d) The second digit is greater than the other two Problem # 2 (30). Consider the function
F (x) =
0 x ≤ 0 a(cos πx + b) 0 < x ≤ 1 1 1 < x a) For what values of a and b is this a valid cumulative distribution function? Is your choice of values unique? (Justify carefully for full credit.) b) What is the corresponding density function? c) Find P [1/ 3 < X < 2 /3] and P [X < 2 / 3 |X > 1 /3]. Problem # 3 (30). A naive hacker wishes to compromise a computer security sys- tem. He wrote a simple program that sequentially generates random guesses for the needed password. Each guess has probability p (a very small number, one hopes) to match the password. a) What is the probability that it will take him K trials or less? b) If it turns out that he broke into the system without using more than 2K trials, what is the probability that it actually required K trials or less? Note that your answers may only be in terms of p and K.
n! ≈ √ 2 πn(ne )n
i= i = n(n^2 + 1)
i= ri^ =^1 −^ r
n 1 − r
(^2) = n(n^ + 1)(2n^ + 1) 6
xi i!