Docsity

Probability Problem Set 3 Solutions: Calculating Probabilities and Expectations, Exams of Probability and Statistics

Toggle sidebar
bg1
Probability: Problem Set 3 Solutions
Fall 2009
Instructor: W. D. Gillam
We use the conventions q:= 1 −pand E:= Ω \Ethroughout.
(1) Suppose E , F ⊆Ω are events with P(E) = 1/2, P(F) = 1/3, P(E∪F) = 2/3.
Calculate
(a) P(E∩F)
(b) P(E|F)
(c) P(F|E)
(d) P(E|F).
Are Eand Findependent?
Solution: P(E∩F) = P(E) + P(F)−P(E∪F) = 1/2 + 1/3−2/3 = 1/6,
P(E|F) = P(E∩F)/P (F) = 1/2, P(F|E) = 1/3, and P(E|F) = 1/2. They are
independent.
(2) Show that the hypergeometric distribution converges to the binomial distribution
as m, N → ∞ and p:= m/N remains constant. For simplicity, you may assume
that Nand mare simply scaled by a factor of l, so just prove that, for any
k∈ {0,...,n},
lim
l→∞
µlm
kµlN −lm
n−k
µlN
n=µn
kpkqn−k.
Solution:
lim
l→∞
µlm
kµlN −lm
n−k
µlN
n
= lim
l→∞
(lm)!(l(N−m))!n!(lN −n)!
k!(lm −k)!(n−k)!(l(N−m)−n+k)!(lN )!
Now just take out the binomial coefficient you want and expand the other binomial
coefficients:
=µn
klim
l→∞
k
z}| {
(lm)(lm −1) ···(lm −k+ 1)
n−k
z}| {
(l(N−m))(l(N−m)−1) ···(l(M−n)−n+k+ 1)
(lN )(lN −1) ···(lN −k+ 1)
|{z }
k
(lN −k)(lN −k−1) ···(lN −n+ 1)
| {z }
n−k
=µn
kpkqn−k.
1
pf3
pf4
pf5

Partial preview of the text

Download Probability Problem Set 3 Solutions: Calculating Probabilities and Expectations and more Exams Probability and Statistics in PDF only on Docsity!

Probability: Problem Set 3 Solutions

Fall 2009 Instructor: W. D. Gillam

We use the conventions q := 1 − p and E := Ω \ E throughout.

(1) Suppose E, F ⊆ Ω are events with P (E) = 1/2, P (F ) = 1/3, P (E ∪ F ) = 2/3. Calculate (a) P (E ∩ F ) (b) P (E|F ) (c) P (F |E) (d) P (E|F ). Are E and F independent?

Solution: P (E ∩ F ) = P (E) + P (F ) − P (E ∪ F ) = 1/2 + 1/ 3 − 2 /3 = 1/6, P (E|F ) = P (E ∩ F )/P (F ) = 1/2, P (F |E) = 1/3, and P (E|F ) = 1/2. They are independent.

(2) Show that the hypergeometric distribution converges to the binomial distribution as m, N → ∞ and p := m/N remains constant. For simplicity, you may assume that N and m are simply scaled by a factor of l, so just prove that, for any k ∈ { 0 ,... , n},

lim l→∞

lm k

lN − lm n − k

lN n

n k

pkqn−k.

Solution:

lim l→∞

lm k

lN − lm n − k

lN n

= lim l→∞

(lm)!(l(N − m))!n!(lN − n)! k!(lm − k)!(n − k)!(l(N − m) − n + k)!(lN )! Now just take out the binomial coefficient you want and expand the other binomial coefficients:

n k

lim l→∞

k ︷ ︸︸ ︷ (lm)(lm − 1) · · · (lm − k + 1)

n−k ︷ ︸︸ ︷ (l(N − m))(l(N − m) − 1) · · · (l(M − n) − n + k + 1) (lN )(lN − 1) · · · (lN − k + 1) ︸ ︷︷ ︸ k

(lN − k)(lN − k − 1) · · · (lN − n + 1) ︸ ︷︷ ︸ n−k

=

n k

pkqn−k. 1

(3) Let X be a binomially distibuted random variable with n trials and success prob- ability p. Show that

P (X > 1 |X ≥ 1) =

1 − qn^ − npqn−^1 1 − qn^

Solution:

P (X > 1 |X ≥ 1) =

P (X > 1)

P (X ≥ 1)

1 − P (X = 0) − P (X = 1)

1 − P (X = 0)

1 − qn^ − npqn−^1 1 − qn^

(4) Assume there are only two types of drivers: bad drivers and good drivers. It is known that 7/8 of all drivers are good drivers. The probability that a good driver has an accident in a year is 1/10 while the probability that a bad driver has an accident is 1/3. A car insurance company charges $1000 per year times the probability of having an accident (for example, they charge a good driver $100 a year). The car insurance company is not sure whether a certain new policy holder is a bad driver or a good driver; they only know that he had an accident last year. How much should they charge him for car insurance?

Solution: Tess points out that there is some ambiguity in the way this is worded. When I wrote this, I meant “an accident” to mean “exactly one accident,” but it is certainly reasonable to assume this means “at least one accident”. In fact, for this problem I actually meant for you to assume that the expected number of accidents in a year for a good driver is 1/10 and for a bad driver is 1/3 (I should have said: assume everyone has at most one accident or something...).^1 This is the only way the parenthetical remark about what they charge a good driver makes sense; this obviously conflicts with what I tell you to assume in the next problem, so there should be some leeway about the assumptions you can make when solving this. Let us assume for concreteness that, in this problem, every driver either has one accident or no accidents (i.e. that the probability of having 2 or more accidents is negligible), since we will get to use the fancier assumptions in the next problem. Let B be the event that the “certain new policy holder” is a bad driver, G the event he/she is a good driver, X the number of accidents he had last year (which is either zero or one here...). Then using the assumption X = 1, we compute using

(^1) I guess this is what I meant. In reality I think I just tried to make a variation on a similar problem I found somewhere and I didn’t think it through very much...

Next, by Bayes’ rule, we have:

P (G|X = 3) =

P (G)P (X = 3|G)

P (G)P (X = 3|G) + P (B)P (X = 3|B)

Of course P (B|X = 3) = 1 − P (G|X = 3) = .858. The expected number of accidents for this driver is: E = P (G|X = 3)λG + P (B|X = 3)λB ∼= (.142)(.10536) + (.858)(.40547) ∼=. 363 ,

so they should charge this guy $363 for car insurance. Note that it is quite likely that this guy is a bad driver and his insurance rate reflects this. (6) Suppose that 3% of some large number n of people are infected with a disease. Doctors want to identify these infected individuals by blood testing (assume the blood test is perfect, returning positive iff the blood is infected). Blood samples can be pooled and tested all at once—the resulting pooled sample will yield a positive result iff at least one sample would yield a positive result. They can test the n people one at a time, or they can divide them into groups of k people (you can assume k divides n for simplicity), test the pooled samples, then test each person in a group where the latter test comes back positive. What is the expected number of tests they need to perform using this second method? What value of k minimizes this expected number of tests?

Solution:

It is difficult to make this rigorous, but let us assume that the optimal strategy involves using a k which is small relative to N so that, since p = .03 is also small, the probability of finding two or more infected people (which is O(p^2 )) in a group of k is negligible compared to the probability of finding one or zero infected people. Then the number of tests from the first round of testing will be n/k (one for each group) and the number of tests from the second round of testing will be npk (there are np infected people, and each causes a positive test result for one group of k people; we need k tests for each such group). So we want to minimize n k

  • npk,

which is the same thing as minimizing 1 k

  • pk.

The derivative of this is p − k−^2 , which vanishes when k = p−^1 /^2 (one can check that this is a minimum). In our case, k = (.03)−^1 /^2 = 5.77, so we should use groups of 6 people. (7) Recall from class that we regarded an event E ⊆ Ω with nonzero probability P (E) as a probability space with sample space E and density PE := P (E)−^1 P |E. Given

a random variable X : Ω → R, we may consider the random variable X|E on the probability space E. Show that E(X) = P (E)E(X|E ) + P (E)E(X|E ).

Solution: Just break the sum E(X) =

ω∈Ω X(ω)P^ (ω) into the terms where ω ∈ E and the terms where ω ∈ E. (8) Establish the formula mn/N for the expected value of the hypergeometric dis- tribution with parameters N, m, n (“total balls”, “red balls”, “number of drawn balls”) by using induction on N and the following observation: imagine drawing the n balls one at a time, so that a typical outcome is a sequence ω ∈ {R, B}n (with R for red, B for blue; note there is zero probability of drawing more than m red balls). Consider the event E that the first ball drawn is red and use the previ- ous exercise.^2 Note that X|E is hypergeometric with parameters N − 1 , m, n − 1, so its expected value will be known by induction. X|E on the other hand is not hypergeometrically distributed on the nose, but it differs from a hypergeometric distribution with parameters N − 1 , m − 1 , n − 1 by a linear transformation (whose effect on expected value is known).

Solution: If the first ball drawn is red (i.e. the sequence of draws is in E), then the number Y of red balls drawn on the last n − 1 draws is hypergeometrically distributed with parameters N − 1 , m − 1 , n − 1 hence has expected value

E(Y ) = (n − 1)(m − 1)/(N − 1)

by the induction hypothesis. But we already have one red ball in hand from the first draw, so the total number of red balls drawn on all n draws (still assuming the first ball drawn was red) is X = 1 + Y , hence

E(X|E ) = E(1 + Y )

= 1 + E(Y )

(n − 1)(m − 1) (N − 1)

On the other hand, if the first ball drawn is blue (i.e. the sequence of draws is in E), then the number of red balls drawn one the last n − 1 draws is the same thing as the total number of red balls drawn and this is hypergeometrically distributed with parameters N − 1 , m, n − 1, hence has expected value

E(X|E ) =

(n − 1)m (N − 1)

(^2) Recall from class that I suggested this approach sheds light on why the expected value is the same whether or not the balls are replaced: if a red ball is drawn the probability of drawing a red ball on the next draw decreases, while if a blue ball is drawn, the probability of drawing a red on the next draw increases.