Probability with Engineering Applications: Problem Set 10 Solutions, Assignments of Statistics

Solutions to problem set 10 of the ece/cs 313: probability with engineering applications course, which covers topics such as generating random variables with specified probability density functions, normal approximation to the binomial distribution, the poisson process, waiting times for a poisson process, and hypothesis testing for the variance and mean of gaussian and laplace variates.

Typology: Assignments

Pre 2010

Uploaded on 03/16/2009

koofers-user-vx5
koofers-user-vx5 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECE/CS 313: Probability with Engineering Applications Fall 2002
Problem Set 10 Solutions
1. Generation of random variables with specified probability density function
By integration, FX(x) = x2for 0 x1. It is desired that P[g(U)x] = x2. For fixed x, let ube the
value so that g(u) = x. The event {g(U)x}is thus equivalent to {Uu}, which has probability u. Thus,
we want u=x2, or equivalently, x=u. That is, g(u) = ufor 0 u1 does the trick.
(Note: In general, for each x, the cumulative probability distribution function desired for g(U) determines
value usuch that g(u) = x. In other words, the inverse of the function gis specified, from which we can find
g.)
2. Normal approximation to the binomial distribution
The number of people Sfavoring the proposition is a binomial random variable with parameters (100, 0.65).
It has mean µ= 65 and variance σ2= 100(0.65)(1 0.65) = 22.75. The DeMoivre-Laplace limit theorem
tells us that Sis well approximated by a normal random variable with parameters µand σ2.
(a) P[S50] = P[S65
22.75 5065
22.75 ]1Φ(3.14) = Φ(3.14) = 0.9992
(b) P[60 S70] = P[6065
22.75 S65
22.75 7065
22.75 ] =Φ(1.048) Φ(1.048) = 2Φ(1.048) 1 = 0.706
(c)P[S75] = P[S65
22.75 7565
22.75 ] =Φ(2.096) = 0.9778
3. The Poisson process
(a) P[N=n] = eµT (µT )n
n!
(b) P[N1=i] = eµτ (µτ )i
i!
(c) P[N2=j] = eµ(Tτ)(µ(Tτ))j
j!
(d)
P[N1=i|N=n] = P[N1=i, N =n]
P[N=n]=P[N1=i, N2=j]
P[N=n]=P[N1=i]P[N2=j]
P[N=n]=n!
i!j!(τ
T)i(Tτ
T)j
which can also be written as P[N1=i|N=n] = n
ipi(1 p)ni, where p=τ
T. As a function of i, the
answer is the pmf of a binomial probability.
(e)
P[N=n|N1=i] = P[N=n, N1=i]
P[N1=i]=P[N1=i, N2=j]
P[N1=i]=P[N1=i]P[N2=j]
P[N1=i]=P[N2=j] = eµ(Tτ)(µ(Tτ))j
j!
which can also be written as P[N=n|N1=i] = eµ(Tτ)(µ(Tτ))ni
(ni)! That is, given N1=i, the total number
of arrivals is iplus a random number of arrivals. The random number of arrivals has the Poisson distribution
with mean µ(Tτ).
4. Waiting times for a Poisson process
(a) P[N(t) = i] = e2t(2t)i
i!for nonnegative integers i(Poisson distribution, mean 2t)
(b) P[E1] = P[N(3.5) = 0] = e7(7)0
0! =e7= 0.00091
P[E2] = 0.00091 since E2is the same event as E1
P[E3] = P[N(3.5) 2] = P[N(3.5) = 0] + P[N(3.5) = 1] + P[N(3.5) = 2] = e7(1 + 7 + 72
2) = 0.0296
P[E4] = 0.0296 since E4is the same event as E3
P[E5] = P[N(t)2] = P[N(t) = 0] + P[N(t) = 1] + P[N(t) = 2] = e2t(1 + 2t+(2t)2
2)
P[E6] = 1 P[E5] = 1 e2t(1 + 2t+(2t)2
2)
(c) Differentiating yields f(t) = e2t(2(1 + 2t+(2t)2
2)24t) = e2t(2t)2
2) which indeed is the gamma
density with parameters (i= 3, µ = 2).
(d) The expected time between arrivals is 1, so the expected time until the 10th arrival is 10 = 5
minutes.
pf2

Partial preview of the text

Download Probability with Engineering Applications: Problem Set 10 Solutions and more Assignments Statistics in PDF only on Docsity!

ECE/CS 313: Probability with Engineering Applications Fall 2002

Problem Set 10 Solutions

  1. Generation of random variables with specified probability density function By integration, FX (x) = x^2 for 0 ≤ x ≤ 1. It is desired that P [g(U ) ≤ x] = x^2. For fixed x, let u be the value so that g(u) = x. The event {g(U ) ≤ x} is thus equivalent to {U ≤ u}, which has probability u. Thus, we want u = x^2 , or equivalently, x =

u. That is, g(u) =

u for 0 ≤ u ≤ 1 does the trick. (Note: In general, for each x, the cumulative probability distribution function desired for g(U ) determines value u such that g(u) = x. In other words, the inverse of the function g is specified, from which we can find g.)

  1. Normal approximation to the binomial distribution The number of people S favoring the proposition is a binomial random variable with parameters (100, 0.65). It has mean μ = 65 and variance σ^2 = 100(0.65)(1 − 0 .65) = 22.75. The DeMoivre-Laplace limit theorem tells us that S is well approximated by a normal random variable with parameters μ and σ^2. (a) P [S ≥ 50] = P [ √S 22 −^65. 75 ≥ √^5022 −.^6575 ] ≈ 1 − Φ(− 3 .14) = Φ(3.14) = 0. 9992

(b) P [60 ≤ S ≤ 70] = P [ √^6022 −.^6575 ≤ √S 22 −^65. 75 ≥ √^7022 −.^6575 ] =≈ Φ(1.048) − Φ(− 1 .048) = 2Φ(1.048) − 1 = 0. 706

(c)P [S ≤ 75] = P [ √S 22 −^65. 75 ≤ √^7522 −.^6575 ] =≈ Φ(2.096) = 0. 9778

  1. The Poisson process

(a) P [N = n] = e

−μT (^) (μT )n n! (b) P [N 1 = i] = e

−μτ (^) (μτ )i i!

(c) P [N 2 = j] = e

−μ(T −τ )(μ(T −τ ))j j! (d)

P [N 1 = i|N = n] =

P [N 1 = i, N = n] P [N = n]

P [N 1 = i, N 2 = j] P [N = n]

P [N 1 = i]P [N 2 = j] P [N = n]

n! i!j!

τ T

)i(

T − τ T

)j

which can also be written as P [N 1 = i|N = n] =

(n i

pi(1 − p)n−i, where p = (^) Tτ. As a function of i, the answer is the pmf of a binomial probability. (e)

P [N = n|N 1 = i] =

P [N = n, N 1 = i] P [N 1 = i]

P [N 1 = i, N 2 = j] P [N 1 = i]

P [N 1 = i]P [N 2 = j] P [N 1 = i]

= P [N 2 = j] =

eμ(T^ −τ^ )(μ(T − τ ))j j!

which can also be written as P [N = n|N 1 = i] = e

−μ(T −τ )(μ(T −τ ))n−i (n−i)! That is, given^ N^1 =^ i, the total number of arrivals is i plus a random number of arrivals. The random number of arrivals has the Poisson distribution with mean μ(T − τ ).

  1. Waiting times for a Poisson process

(a) P [N (t) = i] = e

− 2 t(2t)i i! for nonnegative integers^ i^ (Poisson distribution, mean 2t) (b) P [E 1 ] = P [N (3.5) = 0] = e

− (^7) (7) 0 0! =^ e

P [E 2 ] = 0.00091 since E 2 is the same event as E 1

P [E 3 ] = P [N (3.5) ≤ 2] = P [N (3.5) = 0] + P [N (3.5) = 1] + P [N (3.5) = 2] = e−^7 (1 + 7 + 7

2 2 ) = 0.^0296 P [E 4 ] = 0.0296 since E 4 is the same event as E 3

P [E 5 ] = P [N (t) ≤ 2] = P [N (t) = 0] + P [N (t) = 1] + P [N (t) = 2] = e−^2 t(1 + 2t + (2t)

2 2 ) P [E 6 ] = 1 − P [E 5 ] = 1 − e−^2 t(1 + 2t + (2t)

2 2 ) (c) Differentiating yields f (t) = e−^2 t(2(1 + 2t + (2t)

2 2 )^ −^2 −^4 t) =^ e

− 2 t (2t)^2 2 ) which indeed is the gamma density with parameters (i = 3, μ = 2). (d) The expected time between arrivals is 1/μ, so the expected time until the 10th^ arrival is 10/μ = 5 minutes.

  1. Hypothesis testing for the variance of a Gaussian variate (a)

Λ(x) =

1 b

√ 2 π e

− 2 xb^22

1 a√ 2 π e

− 2 xa^22

a b

e−^

x^2 2 b^2 +^

x^2 2 a^2 =

a b

e

x 22 ( 1 a^2 −^

1 b^2 )

(b) The ML rule is to choose H 1 when Λ(X) > 1. Thus, by taking the natural logarithm of both sides of

this inequality we obtain the rule: If (ln a b ) + X

2 2 (^

1 a^2 −^

1 b^2 )^ >^ 0 choose^ H^1. After a bit of algebra, we derive the rule that H 1 should be chosen when

ln

b a

X^2

a^2

b^2

X^2

b^2 − a^2 a^2 b^2

2 a^2 b^2 b^2 − a^2

ln

b a

< X^2 ⇒ K = ab

2(ln b − ln a) b^2 − a^2

< |X|

(c) The MAP rule is to choose H 1 when Λ(X) > π π^01. After a bit of algebra, we derive the rule that H 1

should be chosen when

ln

bπ 0 aπ 1

X^2

a^2

b^2

X^2

b^2 − a^2 a^2 b^2

⇒ K = ab

2(ln(bπ 0 ) − ln(aπ 1 )) b^2 − a^2

< |X|

(d) pf alse alarm = P {|X| > K | H 0 } =

∫ −K

−∞ f^0 (u)du^ +^

K f^0 (u)du^ = Φ(−K/a) + 1^ −^ Φ(K/a) = 2Q(K/a). pmiss = P {|X| < K | H 1 } =

∫ K

−K f^1 (u)du^ = Φ(K/b)^ −^ Φ(−K/b) = 1^ −^2 Q(K/b).

  1. Hypothesis testing for the mean of a Laplace variate (a) It is helpful to explicitly note that

|u − 1 | =

−u + 1 : u < 1 u − 1 : u ≥ 1 ,^ |u^ + 1|^ =

−u − 1 : u < − 1 u + 1 : u ≥ − 1.

Thus,

f 1 (u) =

2 e

u− (^1) : u < 1 1 2 e

−u+1 (^) : u ≥ 1 f 0 (u) =

2 e

u+1 (^) : u < − 1 1 2 e

−u− (^1) : u ≥ − 1

(b)

Λ(u) =

e−|u−^1 | e−|u+1|^

eu−^1 eu+1^ =^ e

− (^2) : u < − 1

eu−^1 e−u−^1 =^ e

2 u (^) : − 1 ≤ u < 1

e−u+ e−u−^1 =^ e

(^2) : 1 < u

(c) The likelihood ratio Λ(u) is nondecreasing and it crosses 1 at u = 0. Thus, the ML decision rule is to decide H 1 is true if X > 0 and decide H 0 otherwise. (d)

pf alse alarm =

0

f 0 (u)du =

0

e−u−^1 du =

e−^1

0

e−udu =

e−^1

By symmetry, we see that pmiss is also given by pmiss = 12 e−^1 (of course, one could always compute the

integral

−∞

1 2 e

−|u− 1 |du = ∫^0 −∞

1 2 e

(u−1)du = 1 2 e

− 1 ∫^0

−∞

1 2 e

udu = 1 2 e

(e) The MAP decision rule is to choose H 1 if Λ(u) > π π^01 = 2, and choose H 0 otherwise. Note that the

solution of e^2 u^ = 2 is u = ln 2 2 , which is between -1 and 1. Thus, the MAP decision rule is to choose H 1 if

X ≥ K and choose H 0 otherwise, where K = ln 2 2 = ln

(f)

pf alse alarm =

ln

√ 2

f 0 (u)du =

e−^1

ln

√ 2

e−udu =

e−^1 (−e−∞^ + e−^ ln^

√ 2 ) =

e−^1.

Similarly,

pmiss =

∫ (^) ln √ 2

−∞

f 1 (u)du =

e−^1

∫ (^) ln √ 2

−∞

eudu =

e−^1 eln^

√ 2

e−^1 =

e−^1.