Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

12
Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

Transcript of Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

Page 1: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

Homework 4

Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

Page 2: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.38 Urn A has 5 white and 7 black balls. Urn B has 3 white and 12 black balls. We flip a fair coin. If the outcome is heads, then a ball from urn A is selected, whereas if the outcome is tails, then a ball from urn B is selected. Suppose that a white ball is selected. What is the probability that the coin landed tails?

• Urn A: 5 w, 7 b• Urn B: 3 w, 12 b• H: a ball from urn A is selected• T: a ball from urn B is selected• W: white ball selected• P(T|W)?• P(T|W) = P(TW)/P(W) = P(WT)/(P(WT)+P(WH))

=P(W|T)P(T) /( P(W|T)P(T) + P(W|H)P(H))• P(T|W) = 3/15*.5/(3/15*.5+5/12*.5) = 0.324

2

Page 3: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.46 In any given year, a male automobile policyholder will make a claim with probability p and a female policyholder will make a claim with probability q, where p q. The fraction of the policyholders that are male is α, 0 < α < 1. A policyholder is randomly chosen. If Ai denotes the event that this policyholder will make a claim in year i, show that P(A2|A1) > P(A1) Give an intuitive explanation of why the preceding inequality is true.

• p: probability male policyholder makes a claim• q: probability female policyholder makes a claim• : fraction of male policyholder• Ai: policyholder will make a claim in year i

• Show P(A2|A1) > P(A1)3

Page 4: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• P(A2|A1) > P(A1)

• P(A2A1)/P(A1) > P(A1)

• P(A2A1) > P(A1)2

• P(A2A1) - P(A1)2 > 0

• P(A1) = P(A1|M)P(M) + P(A1|F)P(F)

= p + q(1 - )• P(A2A1) = P(A2A1|M)P(M) + P(A2A1|F)P(F)

= (p2 + q2(1-)) P(A2A1) - P(A1)2 =

= (p2 + q2(1-)) – (p + q(1 - ))2

= p2 + q2(1-) - p22 - q2(1 - )2 - 2pq(1 - ) = p2(1 - ) + q2(1 - ) - 2pq(1 - ) = (1 - )(p2 + q2

- 2pq)

= (1 - )(p - q)2 > 0

Page 5: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.50 Suppose that an insurance company classifies people into one of three classes: good risks, average risks, and bad risks. The company’s records indicate that the probabilities that good-, average-, and bad-risk persons will be involved in an accident over a 1-year span are, respectively, .05, .15, and .30. If 20 percent of the population is a good risk, 50 percent an average risk, and 30 percent a bad risk, what proportion of people have accidents in a fixed year? If a policyholder had no accidents in 1997, what is the probability that he or she is a good or average risk?

• G: good risks; A: average risks; B: bad risks.• E: accident in a year• P(E|G) = .05; P(E|A) = .15; P(E|B) = .3.• P(G)=.2, P(A) = .5, P(B) = .3.• P(E)?• P(GA|Ec)?• P(E) = P(EGEAEB) = P(EG) + P(EA) + P(EB) = P(E|G)P(G) + P(E|A)P(A) + P(E|B)P(B) = .05*.2 + .15*.5 + .3 * .3 = 0.01 + 0.075 + 0.09 = 0.175• P(GA|Ec) = P(Bc|Ec) = 1- P(B|Ec)

= 1 - P(BEc)/P(Ec) = 1 - P(Ec|B)P(B) / P(Ec) = 1 - (1-P(E|B))P(B)/ (1-P(E)) = 1 - 0.7*0.3 /0.825 = 0.745

5

Page 6: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.55 In a class, there are 4 freshman boys, 6 freshman girls, and 6 sophomore boys. How many sophomore girls must be present if sex and class are to be independent when a student is selected at random?

• FB: 4, FG: 6, SB: 6• How many SG so that sex and class are independent?• For sex and class to be independent, we should have P(Sex|Class) =

P(Sex), which is the same as P(Girl|Sophomore) = P(Girl) and P(Boy|Sophomore) = P(Boy) and P(Girl|freshman) = P(Girl) and P(Boy|freshman) = P(Boy)– The same as P(Girl|Sophomore) = P(Girl)– If E and F are independent, so are E and Fc

P(Girl|Sophomore) = P(G,S)/P(S) = x/(6+x) P(Girl) = (6+x)/(4+6+6+x) x/(6+x) = (6+x)/(4+6+6+x) x=9

6

Page 7: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.58 Suppose that we want to generate the outcome of the flip of a fair coin, but that all we have at our disposal is a biased coin which lands on heads with some unknown probability p that need not be equal to 1/2. Consider the following procedure for accomplishing our task:

1. Flip the coin. 2. Flip the coin again. 3. If both flips land on heads or both land on tails, return to step 1. 4. Let the result of the last flip be the result of the experiment.• (a) Show that the result is equally likely to be either heads or tails.• (b) Could we use a simpler procedure that continues to flip the

coin until the last two flips are different and then lets the result be the outcome of the final flip?

• (a) The sample space S has only two elements: {(H,T), (T,H)}. P(H,T) = p(1-p) and P(T,H) = (1-p)p. P(H,T) = P(T,H) = 1/2– Heads and tails have equal probability to be the last flip

7

Page 8: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

(b) Probability of tail P(T) = P(HT) + P(HHT) + … =p(1-p) + p2(1-p) + … = (1-p)(p + p2 + …) = (1-p)(1 + p + p2 + … -1) = (1-p)(1/(1-p) -1) = 1-(1-p) = p

Probability of head P(H) can be computed similarly, which equals to (1-p).

0

1Geometric series :

1k

k

rr

Page 9: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.61 Genes relating to albinism are denoted by A and a. Only those people who receive the a gene from both parents will be albino. Persons having the gene pair A, a are normal in appearance and, because they can pass on the trait to their offspring, are called carriers. Suppose that a normal couple has two children, exactly one of whom is an albino. Suppose that the nonalbino child marries with a person who is known to be a carrier for albinism.

• (a) What is the probability that their first offspring is an albino?• (b) What is the conditional probability that their second offspring is an albino given

that their firstborn is not?• Albino: aa• Carrier: Aa• Normal couple has two children, one of them is albino.

– Parents are Aa.• The other child can be AA with probability 1/3 or Aa with probability 2/3 since he/she

can be AA, Aa, or aA.• (a) parents: nonalbino (1/3 AA, 2/3 Aa) and Aa• P(first offspring being albino) = P(albino|nonalbino is AA)P(nonalbino is AA) +

P(albino|nonalbino is Aa)P(nonalbino is Aa) = 0* 1/3 + 1/4*2/3 = 1/6.• (b) P(second albino (s) | first is not (f-)) = P(s,f-)/P(f-)

= (P(s,f-|AA)P(AA) + P(s,f-|Aa)P(Aa)) / P(f-) = (0 + 1/4*3/4*2/3)/(5/6) = 3/20

9

Page 10: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.64 A true–false question is to be posed to a husband-and- wife team on a quiz show. Both the husband and the wife will independently give the correct answer with probability p. Which of the following is a better strategy for the couple?– (a) Choose one of them and let that person answer the

question.– (b) Have them both consider the question, and then either

give the common answer if they agree or, if they disagree, flip a coin to determine which answer to give.

• (a) P(win) is clearly p.• (b) P(win) = P(win | both guessed right) P(both guessed

right) + P(win | one guessed right and one wrong) + P(win | both guessed wrong) = p2 + 1/2*2p(1-p) + 0 = p

10

Page 11: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.69 A certain organism possesses a pair of each of 5 different genes (which we will designate by the first 5 letters of the English alphabet). Each gene appears in 2 forms (which we designate by lowercase and capital letters). The capital letter will be assumed to be the dominant gene, in the sense that if an organism possesses the gene pair xX, then it will outwardly have the appearance of the X gene. For instance, if X stands for brown eyes and x for blue eyes, then an individual having either gene pair XX or xX will have brown eyes, whereas one having gene pair xx will have blue eyes. The characteristic appearance of an organism is called its phenotype, whereas its genetic constitution is called its genotype. (Thus, 2 organisms with respective genotypes aA, bB, cc, dD, ee and AA, BB, cc, DD, ee would have different genotypes but the same phenotype.) In a mating between 2 organisms, each one contributes, at random, one of its gene pairs of each type. The 5 contributions of an organism (one of each of the 5 types) are assumed to be independent and are also independent of the contributions of the organism’s mate. In a mating between organisms having genotypes aA, bB, cC, dD, eE and aa, bB, cc, Dd, ee what is the probability that the progeny will (i) phenotypically and (ii) genotypically resemble

• (a) the first parent? (b) the second parent? (c) either parent? (d) neither parent?• Parents genetypes:• aA, bB, cC, dD, eE• aa, bB, cc, Dd, ee

• (a) Phenotypically resemble the first parent: aA, bB(BB), cC, dD(DD), eE: 1/2*3/4*1/2*3/4*1/2 = 9/128; Genotypically resemble the first parent: aA, bB, cC, dD, eE

1/2*1/2*1/2*1/2*1/2 = 1/32.• (b) Phenotypically: 1/2*3/4*1/2*3/4*1/2 = 9/128; Genotypically: 1/2*1/2*1/2*1/2*1/2 = 1/32.• (c) Phenotypically: The two events are mutually exclusive: 9/128+9/128 = 18/128; Genotypically: the

two events are mutually exclusive 1/32 + 1/32 = 1/16.• (d) Phenotypically: 1- 18/128 = 110/128; Genotypically: 1-1/16 = 15/16.

11

Page 12: Homework 4 Chapter 3 Problems: 38, 46, 50, 54, 55, 58, 61, 64, 69, 74.

• 3.74 A and B alternate rolling a pair of dice, stopping either when A rolls the sum 9 or when B rolls the sum 6. Assuming that A rolls first, find the probability that the final roll is made by A.

• P(sum = 9) = 4/36 (four outcomes out of 36: (3,6),(4,5),(5,4),(6,3))

• P(sum = 6) = 5/36 (five outcomes out of 36: (1,5),(2,4),(3,3),(4,2),(5,1))

• P(A win) = P(A win|A = 9) P(A=9) + P(A win) | A9,B 6) P(A9,B 6) + P(A win | B=6) P(B=6)

= 1*4/36 + P(A win)(1-4/36-5/36) + 0P(A win) = 1/9 + 3/4P(A win) P(A win) = 4/9

12