Docsity

5 Solved Problems in Random Processes - Quiz 1 | ECE 534, Quizzes of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 534: Random Pro cesses Spring 2010
Solutions to Probability Review Quiz
1. Suppose you throw a pair of standard dice and the sum of the numbers showing on the
dice is 7. Find the probability that one die shows 2 and the other shows 5, conditioned
on the event that the sum is 7.
Solution: Ways to get a total 7: (1,6), (6,1), (2,5), (5,2), (3,4), (4,3). Hence
P[(2,5) or (5,2)|total = 7] = 2
6=1
3.
2. Consider two urns containing green and red balls. Urn 1 contains g1green balls and r1
red balls while Urn 2 contains g2green balls and r2red balls. Suppose you perform the
following experiment: pick an urn at random and pick a ball at random from that urn.
(a) What is the probability that the ball you pick is green?
Solution: P(picking green ball) = 1
2
g1
g1+r1+1
2
g2
g2+r2.
(b) Suppose that the total number of green balls is nand the the total number of red
balls is also n: How would you choose g1,r1,g2and r2to maximize the probability
of picking a green ball when you perform the above experiment? Assume nis very
large for simplicity, i.e., you only need to show that your choice of g1,r1,g2and r2
is optimal as n→ ∞. (Note: This problem is slightly tricky, you may want to skip
it and come back to it at the end if you cannot get it right away.)
Solution: Since g1+g2=r1+r2=n, if g1
g1+r1≤1
2, then g2
g2+r2≥1
2. Thus
P(picking green ball) ≤3
2·1
2=3
4.
Let g1= 1, r1= 0, then
P(picking green ball) = 1
2+1
2
n−1
2n−1→3
4as n→ ∞.
3. Let Xbe a Gaussian random variable with mean 0 and variance 9. Define Y=sgn(X−
2), where sgn(z) is the sign function which takes the value +1 if z≥0 and −1 if z < 0.
Express E(Y) in terms of the Q-function. (Hint: First find the pmf of Y in terms of the
Q-function. Recall that the Q-function is the complementary cdf of N(0,1).)
Solution: P(Y= 1) = P(X−2≥0) = P(X≥2) = PX
3≥2
3=Q(2
3).
P(Y=−1) = P(X−2<0) = P(X < 2) = 1 −Q(2
3).
E(Y) = Q(2
3)−1−Q(2
3)= 2Q(2
3)−1.
1
pf3

Partial preview of the text

Download 5 Solved Problems in Random Processes - Quiz 1 | ECE 534 and more Quizzes Electrical and Electronics Engineering in PDF only on Docsity!

ECE 534: Random Processes Spring 2010

Solutions to Probability Review Quiz

  1. Suppose you throw a pair of standard dice and the sum of the numbers showing on the dice is 7. Find the probability that one die shows 2 and the other shows 5, conditioned on the event that the sum is 7. Solution: Ways to get a total 7: (1,6), (6,1), (2,5), (5,2), (3,4), (4,3). Hence

P [(2, 5) or (5, 2)|total = 7] =

  1. Consider two urns containing green and red balls. Urn 1 contains g 1 green balls and r 1 red balls while Urn 2 contains g 2 green balls and r 2 red balls. Suppose you perform the following experiment: pick an urn at random and pick a ball at random from that urn. (a) What is the probability that the ball you pick is green? Solution: P (picking green ball) = (^12) g 1 g+^1 r 1 + (^12) g 2 g+^2 r 2. (b) Suppose that the total number of green balls is n and the the total number of red balls is also n: How would you choose g 1 , r 1 , g 2 and r 2 to maximize the probability of picking a green ball when you perform the above experiment? Assume n is very large for simplicity, i.e., you only need to show that your choice of g 1 , r 1 , g 2 and r 2 is optimal as n → ∞. (Note: This problem is slightly tricky, you may want to skip it and come back to it at the end if you cannot get it right away.) Solution: Since g 1 + g 2 = r 1 + r 2 = n, if (^) g 1 g+^1 r 1 ≤ 12 , then (^) g 2 g+^2 r 2 ≥ 12. Thus

P (picking green ball) ≤

Let g 1 = 1, r 1 = 0, then

P (picking green ball) =

n − 1 2 n − 1

as n → ∞.

  1. Let X be a Gaussian random variable with mean 0 and variance 9. Define Y = sgn(X − 2), where sgn(z) is the sign function which takes the value +1 if z ≥ 0 and −1 if z < 0. Express E(Y ) in terms of the Q-function. (Hint: First find the pmf of Y in terms of the Q-function. Recall that the Q-function is the complementary cdf of N (0, 1).) Solution: P (Y = 1) = P (X − 2 ≥ 0) = P (X ≥ 2) = P

( X

3 ≥^

2 3

= Q( 23 ).

P (Y = −1) = P (X − 2 < 0) = P (X < 2) = 1 − Q( 23 ).

E(Y ) = Q( 23 ) −

[

1 − Q( 23 )

]

= 2Q( 23 ) − 1.

ECE 534 Quiz Spring 2010

  1. Let X 1 and X 2 be independent random variables, where X 1 is exponentially distributed with mean 1 and X 2 is uniformly distributed in [0, 1]. Find the cdf of Y = max(X 1 , X 2 ). (Hint: The inequality max(a, b) ≤ c can also be written as two inequalities a ≤ c and b ≤ c.)

Solution: FX 1 (x 1 ) =

0 , x 1 ≤ 0 1 − e−x^1 , x 1 > 0

FX 2 (x 2 ) =

0 , x 2 ≤ 0 x 2 , x 2 ∈ (0, 1] 1 , x 2 > 1

P (Y ≤ y) = P (X 1 ≤ y, X 2 ≤ y) =

0 , y ≤ 0 (1 − ey)y, y ∈ (0, 1] 1 − ey, y > 1

  1. Let X and Y be independent Poisson random variables, both with mean 1.

(a) What is E(X + Y )? Solution: E(X + Y ) = E(X) + E(Y ) = 2.

(b) Prove that X + Y is also a Poisson random variable. (Hint: The binomial expansion may be useful: (a + b)i^ =

∑i j=

(i j

aj^ bi−j^ .) Solution:

P (X + Y = i) =

∑^ i

j=

P (X + Y = i|Y = j)P (Y = j)

∑^ i

j=

P (X = i − j)P (Y = j)

∑^ i

j=

e−^1 (i − j)!

e−^1 j!

= e−^2

∑^ i

j=

(i − j)!j!

e−^2 i!

∑^ i

j=

i! (i − j)!j!

e−^2 i!

∑^ i

j=

i j

1 j^1 i−j

e−^2 i!

(1 + 1)i^ = e−^22 i i!

Hence X + Y ∼ Poi(2).