Exam 1 Solutions - Probability with Engineering Application | ECE 313, Exams of Statistics

Material Type: Exam; Class: Probability with Engrg Applic; Subject: Electrical and Computer Engr; University: University of Illinois - Urbana-Champaign; Term: Fall 2006;

Typology: Exams

Pre 2010

Uploaded on 03/16/2009

koofers-user-qxz
koofers-user-qxz 🇺🇸

5

(1)

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
University of Illinois Fall 2006
ECE 413: Solutions to Hour Exam I
1. [20 points] Let A,B, and Cdenote three events defined on a sample space Ω, and suppose that P(A) = P(B) =
0.4, P (C) = 0.5, and P(ABc) = P(AcBcC)=0.2. Find the following probabilities: P(AB), P(AcB),
P((ABC)c), and P(Cc|(AcBc)).
1. The Karnaugh maps shown below are very useful in visualizing the problem.
A
B
C
0.20.4
0.2
A
B
0.4 0.2
We get that
P(AB) = P(A)P(ABc) = 0.40.2 = 0.4. Note that P(AB) = 0.6.
P(AcB) = P(B)P(AB) = 0.40.2 = 0.2.
P((ABC)c) = 1 P(ABC) = 1 [P(AB) + P(AcBcC)] = 1 [0.6 + 0.2] = 0.2.
Note that P((ABC)c) = P(AcBcCc), and also that P(AcBc) = 1 P(AB) = 0.4.
P(Cc|(AcBc)) = P(AcBcCc)
P(AcBc)=0.2
0.4= 0.5.
2. [24 points] A bag contains n2 pairs of shoes in distinct styles and sizes.
(a) You pick two shoes at random from the bag. Note that this is sampling without replacement.
i. What is the probability that you get a pair of shoes?
ii. What is the probability of getting one left shoe and one right shoe?
(b) You now pick a third shoe at random from the bag without returning the two shoes that you previously
picked to the bag.
i. What is the probability that you have a pair of shoes among the three that you have picked?
ii. What is the probability that there is at least one left shoe and at least one right shoe among the
three?
2. (a) i. There are µ2n
2choices of two shoes from 2nof which only nchoices yield a pair. Hence,
P(pair) = n
¡2n
2¢=n
2n(2n1)/1×2=1
2n1.
More simply, think of choosing the shoes sequentially. Regardless of what the first sho e drawn
is, the chance of getting its mate on the second draw is 1
2n1. Note that this has value 1 if
n= 1, which makes perfect sense.
pf3
pf4

Partial preview of the text

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

University of Illinois Fall 2006

ECE 413: Solutions to Hour Exam I

  1. [20 points] Let A, B, and C denote three events defined on a sample space Ω, and suppose that P (A) = P (B) =
    1. 4 , P (C) = 0.5, and P (A ∩ Bc) = P (Ac^ ∩ Bc^ ∩ C) = 0.2. Find the following probabilities: P (A ∩ B), P (Ac^ ∩ B), P ((A ∪ B ∪ C)c), and P (Cc|(Ac^ ∩ Bc)).
  2. The Karnaugh maps shown below are very useful in visualizing the problem.

A

B

0.4 0.2 C 0.

A

B

We get that

  • P (A ∩ B) = P (A) − P (A ∩ Bc) = 0. 4 − 0 .2 = 0.4. Note that P (A ∪ B) = 0.6.
  • P (Ac^ ∩ B) = P (B) − P (A ∩ B) = 0. 4 − 0 .2 = 0.2.
  • P ((A ∪ B ∪ C)c) = 1 − P (A ∪ B ∪ C) = 1 − [P (A ∪ B) + P (Ac^ ∩ Bc^ ∩ C)] = 1 − [0.6 + 0.2] = 0.2. Note that P ((A ∪ B ∪ C)c) = P (Ac^ ∩ Bc^ ∩ Cc), and also that P (Ac^ ∩ Bc) = 1 − P (A ∪ B) = 0.4.
  • P (Cc|(Ac^ ∩ Bc)) = P (Ac^ ∩ Bc^ ∩ Cc) P (Ac^ ∩ Bc)
  1. [24 points] A bag contains n ≥ 2 pairs of shoes in distinct styles and sizes. (a) You pick two shoes at random from the bag. Note that this is sampling without replacement. i. What is the probability that you get a pair of shoes? ii. What is the probability of getting one left shoe and one right shoe? (b) You now pick a third shoe at random from the bag without returning the two shoes that you previously picked to the bag. i. What is the probability that you have a pair of shoes among the three that you have picked? ii. What is the probability that there is at least one left shoe and at least one right shoe among the three?
  2. (a) i. There are

2 n 2

choices of two shoes from 2n of which only n choices yield a pair. Hence,

P (pair) = ( 2 nn 2

) = n 2 n(2n − 1)/ 1 × 2

2 n − 1

More simply, think of choosing the shoes sequentially. Regardless of what the first shoe drawn is, the chance of getting its mate on the second draw is

2 n − 1. Note that this has value 1 if n = 1, which makes perfect sense.

ii. Any one of the( n left shoes can be paired with any one of the n right shoes. So, n^2 of the 2 n 2

choices yield one left shoe and one right shoe in the two drawn, giving that

P (one L, one R ) = n^2 ( 2 n 2

n^2 2 n(2n − 1)/ 1 × 2

n 2 n − 1

Again, more simply, regardless of what the first shoe is, the chances of getting a shoe of the opposite footality on the second draw is n 2 n − 1

. Note that this has value 1 if n = 1, which makes perfect sense. (b) i. Any of the n pairs and any of the other 2n − 2 shoes form a set of 3 shoes. Hence, P (pair among three) = n(2n − 2) ( 2 n 3

n(2n − 2) 2 n(2n − 1)(2n − 2)/ 1 × 2 × 3

2 n − 1

Alternatively, conditioned on the first two shoes being a pair, the probability of the three shoes including a pair is 1 (Duh!). If the first two shoes do not constitute a pair, then the chances of getting a match on the next draw are

2 n − 2. Hence,

P (pair among three) = 1 2 n − 1 × 1 +^2 n^ −^2 2 n − 1

× 2

2 n − 2

2 n − 1

Note that this has value 1 when n = 2, which makes perfect sense. ii. The probability that all three shoes are left shoes is

(n 3

( 2 n 3

) (^) = n(n^ −^ 1)(n^ −^ 2) 2 n(2n − 1)(2n − 2) =^

n − 2 8 n − 4. Similarly for all three shoes being right shoes. Hence, P (one L and one R among three) = 1 − 2 × n − 2 8 n − 4

3 n 4 n − 2

Alternatively, conditioned on the first two shoes being a left shoe and a right shoe, the probability of having a left shoe and a right shoe among the three is 1, while if the first two shoes are not a left and a right shoe, the chances of getting the missing footality on the next draw is n 2 n − 2

. Hence,

P (one L and one R among three) = n 2 n − 1

× 1 +

n − 1 2 n − 1

×

n 2 n − 2

3 n 4 n − 2

Note that this has value 1 when n = 2, which makes perfect sense.

  1. [36 points] Fred and Wilma take turns tossing a coin with P (Heads) = p and P (Tails) = q = 1 − p. Fred tosses first, then Wilma, then Fred again, and so on until the game ends. Let Fi and Wi respectively denote the events that Fred and Wilma win the i-th game. (a) The rules are that the first one to toss a Head wins the game. In succeeding games, the loser of the previous game tosses first. Remember that Fred tosses first in the first game. i. Find P (F 1 ). Which is larger: P (F 1 ) or P (W 1 )? ii. What is the probability that Fred wins the second game? Which is larger, P (F 2 ) or P (W 2 )? (b) In a different game, the rule is that the first one to match the previous toss wins the game. Wilma graciously insists that Fred go first as usual in the first game, and the schmuck accepts without realizing that he has no previous toss to match! Note that there are at least two coin tosses in the first game, and that HH or TT constitute a win for Wilma, while HTT and THH constitute a win for Fred, etc. i. Find P (F 1 ). Which is larger: P (F 1 ) or P (W 1 )? ii. The first toss of the second game is the winning toss of the first game. Thus, outcomes HHH or TTT constitute a win for Wilma (her first toss matches Fred’s first toss) in the first game and a win for Fred in the second game (his second toss matches Wilma’s previous winning toss). What is the probability that Fred wins the second game? Which is larger, P (F 2 ) or P (W 2 )?
  1. (a) [6 points] Find E[X 2 ] for a Poisson random variable X with mean 5. (b) [6 points] If Y is a geometric random variable with mean 4, what is var(2 − 3 Y)? (c) [8 points] If Z denotes the number of occurrences of an event of probability p on 10 independent trials, what is the conditional expected value of Z given that the event occurred 4 times on the first six trials?
  2. (a) Since a Poisson random variable has mean and variance both equal to its parameter λ, and we are given that λ = 5 in this case, we get that E[X 2 ] = var(X ) + (E[X ])^2 = 5^2 + 5 = 30.

(b) Since a geometric random variable has mean 1/p and variance (1 − p)/p^2 , and we are given that 1 /p = 2 in this case, we get that var(2 − 3 Y) = 3^2 var(Y) = 9 ·

(c) What happens on the last 4 trials is independent of what happens on the first 6. Thus, the number of occurrences of the event on the last 4 trials is a binomial random variable with parameters (4, p), and hence expected value 4p. This is true regardless of what happened on the first six trials. Therefore the conditional expectation of Z is 4 + 4p.