251solnL1 3/29/06 (Open this document in 'Page Layout' view!) L. Discrete Distributions. 1. Binomial Distribution. L1. Text 5.18-5.21, 5.23, 5.27[5.14a-d, 5.15, 5.16, 5.19, 5.20, 5.21] (5.15, 5.16, 5.18*, 5.19, 5.20). 2. Geometric Distribution. L2-L5. 3. Poisson Distribution. L6-L8. Text 5.30, 5.31, 5.33, 5.34, 5.35, 5.38[5.29 – 5.30, 5.34 - 5.37] (5.22 - 5.23, 5.26-5.29). 4. Hypergeometric Distribution. Text 5.44-5.45, 5.49-5.50 [5.22 – 5.23, 5.27 – 5.28] (5.30, 5.31, 5.35, 5.36). L9, L10. 5. Review. Note that problem L11 is a review of the continuous uniform distribution. This document includes Binomial and Geometric distribution problems. Binomial Distribution Problems Exercise 5.18 [Exercise 5.14a-c in 8th and 9th]: Do the following . a) Px 0 when n 4 and p .12 . Solution: If we use the formula Px C xn p x q n x and recall that C xn n! and q 1 p , then P0 C 04 p 0 q 4 11.88 4 .5997 . n x !x! b) Px 9 when n 10 and p .40 . Solution: If we use the binomial table, P9 Px 9 Px 8 .99990 .99832 .0016 . c) Px 8 when n 10 and p .50 . Solution: If we use the binomial table, P8 Px 8 Px 7 .98926 .94531 .04395 d) Px 5 when n 6 and p .83 . Solution: If we use the formula Px C xn p x q n x , P5 C56 p 5 q1 6! .83 5 .17 1 6.39390 .17 .4018 5! 1! e) (in 9th edition) Px 9 when n 10 and p .90 . Solution: If we use the binomial table, P9 Px 9 Px 8 . But we are in trouble because we do not have a table for p .90 . But 9 successes out of 10 tries means one failure out of 10 tries and the probability of failure is p .10 . P1 Px 1 Px 0 .73610 .34868 .3874 . Since I don’t have an answer book for this problem, I will also do P9 C910 p 9 q1 10! .99 .11 10 .38742 .1 .3874 9! 1! Exercise 5.19 [Not in 8th and 9th]: If n 5 and p .4 find the following. a) Px 4 . Solution: P4 Px 4 Px 3 .98976 .91296 .0768 a) Px 3 . Solution: Px 3 .9130 a) Px 2 . Solution: Px 2 Px 1 .3370 a) Px 1 . Solution: Px 1 1 Px 1 1 .33696 .6630 Problem L1: Assume that x has the binomial distribution with 10 tries and that the probability of success on any one try is 25%. Find the following: a. P4 b. E x , Var x c. The probability that x is at least 1, Px 1 . d. If the probability of success on any one try is .75, and n 10 , what is P6 ?. 251solnL1 3/29/06 (Open this document in 'Page Layout' view!) e. Using the cumulative binomial table find the following: (i) Px 5 when n 10 , p .2 (ii) Px 5 when n 10 , p .2 (iii) P2 x 8 when n 10 , p .4 (iv) P3 x 9 when n 10 , p .7 f. If ten people are selected at random from a large (continuous) population what is the probability that at least one makes more than the median income? g. In f., what is the probability that between two and eight make more than the median income? h. What is the probability that all make more than the median income.? i. For a binomial distribution with n 10 , p .4 , find the smallest symmetrical region about the mean that contains (at least) 95% of the probability. Solution: If p .25 and n 10 , we can write x ~ B.25,10 a) If we use the formula Px C xn p x q n x and recall that C xn P4 C 410 p 4 q 6 n! and q 1 p , then n x !x! 10! .25 4 .75 6 10 9 8 7 .00391 .17798 .1460 . You could also use the table: 6! 4! 4 3 2 1 P4 Px 4 Px 3 .92187 .77588 .14599 . b) The formula for the mean is Ex np , Varx npq (where q 1 p ; in this case 1 .25 .75 ), so .2510 =2.5, 2 npq 2.5.75 1.875 . c) The probability that x is at least 1, Px 1 is the probability that x is any number equal to or above 1 and is thus the sum of P1 P2 P3 P10 . But, remember, that 'at least one' is the complement of 'none', so Px 1 1 P0 1 C 010 .25 0 .75 10 1 .05631 .94369 . 10! .75 6 .25 4 .1460 .This is the same as the answer for a) 4! 6! and could be gotten from the table the same way. To see why, read on! e) (i) Px 5 when n 10 , p .2 x ~ B.2,10 . Px 5 Px 5 Px 4 .99363 .96721 .02642 . (ii) Px 5 when n 10 , p .2 . According to the table, this is .99363. (iii) P2 x 8 when n 10 , p .4 The outline says that for any discrete distribution (with integer values for x ) Px1 x x 2 F x 2 F x1 1 Px x 2 Px x1 1 . So P2 x 8 Px 8 Px 1 .99832 .04636 .95196 . (iv) P3 x 9 when n 10 , p .7 . You cannot find this on the table, because you can use the probability of failure, .3, instead of .7. In 10 tries, 3 successes correspond to 7 failures and 9 successes, correspond to 1 failure. So find P1 x 7 when n 10 , p .3 . P1 x 7 Px 7 Px 0 .99841 .02825 .97016 . f) If people are selected from a relatively large population, the probability that each individual has an income above the median is .5. Since there are 10 people, x ~ B.5,10 . Px 1 1 P0 1 .00098 .99902 g) x ~ B.5,10 again. P2 x 8 Px 8 Px 2 .98926 .01074 97852 . h) x ~ B.5,10 again. P10 Px 10 Px 9 1 .99902 .00098 . i) For x ~ B.4,10 we are supposed to find the smallest symmetrical region about the mean that contains (at least) 95% of the probability. The particular intervals that we must include, should have equal probabilities above and below them. Since this means that 5% must be split between these two areas, we want x1 so that Px x1 .025 and Px x 2 .025 For 1, Px 1 Px 0 .00605 and d) p .75 and n 10 . P6 C610 p 6 q 4 251solnL1 3/29/06 (Open this document in 'Page Layout' view!) Px 2 Px 1 .04636 . On the high side, if we try Px 9 1 Px 9 1 .99990 .00010 , Px 8 1 Px 8 1 .99832 .00168 , Px 7 1 Px 7 1 .98771 .01229 , Px 6 1 Px 6 1 .94524 .05476 . So the lowest number we can use is 1 and the highest number we can use is 7. The interval we have found is hardly symmetrical, but it is the best we can do. Exercise 5.20 [Exercise 5.15 in 8th and 9th]: Find the mean and standard deviation if x has the binomial distribution and a) n 4 and p .10 , b) n 4 and p .40 , c) n 5 and p .80 and d) n 3 and p .50. Solution: According to the outline, for the binomial distribution Px C xn p x q n x , where p is between zero and one and is the probability of success on an individual try, q 1 p is the probability of failure and n is the number of tries. The formula for the mean is Ex np .The variance is Varx npq . a) n 4 and p .10. So 4.10 0.40 , q 1 .10 .90 , 2 npq .40.90 0.36 and 0.36 0.60 . b) n 4 and p .40. So 4.40 1.60 , q 1 .40 .60 , 2 npq 1.60.60 0.96 and 0.96 0.9798 . c) n 5 and p .80. So 5.80 4.00 , q 1 .80 .20 , 2 npq 4.00.20 0.80 and 0.80 0.8944. d) n 3 and p .50. So 3.50 1.50 , q 1 .50 .50 , 2 npq 1.50.50 0.75 and 0.75 0.8660 Exercise 5.21 [Exercise 5.16 in 8th and 9th]: Assume that there is a 50% chance of a stock yielding an increased closing price on any given day. What is the probability of an increase in 5 consecutive days? Solution: This answer is copied from the Instructor’s Solutions Manual and is unchecked. Given p = 0.5 and n = 5, P(X = 5) = 0.0312. You should be able to get this by looking up Px 5 and Px 4 on the binomial table and subtracting them. (Exercise 5.18 In 8th edition only): Suppose that a random sample of web surfers is selected and ask if they remember a specific internet banner. Use the binomial model and assume that p 0.4. a. What is the expected value or mean of this binomial distribution? b. What is the standard deviation of this binomial distribution? c. What is the probability that none of the surfers will remember the banner ad? d. What is the probability that exactly one of the surfers will remember the banner ad? e. What is the probability that exactly two of the surfers will remember the banner ad? f. What is the probability that three or more of the surfers will remember the banner ad? Solution: n 5 and p .4. q 1 p .6. Px C xn p x q n x a) np 5.40 2.00. b) 2 npq 2.00.60 1.20 . 1.20 1.0954. c) P0 C 05 p 0 q 5 5! .40 .65 .07776 . Better, if we use Table 15, the Cumulative Binomial 5!0! Distribution, F 0 Px 0 .07776 . d ) P1 C15 p 1 q 4 5! .41 .64 5 .4.1296 .25920 . Better, if we use the Cumulative 4!1! 1 Binomial Table , Px 1 Px 1 Px 0 .33696 .07776 .2590 . 251solnL1 3/29/06 (Open this document in 'Page Layout' view!) 5! .42 .63 5 4 .16 .216 .34560 . Better, if we use the Cumulative 3!2! 2 1 Binomial Table , Px 2 Px 2 Px 1 .68256 .33696 .34560 . e) P2 C 25 p 2 q 3 f) To find Px 3 , compute P3 P4 . Better, using the table, find Px 3 1 Px 2 1 .68256 .31744 . [Exercise 5.19 in 8th and 9th edition only] A telephone company has a 70% chance of making a same day repair. For the first five repair requests find: a) the probability that all five repairs will be made on the same day; b) the probability that at least 3 repairs will be made on the same day; c) the probability that fewer than two repairs will be made on the same day. d) In a) – c) what assumptions are required? e) what are the mean and standard deviation of the distribution? f) Repeat a) – c) and e) with an 80% probability and e) compare the results with a) – c) and e). Solution: This is a binomial problem with a sample size of 5 and a probability of success of .7. 5! .7 5 .30 1.16807 1 .16807 . To a) All five repaired on the same day: P5 C 55 p 5 q 0 0!5! do this using the table, note that we cannot use p .7 , because the table only goes up to 5. But, if we want 5 successes out of 5 tries, we want 0 failures. The probability of failure is q 1 p 1 .7 .3. Look up Px 0 on the Cumulative Binomial Table with n 5 and p .3 , and find .16807. b) At least 3 repaired on the same day: We want Px 3 , actually, the probability of between 3 and 5 successes. But, if we use the .3 column of the table again, we need to know that 3 successes correspond to 2 failures and that 5 successes correspond to 0 failures. We look up Px 2 on the Cumulative Binomial Table with n 5 and p .3 , and find .83692. c) Fewer than 2 repaired on same day: We want Px 2 Px 1 , actually between 0 and one successes. But, if we use the .3 column of the table again, we need to know that 1 success corresponds to 4 failures and that 0 successes corresponds to 5 failures. We look up Px 4 1 Px 3 1 .96922 .03078 . Instead of answering the above, the Instructor’s Solutions Manual provides the following Excel table. 251solnL1 3/29/06 (Open this document in 'Page Layout' view!) d) According to the Instructor’s Solutions Manual there are two assumptions: (1) Independence of the repairs, (2) Only two outcomes - repair accomplished same day or repair not accomplished same day. e) np 5.7 3.50, 2 npq 3.50.30 1.05, . 1.05 1.0247. f) Now p .8 and n 5. Again, we must think in terms of failures instead of successes. The probability of failure is now .2. (a) 5 successes corresponds to 0 failures and, on the Cumulative Binomial Table with n 5 and p .2 , we find Px 0 .32768 . (b) We want Px 3 , actually, the probability of between 3 and 5 successes. But, if we use the .2 column of the table again, we need to know that 3 successes correspond to 2 failures and that 5 successes correspond to 0 failures. We look up Px 2 on the Cumulative Binomial Table with n 5 and p .2 , and find .94208. (c) We want Px 2 Px 1 , actually between 0 and one successes. But, if we use the .2 column of the table again, we need to know that 1 success corresponds to 4 failures and that 0 successes corresponds to 5 failures. We look up Px 4 1 Px 3 1 .99328 .00672 . (e) np 5.8 4.00, 2 npq 4.00.20 0.80, . 0.80 0.8944 g) According to the Instructor’s Solutions Manual, “The larger p is, the more likely it is that troubles reported on a given day will be repaired on the same day, and the less likely it is that troubles reported on a given day will not be repaired on the same day.” Exercise 5.23 [Exercise 5.20 in 8th and 9th]: A student takes a multiple choice exam with 5 questions, each with four answers a, b, c and d. For each question she picks an answer randomly so that each answer has an equal chance .25 of being picked. Find the following probabilities: a) five questions correct; b) at least four questions correct; c) no questions correct and d) no more than two questions correct. Solution: This is a binomial problem with a sample size of 5 and a probability of success of .25. All answers are taken from the binomial table. (a) P(X = 5) = Px 5 Px 4 1 .99902 = 0.0010 (b) (c) (d) P(X 4) = 1 Px 3 1 .98437 .0156 P(X = 0) = Px 0 = 0.2373 P(X 2) = 0.8965 Exercise 5.27 [Exercise 5.21 in 8th and 9th]: On one day 20 customers place orders. Each has a 5% probability of exceeding their credit limit. Find a) the mean and standard deviation of the number of customers exceeding the limit, b) the probability that no customers will exceed the credit limit c) the probability that one customer exceeds the credit limit and d) the probability that at least two will exceed the limit. Solution: This is a binomial problem with a sample size of 5 and a probability of success of .05. All answers are copied from the Instructor’s Solutions Manual and are unchecked. If you cannot get them, please tell me. (a) mean = 1 standard deviation = 0.9747 (b) P(X = 0) = 0.3585 (c) P(X = 1) = 0.3774 (d) P(X 2) = 0.2642 251solnL1 3/29/06 (Open this document in 'Page Layout' view!) Geometric Distribution Problems Problem L2:.a. If p .8 , what is the chance of the first success on the 9th try? The 5th? The first? b. If p .8 , what is the mean number of tries to a success? The variance? c. What is the probability that the first success occurs between the 3 rd and the 7th try? Solution: The outline gives the formula: P( x) q x1 p , which tells us the probability that the first success occurs on try x . The cumulative distribution, which is used more frequently is F x 1 q x . The mean is : q 1 . and the variance is 2 2 . p p a) If p .8 P(9) q 8 p .28 .8 .000002 , P(5) q 4 p .24 .8 .00128 and P(1) q 0 p .20 .8 .8 (Surprise?) b) The mean is : q 1 1 .2 0.3125 . 1.25 . and the variance is 2 2 p .8 p .82 0.55902 c) P3 x 7 Px 7 Px 2 F 7 F 2 The cumulative distribution formula is F x 1 q x , so Px 7 Px 2 1 q 7 1 q 2 q 2 q 7 .22 .27 .0400000 .0000128 .03999 . Problem L3: a. If a bunch of fair coins are spilled and I pick them up randomly, what is the chance of the first head on try 1? Try 2? Try 3? If x is the first success, what is the probability that x is at least 3? b. On the average, how many coins will I have to pick up to get a head? Solution: a) P( x) q x1 p and p .5 P(1) q 0 p .50 .5 .5 , P(2) q 1 p .51 .5 .25 , P(3) q 2 p .52 .5 .125 . In order to have our first success on the 3 rd or later try, we must have failures on the 1st and 2nd try. P( x 3) q 2 .52 .25 , but remember that F x 1 q x so P( x 3) 1 P( x 2) 1 F 2 1 1 q 2 q 2 .52 .25 . b) 1 1 2 p .5 Problem L4: a. If p = .01, Use the Chebyshef inequality to give a range in which three quarters of first successes must lie. b. Try confirming this using the Cumulative probability for this distribution. Solution: According to the inequality, if we define a 'tail' of the distribution as those points more than k 2 standard deviations from the mean, then the proportion of points in the tails will be at most 1 k 2 1 4 and the proportion within 2 standard deviations of the mean will be at least 3 4 . We already know that q 1 1 .99 9900 . So 9900 99.4987 . The lower tail 100 and the variance is 2 2 p .01 p .012 ought to begin at 2 100 299.4987 99 , but this is impossible since x can't be below 1. The upper tail ought to begin at 2 100 299.4987 299 So at least three-quarters of first successes will occur between the first and the 299th try. b) F x 1 q x , so Px 299 F 299 1 .01299 1. Actually if we set F x 1 .99 x .75 , then .99 x .25 . A little fooling around with powers of .99 indicates that x is about 137. 251solnL1 3/29/06 (Open this document in 'Page Layout' view!) Problem L5: I am a real estate agent who gets an average of 1 customer every three days. a. If I go away for three days, what is the chance that I miss a customer? b. If I sit and wait for two days, what is the chance that the first customer doesn't come in until the third day? a) p 1 , so q 2 3 and F x 1 q x . So Px 3 F 3 1 2 3 1 8 27 .70370 . 3 3 b) P( x) q x1 p , P(3) q 2 p 2 3 3 4 27 .14815 . 2 1