Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework...

6

Click here to load reader

Transcript of Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework...

Page 1: Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework solutions/hw2solf08.pdf · Stat330 - Solution to Homework 2 1 Kolmogorov (a) ... (c) For any

Stat330 - Solution to Homework 2

1 Kolmogorov

(a) For any two evens A, B ⊂ Ω,

P (A ∩ B) = P (A)− P (A ∩B).

Because

A = (A ∩ B) ∪ (A ∩B),

and

(A ∩ B) ∩ (A ∩B) = ∅,

axiom iii implies that

P (A) = P (A ∩ B) + P (A ∩B).

The statement follows from subtraction.

(b) For two events A, B ⊂ Ω with B ⊂ A,

P (A ∩ B) = P (A)− P (B).

Because A ⊂ B, A ∩B = B. The statement now follows from part (a).

(c) For any two events A, B ⊂ Ω,

P (A ∪B) = P (A) + P (B)− P (A ∩B).

Since

A ∪B = A ∪ (B ∩ A),

and

A ∩ (B ∩ A) = ∅,

axiom iii implies

P (A ∪B) = P (A) + P (B ∩ A). (1)

By part (a),

P (B ∩ A) = P (B)− P (B ∩A).

The result follows from substituting P (B)− P (B ∩A) into (??).An alternative proof of (c) is below.

P (A ∪B) = P (A) + P (B)− P (A ∩B) Kolmogorov (iii): A ∪B = A ∪ (B ∩ A)⇐⇒ P (A) + P (A ∩B) = P (A) + P (B)− P (A ∩B) Kolmogorov (iii): B = (A ∩B) ∪ (B ∩ A)

⇐⇒ P (A ∩B) = P (A ∩B) + P (A ∩B)− P (A ∩B)⇐⇒ 0 = 0(true)

1

Page 2: Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework solutions/hw2solf08.pdf · Stat330 - Solution to Homework 2 1 Kolmogorov (a) ... (c) For any

2 Broken Components

Four components are inspected and three events are defined as follows:A : “all four components are found to be defective”B : “exactly two components are found defective”C : “at most three components are found defective”

Interpret the following events. Start by defining a suitable sample space Ω::

a) B ∪ C. b) B ∩ C.

c) A ∪ C. d) A ∩ C.

A suitable choice for the sample space, is to count the number of defective components. Then

Ω = 0, 1, 2, 3, 4

and the events A, B,C can be rewritten as A = 4, B = 2 and C = 0, 1, 2, 3With that

a) B ∪ C = 2 ∪ 0, 1, 2, 3 = C = “at most three components are found defective”.

b) B ∩ C = 2 = B = “exactly two components are found defective”.

c) A ∪ C = 0, 1, 2, 3, 4 = “any number of components is found to be defective” = Ω.

d) A ∩ C = ∅.

3 Events and Notation

Suppose that A, B, and C are three events in an experiment. Express each of the following events in setnotation and find its probability.

(a) At least one of the three events occurs.

At least one event occurs = A ∪B ∪ C

(b) None of the three events occurs.

None of the three events occur = A ∩ B ∩ C

= A ∪B ∪ C

(c) Exactly one of the three events occurs.

Exactly one of the three events occurs = (A ∩ B ∩ C) ∪ (A ∩B ∩ C) ∪ (A ∩ B ∩ C)

(d) Exactly two of the three events occurs.

Exactly two of the three events occurs = (A ∩B ∩ C) ∪ (A ∩B ∩ C) ∪ (A ∩B ∩ C)

Note that the event in (d) is the complement of the union of the events in (a), (b), and (c).

2

Page 3: Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework solutions/hw2solf08.pdf · Stat330 - Solution to Homework 2 1 Kolmogorov (a) ... (c) For any

4 Counting

For all of the following problems find the sample space first. Determine the size of the sample space,then deal with the specified event.

(a) A lottery has 53 numbers from which seven are selected without replacement. You play the lotteryby selecting seven numbers from the same 53 numbers without replacement. What is the probabilitythat your seven numbers are the same as the lottery’s? The sample space Ω is the set consisting ofall sets of seven numbers drawn without replacement, i.e. |Ω| =

(537

)All elements in this sample

space have the same probability.We only have one chance to pick all seven numbers correctly, which results in a probability ofwinning the lottery of

1/

(537

)≈ 6.5 · 10−9.

(b) Find the probability of being dealt three kings in a five-card hand in a 52-card standard deck(no jokers) when the cards are drawn without replacement? What if the cards are drawn withreplacement (and re-shuffling between each draw)?First, suppose the cards are drawn, as usual, without replacement. The sample space Ω is the setconsisting of all sets of five card hands drawn without replacement, i.e. |Ω| =

(535

)All elements

in this sample space have the same probability.All hands we are interested in consist of 3 kings (out of 4 possible king cards) and 2 other cards(out of 48 non-king cards). We can think of the process of drawing such a hand as a series of twoactions: draw kings first, then draw other cards. This means, that we can apply the multiplicationprinciple to these sub-actions.We have

(43

)ways of choosing three kings out of four and

(482

)ways of choosing two additional

non-king cards. This gives overall(43

)·(482

)possibilities and leads to a probability of

(43

)·(482

)(535

) ≈ 0.001736.

Now, suppose the selected card is replaced after each draw. The sample space Ω is now the setof all ordered 5-tuples of cards, where the same card may appear in a 5-tuple twice. Using themultiplication principle, |Ω| = 525. The number of ways to select three kings can be divided intothe three sub-actions. The first sub-action is choosing which three of the five draws are the kings(i.e., the first, second and third draws, the first, third, and fifth draws, the second, fourth andfifth draws, etc.). There are

(53

)ways to do this first sub-action. The second sub-action is picking

the three kings. There are 43 ways to pick three kings with replacement from a standard deck, sothere are 43 ways to complete the second sub-action. The third sub-action is picking the other twocards. There are 48 cards in the deck that are not kings, so there are 482 ways to pick the othertwo cards. Applying the multiplication principle to the three sub-actions gives

(53

)43482 ways to

draw the three kings. Since all outcomes in Ω are equally likely, the probability of choosing threekings when sampling is with replacement is(

53

)43482

525= .0038

3

Page 4: Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework solutions/hw2solf08.pdf · Stat330 - Solution to Homework 2 1 Kolmogorov (a) ... (c) For any

(c) How many different passwords of length 6 can be generated from the set of letters ’a’-’z’, ’A’-’Z’and digits ’0’, ’1’-’9’ using at least two digits each? Symbols can be used more than once.Here, we can start with the number of different letter/digit combinations that are at all possibleusing 10 digits and 52 letters - that is an ordered sample of size six drawn with replacement, i.e.we have 626 many.Not all of these combinations are valid passwords, though. If we subtract the invalid combinations,we will end up with the number of valid passwords:Non-valid combinations are the ones using only letters, there we have 526 many.The other source of invalid combinations are the ones that only use one digit. We have 6 · 525 · 10possibilities for that (explanation: assume at first that the digit is at the last place, i.e. we getpasswords of the form e.g. ’heike3’ for that we have 525 · 10 choices. Since the digit can be at anyone of the positions, we multiply that expression by 6.Overall the number of valid passwords is

626 − 526 − 6 · 525 · 10 = 14, 217, 384, 000

(d) How many ways are there to re-arrange the letters M I S S I S S I P P I to different ”words” oflength 11? Why is it not just 11! ?Even though MISSISSIPPI has length 11, we do not have 11! ways of re-ordering letters for dif-ferent “words” because of all the duplicate letters, i.e. we can’t distinguish between ‘MISSISSIPPI’and ‘MISSISSIPPI’, if we exchange the first and the second S.We therefore need to think of a different strategy - there are different approaches, but I’ll try toexplain just the one that I find easiest:think of the word as 11 positions. We have 1 M, 4 Is, 4 Ss and 2 Ps to distribute. We can think ofdoing sequentially, i.e. we are dealing with four sub-actions, which means we are going to multiplythe number of possibilities.

• The first action is to choose a spot for the M - there are 11 possibilities for that.• Now we want to distribute 4 Is. Since one spot is taken, there are only 10 left, from which

we can pick 4. Order does not matter, since we cannot distinguish between the Is, thereforethere are

(104

)choices to pick 4 spots among 10.

• We can deal with the Ss in the same way - 5 spots are gone, i.e. we are left with 6 spots, fromwhich we pick another 4, which leaves us with

(64

)possibilities to do so.

• Finally the Ps - since we have only two spots left, there is real choice anymore, i.e. 1 way isleft.

Overall, we have

11 ·(

104

)·(

64

)·1 =

(111

)·(

104

)·(

64

)·(

22

)=

11!1 · 10!

· 10!4! · 6!

· 6!4! · 2!

· 2!2! · 0!

=11!

4!4!2!= 34650

Please note that these are Dr. Hofmann’s solutions. I (Emily) think that her explanation is greatand agree with her that this is the easiest way to approach this problem.

5 Deriving Probabiltities

(a) RestaurantA certain restaurant has two cooks—the chief cook and his assistant. On any given day, theprobability that the chief cook will show up for work is 0.97, the probability that the assistant cookwill show up for work is 0.96, and the probability that at least one of the two cooks will show upfor work is 0.98. Find the probabilities that on any given day the restaurant will have

4

Page 5: Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework solutions/hw2solf08.pdf · Stat330 - Solution to Homework 2 1 Kolmogorov (a) ... (c) For any

a) both cooks, b) neither of the two cooks,

c) only the chief cook, d) only the assistant cook,

e) only one of the two cooks.The easiest way to solve a problem like this is to draw a Venn diagram first and try to figure out,which parts of it we already know and which parts are asked for in the questions:Let’s use C to describe the event that the chief cook is in and A that his assistant is in. Wealready know, that P (C) = 0.97 and P (A) = 0.96. The event ”at least one of them is in” is thesame as ”the chief is in or the assistant is in (or both)”, which translates to the event A ∪ C.Therefore, P (A ∪ C) = 0.98.From a) to e) the above events can be drawn in Venn diagrams:

C

A

C

A

C

A

a) b) c)

e)

C A

C A

C

A

d)

C

A

C A

C A

The probability for a) is (remember the addition rule!)

P (A ∩ C) = P (A) + P (C)− P (A ∪ C) = 0.97 + 0.96− 0.98 = 0.95.

b) P (A ∩ C) = 1− 0.98 = 0.02c) P (A ∩ C) = P (C)− P (A ∩ C) = 0.02d) P (A ∩ C) = P (A)− P (A ∩ C) = 0.01e) P (A ∩ C) + P (A ∩ C) = 0.03

(b) Best-ByThere are five containers of milk on a shelf; unknown to you, two of them have passed their use-bydate. You grab two at random. What’s the probability that neither have passed their use-by date?Suppose someone else has got in just ahead of you, taking one container, after examining thedates. What’s the probability that the two you take after that are ahead of their use-by dates?There are five containers of milk on the shelf - you pick 2. The numbers of possibilities to do thisis given as

(52

)= 10. All of those possibilities are equally likely. Now, we want to know the number

of possibilities to pick two containers from the good ones. There are in total three containers with

5

Page 6: Stat330 - Solution to Homework 2 1 Kolmogorovemilyb.public.iastate.edu/stat330/homework solutions/hw2solf08.pdf · Stat330 - Solution to Homework 2 1 Kolmogorov (a) ... (c) For any

fresh milk - so, in the same way as before, there are(32

)= 3 possibilities to pick two of the good

containers. In total that gives us a probability of 3/10 = 0.3 to pick two good containers.Now, someone else has taken a container of milk and presumably, he/she will have taken one ofthe fresh containers. So, there are 4 containers left - we have

(42

)= 6 possibilities to take two of

them. There’s only 1 possibility left to take the two fresh containers, which gives a probability of1/6.

6