Docsity

Midterm Exam #2 - Probability Theory | MATH 461, Exams of Probability and Statistics

Toggle sidebar
bg1
Math 461 B/C, Spring 2009
Midterm Exam 2 Solutions and Comments
1. Assume Aand Bare independent events with P(A) = 0.2 and P(B) = 0.3. Let Cdenote the event
that none of the events Aand Boccurs, and let Dbe the event that exactly one of the events A
and Boccurs.
(a) Find P(C).
Solution. The event C(“none of Aand Boccurs”) is the intersection of the complements of
5 pts
Aand B. Thus,
P(C) = P(AcBc) = P(Ac)P(Bc) = (1 −P(A))(1 −P(B))
= 0.8·0.7 = 0.56
(b) Find P(D).
Solution. The event C(“exactly one of Aand Boccurs”) is the union of Aand Bminus the5 pts
intersection of Aand B, i.e., A∪B\AB. Thus,
P(D) = P(A∪B\AB) = P(A∪B)−P(A)P(B) = P(A) + P(B)−2P(AB)
= 0.2+0.3−2·0.2·0.3 = 0.38 = 19/50
(c) Find P(A|D).
Solution. The event AD is the event “Aoccurs, and exactly one of Aand Boccurs”, which5 pts
is the same as “Aoccurs, but Bdoes not occur”, i.e., A\AB . Thus,
P(A|D) = P(AD)
P(D)=P(A\AB)
P(D)=P(A)−P(A)P(B)
P(D)
=0.2−0.2·0.3
0.38 =0.14
0.38 = 7/19
(d) Find P(A|Dc).
Solution. The event ADcis the event “Aoccurs, and either 0 or 2 of the events Aand B5 pts
occur”, which is the same as “Aoccurs and Boccurs”, i.e., AB. Thus,
P(A|Dc) = P(ADc)
P(Dc)=P(AB)
1−P(D)
=0.2·0.3
1−0.38 =0.06
0.62 = 3/31
Comments: As pointed out in class, the complement rule holds for the first argument in a
conditional probability, but not for the second argument. Thus, P(A|Dc) is not the same as
1−P(A|D), and essentially the only way to compute P(A|Cc) is by using the definition of
a conditional probability as above.
0
pf3
pf4
pf5

Partial preview of the text

Download Midterm Exam #2 - Probability Theory | MATH 461 and more Exams Probability and Statistics in PDF only on Docsity!

Math 461 B/C, Spring 2009

Midterm Exam 2 Solutions and Comments

  1. Assume A and B are independent events with P (A) = 0.2 and P (B) = 0.3. Let C denote the event that none of the events A and B occurs, and let D be the event that exactly one of the events A and B occurs.

(a) Find P (C). 5 pts Solution. The event C (“none of A and B occurs”) is the intersection of the complements of A and B. Thus,

P (C) = P (AcBc) = P (Ac)P (Bc) = (1 − P (A))(1 − P (B)) = 0. 8 · 0 .7 = 0. 56

(b) Find P (D).

5 pts Solution. The event C (“exactly one of A and B occurs”) is the union of A and B minus the intersection of A and B, i.e., A ∪ B \ AB. Thus,

P (D) = P (A ∪ B \ AB) = P (A ∪ B) − P (A)P (B) = P (A) + P (B) − 2 P (AB) = 0.2 + 0. 3 − 2 · 0. 2 · 0 .3 = 0.38 = 19/ 50

(c) Find P (A | D). 5 pts Solution. The event AD is the event “A occurs, and exactly one of A and B occurs”, which is the same as “A occurs, but B does not occur”, i.e., A \ AB. Thus,

P (A | D) =

P (AD)

P (D)

P (A \ AB)

P (D)

P (A) − P (A)P (B)

P (D)

(d) Find P (A | Dc).

5 pts Solution. The event ADc^ is the event “A occurs, and either 0 or 2 of the events A and B occur”, which is the same as “A occurs and B occurs”, i.e., AB. Thus,

P (A | Dc) =

P (ADc) P (Dc)

P (AB)

1 − P (D)

Comments: As pointed out in class, the complement rule holds for the first argument in a conditional probability, but not for the second argument. Thus, P (A | Dc) is not the same as 1 − P (A | D), and essentially the only way to compute P (A | Cc) is by using the definition of a conditional probability as above.

(e) Are C and D independent? Justify your answer! 5 pts Solution. We need to check whether P (CD) =? P (C)P (D). Since the events C (“none of A and B occurs”) and D (“exactly one of A and B occurs”) are mutually exclusive, we have P (CD) = 0. On the other hand, from above P (C)P (D) = 0. 56 · 0. 38 6 = 0, so P (CD) 6 = P (C)P (D) and C and D are therefore not independent. Comments: Independence of two events A and B is defined by the condition (∗) P (AB) = P (A)P (B) (or the equivalent condition P (A | B) = P (A)). This is the condition that needs to checked in order to determine whether two events are independent. In particular, it is not enough to say that, since C and D are disjoint, they cannot be independent. (In fact, it is possible for two disjoint events to be independent, namely if one of them has probability 0; in this case both sides of (∗) are 0, so, by the definition (∗), the events are independent.)

  1. Three Democrats, D 1 , D 2 , and D 3 , are trying to seek their party’s nomination as the Democratic candidate to run against the Republican R. According to polls the chances of being nominated are 35% for D 1 , 40% for D 2 , and 25% for D 3. Furthermore, the chances of R of winning the election are 40% if he runs against D 1 , 35% if he runs against D 2 , and 60% if he runs against D 3.

(a) Express all given percentage figures as probabilities (ordinary or conditional) involving the events Di (“Democrat i is nominated”) and R (“Republican candidate wins the election”). 5 pts Solution. The given probabilities are:

P (D 1 ) = 0. 35 , P (D 2 ) = 0. 4 , P (D 3 ) = 0. 25 , P (R | D 1 ) = 0. 4 , P (R | D 2 ) = 0. 35 , P (R | D 3 ) = 0. 6.

(b) State the general form of the average rule (involving events A and B 1 ,... , Bn) along with any conditions that have to be satisfied for the rule to be applicable. Then use this rule to compute the probability that R wins the election. 10 pts Solution. The average rule states that

P (A) =

∑^ n

i=

P (A | Bi)P (Bi)

and is valid provided the Bi’s form a partition of the sample space. Applying this rule with A = R and Bi = Di gives

P (R) =

∑^3

i=

P (R | Di)P (Di) = 0. 4 · 0 .35 + 0. 35 · 0 .4 + 0. 6 · 0 .25 = 0. 43.

Thus, the probability that R wins the election is 43%. Comment: The condition that must be satisfied in order for the rule to hold is stated in boldface. For full credit this condition must be stated.

(c) Find the probability that the 100th 3 comes up at the 461st roll.

10 pts Solution. Modeling the rolls as S/F trials with S meaning “get a 3” and occurring with probability p = 1/4, we want the probability that the 100-th success occurs at the 461st trial. By the negative binomial distribution this probability is given by ( 461 − 1 100 − 1

Comments: This type of problem (asking for the probability that the k-th success occurs at the n-th trial) came up several times in class and in the HW problems (e.g., in connection with the baseball world series problem). It important to distinguish the probability asked (“100-th success occurs at 461-st trial”) from that of getting 100 successes in 461 trials. The latter probability is given by the binomial distribution,

100

(1/4)^100 (3/4)^361. Even though this looks superficially similar to the correct answer, it is based on an approach that is completely wrong and misses the main point of the problem; no credit was given for such an answer.

(d) Find the probability that the first 3 occurs at an odd-numbered roll, i.e., one of the rolls 1 , 3 , 5 , 7 ,.... 10 pts Solution. Let X denote the roll at which the first 3 occurs. Then X has geometric distribution with p = 1/4, so P (X = k) = (1 − p)k−^1 p for k = 1, 2 ,.... The probability to compute is therefore

P (X = 1) + P (X = 3) + P (X = 5) + · · · = (1 − p)^0 p + (1 − p)^2 p + (1 − p)^4 p + · · ·

= p 1 − (1 − p)^2

1 − (3/4)^2

by the geometric series formula. Comments: This type of problem was discussed in class on two occasions: in connection with S/F trials and the geometric distribution, and as an illustration of the conditioning technique. The approach via the geometric distribution is the one used used above. This is the most straightforward approach, but it requires summing a geometric series. The approach via con- ditioning is conceptually more difficult, but avoids geometric series. For this approach imagine two players alternating rolling the die; whoever rolls the first 3 wins the game. If we denote by A the event that the player who rolls first wins the game and B(= Ac) the event that the player who rolls second wins the game, then the probability asked is P (A). Conditioning on the result of the first roll, we have

P (A) = P (A | 3 in 1st roll) · P (3 in 1st roll) + P (A | no 3 in 1st roll) · P (no 3 in 1st roll)

= 1 ·

+ P (B) ·

+ (1 − P (A)) ·

P (A).

Solving this equation for P (A), we get P (A) = 4/7, which is the same answer as the one obtained above.

  1. A box contains 100 computer chips, of which exactly 5 are good and the remaining 95 are bad. The following three questions are independent of each other.

(a) For this part suppose you take out chips one at a time without replacement and test each chip until you have found a good one. Let X be the number of chips you have to take out in order to find one that is good. Find the p.m.f. of X. (Be sure to indicate the range (i.e., the set of values of X), along with any formula for the probabilities.) 10 pts Solution. The values of X are 1, 2 ,... , 96. To compute the probabilities P (X = k) for these values, note that X = k means by definition that the kth chip taken out is the first good one, or, equivalently, that the first k − 1 chips are bad, but the kth chip is good. The total number of ways to draw k chips out of 100 without replacement and taking order into account is 100 · 99 · · · (100 − k + 1). The number of such draws in which the first k − 1 chips are among the 95 bad chips and the kth is among the 5 good chips is 95 · 94 · · · (95 − k + 2) · 5. (When k = 1, the product in front of the 5 is an empty product and should be interpreted as 1, so the formula reduces to 5 in this case.) Thus,

p(k) = P (X = k) = 95 · 94 · · · (95 − k + 2) · 5 100 · 99 · · · 100 − k + 1

(k = 1, 2 ,... , 96).

Comments: The point of this problem was to illustrate the different techniques that need to be used depending on whether the sampling is done with replacement (as in (b)) or without replacement (as in (a) and (c)) and on whether order matters (as in (a)) or does not matter (as in (c)), an issue that was discussed in some detail in class. For part (a), one has to use ordered samples in order to be able to take into account the fact that the good chip found must be the last of the k chips checked. An answer like

1

k− 1

k

would represent the probability that among k chips exactly one, but not necessarily the last one, is good.

(b) Answer the same question, now assuming that the sampling is done with replacement. That is, you take out chips one at a time, test each chip, then replace it, until you have found a good one. Let X be the number of chips you have to test in order to find one that is good. Find the p.m.f. of X, again making sure to include the range.

10 pts Solution. If the drawing is with replacement, then after each draw we are back to the exact same situation in which we started out, with 5 out of 100 chips good and 95 out of 100 chips bad to draw from. Thus, in this case the drawings can be modelled by independent S/F trials, with “success” meaning that a good chip has been drawn and occurring with probability 5 /100 = 0.05. The random variable X then represents the trial at which the first success occurs, and therefore has geometric distribution with p = 0.05. Hence, X has values k = 1, 2 ,... with probabilities p(k) = P (X = k) = 0. 95 k−^10. 05 (k = 1, 2 ,... ).

(c) Suppose you know that you have won at least once. What is the probability that you have won at least twice? Use a suitable approximation to answer the question. 10 pts Solution. The probability sought is the conditional probability P (≥ 2 |≥ 1), where “≥ 2” and “≥ 1” denote the events “win at least twice ” and “win at least once”. Using again Poisson approximation, the probability asked is

P (≥ 2 |≥ 1) =

P (≥ 2)

P (≥ 1)

1 − P (0) − P (1)

1 − P (0)

1 − 53 e−^2 /^3 1 − e−^2 /^3 Comments: This part is of the same type as part (b) of Problem 65 from HW 6, which asked for the conditional probability that more than one has a disease given that at least one person is known to have the disease. Part (c) of Problem 65, however, is completely different: In this part, a specific person (Mr. Jones) knows that he has the disease, and he asks what the probability is that at least one other person has the disease. In the lottery context, this would be like asking for the probability that you win at least one other time if you know that you have won at a specific trial (say, at your first lottery game). This is not the situation we have here.

Maximal Total Score: 150 points