Docsity

Exam 2 with Solutions - Probability with Engineering Applications | ECE 313, Exams of Statistics

Toggle sidebar
bg1
University of Illinois, ECE 413 Spring 2007 Solutions to exam 2
1. [24 points] A random variable Xis observed. Under hypothesis H0,Xhas the Poisson
distribution with mean λ0= 1. Under hypothesis H1,Xhas the Poisson distribution with mean
λ1= 3. (a) [8 points] Describe the maximum likelihood decision rule for selecting one of the
hypotheses, given that X=nis observed. Be as explicit as possible. (Hint: e≈2.7, e2≈7.4, e3≈
20, e4≈54, e5≈148.)(b) [8 points] For what values of the prior probability π1(if any) does
the MAP rule select hypothesis H1for all n≥0? (c) [8 points] Suppose that two observations
are available, instead of one. Suppose these observations are made under the same hypothesis,
and that, given which hypothesis is true, the two observations are conditionally independent, and
each has the same distribution as Xabove. Let n1and n2denote the two observations. Finally,
suppose the prior probabilities assigned to the hypotheses are π0= 0.8 and π1= 0.2.Identify all
pairs (n1, n2) such that the MAP rule decides that H1is true. Be as explicit as possible.
SOLUTION (a) The likelihood ratio is Λ(n) = e−33n/n!
e−11n/n!=3n
e2≈3n
7.4.Hence, for a nonnegative
integer n, Λ(n)>1 if and only if n≥2. Thus, the ML rule is to decide H0is true if and only if
n≥2.
(b) That is, for what values of (π0, π1) is 3n
e2≥π0
π1for all n≥0? The likelihood ratio is minimized
by n= 0, and the minimum value is 1
e2. So if 1
e2>π0
π1, or equivalently, π0<1
1+e2≈1
8.4, then the
MAP rule will always declare H1.
(c) The likelihood ratio is (e−33n1/n1!)(e−33n2/n2!)
(e−11n1/n1!)(e−11n2/n2!) ,=3n1+n2
e4≈3n1+n2
54 and the MAP threshold is
π0
π1= 4. Therefore, the map rule is to decide H1if and only if 3n1+n2
54 >4 or, equivalently, if and
only if n1+n2≥5.
2. [20 points] Let Xbe a random variable with pdf fX(u) = ceuif 0 ≤u≤4
0 else. For all
parts of this problem, you can use terms such as e4in your answer. Numerical values are not
required. (a) [2 points] Sketch fX.(b) [6 points] Find the constant c.(c) [6 points] Find
P(X≥3|2≤X≤6).(d) [6 points] Find P(2 ≤X≤6|X≥3).
SOLUTION (a)
c
0
f (u)
X
u
ce
4
4
(b) 1 = R4
0ceudu =c(e4−1) so that c=1
e4−1.
(c) P({X≥3}∩{2≤X≤6}) = P(3 ≤X≤6) = P(3 ≤X≤4) = R4
3ceudu =c(e4−e3)
and P(2 ≤X≤6) = P(2 ≤X≤4) = R4
2ceudu =c(e4−e2).
So, P(X≥3|2≤X≤6) = e4−e3
e4−e2=e2−e
e2−1=e(e−1)
(e+1)(e−1) =e
e+1 .
(d) P({2≤X≤6} ∩ {X≥3}) = P(3 ≤X≤6) = P(3 ≤X≤4) and P(X≥3) = P(3 ≤X≤4).
So, P(2 ≤X≤6|X≥3) = 1.
1
pf2

Partial preview of the text

Download Exam 2 with Solutions - Probability with Engineering Applications | ECE 313 and more Exams Statistics in PDF only on Docsity!

University of Illinois, ECE 413 Spring 2007 Solutions to exam 2

  1. [24 points] A random variable X is observed. Under hypothesis H 0 , X has the Poisson distribution with mean λ 0 = 1. Under hypothesis H 1 , X has the Poisson distribution with mean λ 1 = 3. (a) [8 points] Describe the maximum likelihood decision rule for selecting one of the hypotheses, given that X = n is observed. Be as explicit as possible. (Hint: e ≈ 2. 7 , e^2 ≈ 7. 4 , e^3 ≈ 20 , e^4 ≈ 54 , e^5 ≈ 148 .) (b) [8 points] For what values of the prior probability π 1 (if any) does the MAP rule select hypothesis H 1 for all n ≥ 0? (c) [8 points] Suppose that two observations are available, instead of one. Suppose these observations are made under the same hypothesis, and that, given which hypothesis is true, the two observations are conditionally independent, and each has the same distribution as X above. Let n 1 and n 2 denote the two observations. Finally, suppose the prior probabilities assigned to the hypotheses are π 0 = 0.8 and π 1 = 0. 2. Identify all pairs (n 1 , n 2 ) such that the MAP rule decides that H 1 is true. Be as explicit as possible.

SOLUTION (a) The likelihood ratio is Λ(n) = e

− 33 n/n! e−^11 n/n! =^

3 n e^2 ≈^

3 n

  1. 4.^ Hence, for a nonnegative integer n, Λ(n) > 1 if and only if n ≥ 2. Thus, the ML rule is to decide H 0 is true if and only if n ≥ 2. (b) That is, for what values of (π 0 , π 1 ) is 3 n e^2 ≥^

π 0 π 1 for all^ n^ ≥^ 0? The likelihood ratio is minimized by n = 0, and the minimum value is (^) e^12. So if (^) e^12 > π π^01 , or equivalently, π 0 < (^) 1+^1 e 2 ≈ (^81). 4 , then the MAP rule will always declare H 1. (c) The likelihood ratio is (e

− 33 n (^1) /n 1 !)(e− 33 n (^2) /n 2 !) (e−^11 n^1 /n 1 !)(e−^11 n^2 /n 2 !) ,^ =^

3 n^1 +n^2 e^4 ≈^

3 n^1 +n^2 54 and the MAP threshold is π 0 π 1 = 4. Therefore, the map rule is to decide^ H^1 if and only if^

3 n^1 +n^2 54 >^ 4 or, equivalently, if and only if n 1 + n 2 ≥ 5.

  1. [20 points] Let X be a random variable with pdf fX (u) =

ceu^ if 0 ≤ u ≤ 4 0 else. For all parts of this problem, you can use terms such as e^4 in your answer. Numerical values are not required. (a) [2 points] Sketch fX. (b) [6 points] Find the constant c. (c) [6 points] Find P (X ≥ 3 | 2 ≤ X ≤ 6). (d) [6 points] Find P (2 ≤ X ≤ 6 | X ≥ 3).

SOLUTION (a)

c 0

f (u) X

u

ce

4

4

(b) 1 =

0 ce

udu = c(e (^4) − 1) so that c = 1 e^4 − 1. (c) P ({X ≥ 3 } ∩ { 2 ≤ X ≤ 6 }) = P (3 ≤ X ≤ 6) = P (3 ≤ X ≤ 4) =

3 ce

udu = c(e (^4) − e (^3) )

and P (2 ≤ X ≤ 6) = P (2 ≤ X ≤ 4) =

2 ce udu = c(e (^4) − e (^2) ).

So, P (X ≥ 3 | 2 ≤ X ≤ 6) = e (^4) −e 3 e^4 −e^2 =^

e^2 −e e^2 − 1 =^

e(e−1) (e+1)(e−1) =^

e e+. (d) P ({ 2 ≤ X ≤ 6 } ∩ {X ≥ 3 }) = P (3 ≤ X ≤ 6) = P (3 ≤ X ≤ 4) and P (X ≥ 3) = P (3 ≤ X ≤ 4). So, P (2 ≤ X ≤ 6 | X ≥ 3) = 1.

  1. [20 points] A professor breaks the chalk piece with which he is writing on the blackboard at random times that can be modeled as arrivals in a Poisson process with arrival rate λ = 0.2 per minute. (a) [6 points] What is the expected length of time between two successive chalk breaks? (b) [6 points] What is the average number of times that the professor breaks the chalk during a 50 minute lecture? (c) [8 points] Given that the professor broke 8 chalk pieces in a 50 minute lecture, what is the conditional probability that the professor broke (exactly) 3 chalk pieces in the first 30 minutes?

SOLUTION (a) The interarrival time in a Poisson process with arrival rate λ (time between two successive chalk breaks on this instance) is an exponential random variable with parameter λ. Hence, the average length of time between successive chalk-breaks is the mean of this exponential random variable, which is λ−^1 = 5 minutes. (b) The number of times that the professor breaks the chalk during a 50 minute lecture is a Poisson random variable N (0, 50] with parameter λ × 50 = 10 and mean value E[N (0, 50]] = 10. (c) Given the total number is 8, the times of the breaks can be considered to be independent and uniform over the 50 minute period. Thus, each of the 8 is broken in the first 30 minutes with probability 30/50=0.6, and the conditional distribution of the number broken in the first 30 minutes is binomial with parameters n = 8 and p = 30/50 = 0.6. So P (N (0, 30] = 3|N (0, 50] =

  1. =

3

(0.6)^3 (0.4)^5.

  1. [16 points] Suppose X is a random variable with mean 10 and variance 3. Find the numerical value of P {X < 10 −

3 } (or, nearly equivalently, P {X < 8. 27 }) for the following two choices of distribution type: (a) [8 points] Assuming X is a Gaussian random variable. (b) [8 points] Assuming X is a uniform random variable.

SOLUTION (a) If X is Gaussian, P {X < 10 −

3 } = P { X√− 310 ≤ − 1 } = Φ(−1) = 1 − Φ(1) ≈

(b)A random variable uniformly distributed on [a, b] has mean

a + b 2 and variance

(b − a)^2 12

. Hence,

we have that b − a = 6, and a + b = 20, giving a = 7, b = 13. That is, X is uniformly distributed over [7, 13]. Therefore, P {X < 8. 27 } = 8.^276 − 7 ≈ 0. 211.

  1. [20 points] Suppose Z is a uniform random variable on the interval [− 2 , 4]. (a) [10 points] Find E[|Z|]. (b) [10 points] Give the pdf of Y = |Z| in equation form (specify it for all v, −∞ < v < ∞) and sketch the pdf.

SOLUTION (a) The pdf is shown.

1/ ! 2 4! 2 4

E[|Z|] =

[ ∫ 0

− 2

−u du +

0

u du

]

[

−u^2 2

0

− 2

u^2 2

4

0

 =^1

[2 + 8] =

(b) Y = |Z| takes on values in [0, 4], and hence FY (v) = 0 for v < 0 and FY (v) = 1 for v > 4. If 0 ≤ v ≤ 2 , FY (v) = P {Y ≤ v} = P {−v ≤ Z ≤ v} = v/ 3 ⇒ fY (v) = 1/ 3. If 2 ≤ v ≤ 4 , FY (v) = P {Y ≤ v} = P {Z ≤ v} = (v + 2)/ 6 ⇒ fY (v) = 1/ 6. Else, v < 0 or v > 4, and fY (v) = 0.

f (v)

2

1/ 1/ 0 4

v

Y