251y0431 4/20/04 ECO251 QBA1 THIRD HOUR EXAM Apr 20, 2004 Name: ___KEY______________ Student Number: _____________________ Class Time (Circle) 1pm 2pm Part I: 10 points. IQs are supposedly Normally distributed with a population mean of 100 and a standard deviation of 16 x ~ N 100 ,16 . Find the following. Make diagrams! 78 .4 100 1. Px 78 .4 P z Pz 1.35 16 P1.35 z 0 Pz 0 .4115 .5 .9115 121 .6 100 78 .4 100 z 2. P78 .4 x 121 .6 P P 1.35 z 1.35 16 16 2P0 z 1.35 2.4115 .8230 84 .2 100 47 .52 100 z 3. P47 .52 x 84 .2 P 16 16 P3.28 z 0.99 P3.28 z 0 P0.99 z 0 .4995 .3389 .1606 (The value for 3.28 comes from the lower part of the Normal table.) 121 .6 100 111 .04 100 z 4. P111 .04 x 121 .6 P P0.69 z 1.35 16 16 P0 z 1.35 P0 z 0.69 .4155 .2459 .1566 5. To get into Mensa you must be in the top 2% 0f the population. What IQ do you need? (Hint: find x.02 ) the 98th percentile. Make a diagram: Show a Normal curve with a mean at zero. Label the area below zero ‘50%.’ By definition z .02 is the point with a probability of 2% above it, which means it must have 98% below it and 98% - 50% = 48% between it and zero. We can try to find a point of the Normal table with P0 z z.02 .4800 . The closest we can come to .4800 is P0 z 2.05 .4798 or P0 z 2.06 .4803 . Either is acceptable, but a good compromise might be z.02 2.054 . So, if you use the formula, x z , your answer could be x.02 100 2.0516 132 .8 , x.02 100 2.054 16 132 .9 100 132 .9 or x.02 100 2.0616 133 .0 . Check: Px 132 .9 P z Pz 2.06 16 Pz 0 P0 z 2.06 .5 .4803 .0197 .02 251y0431 4/20/04 Part II: (20+ points) Do all the following: All questions are 2 points each except as marked. Exam is normed on 50 points including take-home. (Showing your work can give partial credit on some problems! In open-ended questions it is expected. Please indicate clearly what sections of the problem you are answering and what formulas you are using. Neatness counts!) 1. Thirty-six of the staff of 80 teachers at a local intermediate school are certified in CardioPulmonary Resuscitation (CPR). In 180 days of school, about how many days can we expect that the teacher on bus duty will likely be certified in CPR? a) 5 days b) 45 days c) 65 days d) *81 days 36 .45 Explanation: If you want to get technical this is a Binomial distribution with p 80 and n 180 . So np .45180 81 . 2. What type of probability distribution will most likely be used to analyze the number of cars with defective radios in the following problem? From an inventory of 48 new cars being shipped to local dealerships, corporate reports indicate that 12 have defective radios installed. The sales manager of one dealership wants to predict the probability that out of the 8 new cars it just received, when each is tested, no more than 2 of the cars have defective radios. a) binomial distribution. b) Poisson distribution. c) *hypergeometric distribution. d) none of the above. 3. A company has 125 personal computers. The probability that any one of them will require repair on a given day is 0.025. To find the probability that exactly 20 of the computers will require repair on a given day, one will use what type of probability distribution? a) *binomial distribution. b) Poisson distribution. c) hypergeometric distribution. d) none of the above. Explanation: Though the correct answer is above, the binomial distribution can be approximated by the Poisson because np .125 5000 500. 025 4. The probability that a particular type of smoke alarm will function properly and sound an alarm in the presence of smoke is 0.8. You have 2 such alarms in your home and they operate independently. The probability that both sound an alarm in the presence of smoke is __.64____. Explanation: If you want to get technical this is a Binomial distribution with p .8 and n 2. So Px C xn p x q n x and P2 C22 .8 2.2 0 .64. 5. The number of power outages at a nuclear power plant has a Poisson distribution with a mean of 6 outages per year. The probability that there will be at least 1 power outage in a year is _0.9975___. Explanation: Px 1 1 P0 1 .00248 .99752 . 2 251y0431 4/20/04 6. An Undergraduate Study Committee of 6 members at a major university is to be formed from a pool of faculty of 18 men and 6 women. If the committee members are chosen randomly, what is the probability that all of the members will be men? Solution: This is hypergeometric because we are taking a sample of 6 that is more than 5% of a population of 18 + 6 = 24. The formula is Px C nNxM C xM C nN , which gives the probability of x 6 successes in a sample of n 6 taken from a population of N 24 in which there are M 18 successes. 18! C 06 C 618 12! 6! 18 17 16 15 14 13 P6 .1379 , but you could also argue that the 24! 24 23 22 21 20 19 C 624 18! 6! probability of a male on the first try is 18 17 , on the second try is etc. 23 24 7. The quality control manager of Marilyn’s Cookies is inspecting a batch of chocolate chip cookies. When the production process is in control, the average number of chocolate chip parts per cookie is 6.0. what is the probability that any particular cookie being inspected has at least 6.0 chip parts. Solution: Use the Poisson table. Px 6 1 Px 5 1 .44568 .55432 8. (Dummeldinger) The amount of time between pauses on a full-screen edit terminal is uniformly distributed between 0.2 and 0.8 seconds. What is the expected (mean) pause time for the editor? [16] a) 0.4 seconds b) *0.5 seconds c) 0.6 seconds d) 0.8 seconds e) 1.0 seconds f) 1.67 seconds Solution: From the outline for the continuous uniform distribution 1 f x for c x d and f x 0 otherwise. d c d c 2 . In this case c .2 and d .8, so cd and x2 E x 12 2 .2 .8 E x 0.5. 2 9. I am a real estate agent who gets an average of 1 customer every three days ( p 13 ). If I go away for three days, what is the chance that I miss a (one or more)customer? Solution: This was Problem L5a) (geometric distribution) p 13 , so q 2 3 and 3 F x 1 q x . So Px 3 F 3 1 2 3 1 8 27 .70370 . There is another way to do this. You could consider the problem Binomial with p 13 and n 3. Px 0 1 P0 1 C03 p 0 q 3 1 8 27 .70370. 3 251y0431 4/20/04 10. In problem 9, what is the chance that my first customer comes in on the third through the tenth day after I go away? [20] Solution: In the previous problem p 13 , so q 2 3 and F x 1 q x . So P3 x 10 F 10 F 2 1 2 3 1 2 3 2 3 2 3 10 4 9 1 2 3 4 9 .9609815 .4271 8 2 2 10 11. From an inventory of 900 new cars being shipped to local dealerships, corporate reports indicate that one-fourth have defective radios installed. What is the probability that out of the 8 new cars it just received, when each is tested, no more than 2 of the cars have defective radios? Solution: Hey! Doesn’t this sound a lot like problem 2. The difference is that the population of 900 is more than 20 times the sample size of 8. Use the binomial table. p .25 , n 8 and we want Px 2 .67854 . 12. A concert hall has a capacity of 98 people and 100 tickets have been sold. There is a 3% probability that any given ticket-buyer will not use his/her ticket. What is the chance that everyone who shows up will get a seat? Hint: you need the probability that 2 or more people out of n 100 do not come. Since you do not have tables for p .03 , show that a Poisson distribution applies and use it for your answer. (3) n 100 3333 .33 500 np 100 .03 3 . Use the Poisson table with a Solution: p .03 parameter of 3. Px 2 1 Px 1 1 .11915 .88085 . 13. Extra credit: The geometric distribution is a special case of the negative binomial distribution. The probability that the m th success occurs on try x when the probability of success on any one try is p is Px Cmx11 p m q xm . Use this to find a) the probability of the first success on the 5 th try and b) the probability of the second success on the 5 th try. Show that your first result is identical to the geometric distribution. (3) [28] p .1 Solution: a) For the geometric distribution, p .1, q 1 p .9 P( x) q x 1 p , so P(5) q 4 p .9 4.1 .06561. For the negative binomial m 1, so P5 C051 p1q 4 q 4 p .9 4.1 .06561 b) For the negative binomial with p .1 and m 2, P5 C14 p 2 q 3 4.12 .93 .0090496 . 4 251y0431 4/20/04 ECO251 QBA1 THIRD EXAM Apr 20, 2004 TAKE HOME SECTION Name: ________KEY_____________ Student Number: _________________________ Throughout this exam show your work! Please indicate clearly what sections of the problem you are answering and what formulas you are using. Though I do not want typed answers, neatness counts! Part II. Do all the Following (20 Points) Show your work! Before you start find the number that we shall call a . It is the third to last digit of your student number. For example Seymour Butz’s student number is 976500, so a 5 . a can be zero. 1. The table below represents the returns of two stocks. Change the table by adding .01a to .2 and subtracting .01a from .6. (Seymour changes .2 to .25 and .6 to .55.) x 200 y 0 100 100 90 .2 0 .1 50 0 0 0 .6 0 180 0 .1 0 0 a) Ex x (1), b) E y (1), c) x (1), d) y (1), e) xy (1) Returns are Now find the following. measured by E and risk by the coefficient of variation, which is . Now create portfolios by letting w vary from zero to 1 by steps of .1 and saying that the return is R wx 1 wy . (This stuff is done starting on page 65 of the supplement.) Compute the mean, standard deviation and coefficient of variation for each portfolio. (9) What portfolio would you recommend for a person who doesn’t care about risk, for a super cautious individual, for you, for me? Why? Write a useable report on your results. (2) [16] Two versions of the problem are below. Solution 1: Looking below, we find a) E x 40 , b) E y 39, c) x 91 .6515 , d) y 75.1598 and e) xy 660 x 90 y 50 180 Px xPx 200 100 0 100 0.2 0 0 0.1 0 0.6 0 0 0 0.1 0 0 0.2 0.1 0.6 0.1 40 10 x Px 8000 1000 2 yP y y 2 P y 27 2430 0.6 30 1500 0.1 18 3240 1.0 39 7170 10 40 0 1000 10000 0 Px 1 , Ex xPx 40 E x x E y yP y 39 and E y y P y 7170 To summarize y P y 0.3 2 x 2 2 Px 10000 P y 1 , 2 5 251y0431 4/20/04 0100 90 0090 0.1 100 90 0.2200 90 E xy xyPxy 0200 50 0100 50 0.6050 0 100 50 0200 180 0.1100 180 0 180 0 100 180 0 0 900 3600 0 0 0 0 900 0 1800 0 0 xy Covxy Exy x y 900 4039 660 , x2 E x 2 x2 10000 40 2 8400 and y2 E y 2 y2 7170 392 5649 . So that xy 0.660 660 2 8400 5649 .009180 0.09581 . ( x 91.6515, y 75.1598 ) 8400 5649 The correlation and covariance are negative, indicating a tendency of y to fall when x rises. xy x y 2 xy .009180 hardly exists on a zero to one scale, indicating that the relationship is very weak. f) From the posted solution to Exercise 5.10. -- We find that E ( R) wE ( x) 1 wE ( y) and Var ( R) w 2Var ( x) 1 w2 Var ( y) 2w1 wCov( x, y) or R2 w 2 x2 1 w2 y2 2w1 w xy . So if w=.1 E ( R) .1E ( x) .9E ( y) .140 .939 39.1 R2 .12 8400 .92 5649 2.1.9660 84 .00 4575 .69 118 .80 4540 .89 and 67 .3861 R 4540 .89 67 .3861 C 1.72 39 .1 Obviously all the expected returns are almost same. My results for the proportions are below. The largest return comes from buying x alone. The safest package is 40% x and 60% y . Any portfolio that someone would actually buy would be between these. A risk-loving investor would buy only x . A cautious investor would take the safest package. The rest of us would fall between. I might advise younger investors to put 80% or 90% in x , but older investors ought to decrease the part of their portfolios in x down to 50% or 60%. w 1 w 0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1.0 1.0 .9 .8 .7 .6 .5 .4 .3 .2 .1 0 w40 1 w39 E R w 2 8400 + 1 w2 5649 2w1 w660 R2 0 4 8 12 16 20 24 28 32 36 40 39.0 35.1 31.2 27.3 23.4 19.5 15.6 11.7 7.8 3.9 0.0 39.0 39.1 39.2 39.3 39.4 39.5 39.6 39.7 39.8 39.9 40.0 0 84 336 756 1344 2100 3024 4116 5376 6804 8400 5649.00 4575.69 3615.36 2768.01 2033.64 1412.25 903.84 508.41 225.96 56.49 0.00 0.0 -118.8 -211.2 -277.2 -316.8 -330.0 -316.8 -277.2 -211.2 -118.8 0.0 5649.00 4540.89 3740.16 3246.81 3060.84 3182.25 3611.04 4347.21 5390.76 6741.69 8400.00 R 75.1598 67.3861 61.1568 56.9808 55.3249 56.4114 60.0919 65.9334 73.4218 82.1078 91.6515 C 1.93 1.72 1.56 1.45 1.40 1.43 1.52 1.66 1.84 2.06 2.29 6 251y0431 4/20/04 Solution 2: Looking below, we find a) E x 58 , b) E y 42 .6, c) x 101 .173 , d) y 76.5457 and e) xy 49.2 x 90 y 50 180 Px xPx 200 100 0 100 0.29 0 0 0.1 0 0.51 0 0 0 0.1 0 0 0.29 0.1 0.51 0.1 58 x 2 Px 11600 E xy 10 1000 P y 0.39 0.51 25 .5 1275 0.10 18 .0 3240 1.00 42 .6 7674 10 58 0 1000 13600 0 yP y y 2 P y 35 .1 3159 Px 1 , E x xPx 58 E x x Px 13600 P y 1 , E y yP y 42 .6 and E y y P y 7674 To summarize x 2 2 y 2 2 0100 90 0090 0.1 100 90 0.29 200 90 xyPxy 0200 50 0100 50 0.51050 0 100 50 0200 180 0.1100 180 0 180 0 100 180 0 0 900 5220 0 0 0 0 2520 0 1800 0 0 xy Covxy Exy x y 2520 5842.6 49.2 , x2 E x 2 x2 13600 58 2 10236 and y2 E y 2 y2 7674 42.62 5859.24 . So that xy xy x y 49 .2 10236 5859 .24 ( x 101.173, y 76.5457 ) 49 .22 10236 5859 .24 .00004036 0.006353 . The correlation and covariance are positive, indicating a tendency of y to rise when x rises. 2 xy .00004036 hardly exists on a zero to one scale, indicating that the relationship is very weak. f) From the posted solution to Exercise 5.10. -- We find that E ( R) wE ( x) 1 wE ( y) and Var ( R) w 2Var ( x) 1 w2 Var ( y) 2w1 wCov( x, y) or So if w=.1 E ( R) .1E ( x) .9E ( y) .158 .942.6 44.14 , R2 w 2 x2 1 w2 y2 2w1 w xy . R2 .12 10236 .92 5859 .24 2.1.949.2 102 .36 4745 .98 8.86 4857 .20 and 69 .6936 R 4857 .20 69 .6936 . C 1.58 44 .14 7 251y0431 4/20/04 My results for the proportions are below. The largest return comes from buying x alone. The safest package is 40% or 50% x and 60% or 50% y . Any portfolio that someone would actually buy would be between the lowest risk and the highest return. A risk-loving investor would buy only x . A cautious investor would take the safest package. The rest of us would fall between. I might advise younger investors to put 80% or 90% in x , but older investors ought to decrease the part of their portfolios in x down to 60% or 70%. w 1 w 0 1.0 .1 .9 .2 .8 .3 .7 .4 .6 .5 .5 .6 .4 .7 .3 .8 .2 .9 .1 1.0 0 w58 1 w42.6 E R w 2 10236 + 1 w2 5859 .24 2w1 w49.2 R2 R 0.0 5.8 11.6 17.4 23.2 29.0 34.8 40.6 46.4 52.2 58.0 42.60 38.34 34.08 29.82 25.56 21.30 17.04 12.78 8.52 4.26 0.00 42.60 44.14 45.68 47.22 48.76 50.30 51.84 53.38 54.92 56.46 58.00 0.0 102.4 409.4 921.2 1637.8 2559.0 3685.0 5015.6 6551.0 8291.2 10236.0 5859.24 4745.98 3749.91 2871.03 2109.33 1464.81 937.48 527.33 234.37 58.59 0.00 0.000 5859.2 76.546 8.856 4857.2 69.694 15.744 4175.1 64.615 20.664 3812.9 61.749 23.616 3770.7 61.406 24.600 4048.4 63.627 23.616 4646.1 68.162 20.664 5563.6 74.590 15.744 6801.2 82.469 8.856 8358.6 91.425 0.0 10236.0 101.173 C 1.80 1.58 1.41 1.31 1.26 1.26 1.31 1.40 1.50 1.62 1.74 8 251y0431 4/20/04 2. (McClave et al.) You are an inspector for the EPA and want to compare miles per gallon that cars get with those projected in EPA’s mileage guide. On the basis of previous experience, you believe that the percent that are accurate (within 2 mpg) is b per cent, where b 50 5a use 55% if your a is zero. (Since Seymour has a 5 , he uses b 50 5 5 75 per cent.) Tell what distribution you are using and show your work. a. If you believe that b per cent applies to a garage with 100 cars in it, what is the chance that at least one of a sample of 20 deviates from the mpg in the mileage guide. (1) b. If the same percent applies to a large fleet of cars, what is the chance that more than half of a sample of 20 do not deviate from the mpg in the mileage guide? (1) c. If you are sampling from this large fleet, what is the chance that the first car that you find that has mpg as in the mileage guide is the first you look at? The second? The third? (1.5) d. How large a sample would you have to use to be able to answer b) with the Poisson distribution? (1.5) e. (Extra credit) The number of serious accidents in a plant has a Poisson distribution with a mean of 2, or we could say that the average waiting time between accidents is 0.5 months. Show that if a serious accident occurs today the probability that the next serious accident will not occur in the next month can be found by i) finding the Poisson probability of no serious accidents over a month and ii) finding the exponential probability that we will wait more than a month before a serious accident (This cannot possibly be 1 P0 . Why?) and (iii) noting that they are the same. What is the mathematical reason for this? (3) [24] Solution 1: a 0 , b 55 % are accurate, 45% are inaccurate a) Hypergeometric Distribution: N 100 , M np .45100 45 deviate, n 20. Px 1 1 P0 45! 25!20! 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 1 1 1 100 100! 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 C 20 20!80! 1 .000001595 .999998 b) p .55 , n 20 . Px 11 1 Px 10 But if 55% are accurate, 45% are inaccurate and in the sample 11 or more are accurate, which means 10 or fewer are inaccurate. From the Binomial table with p .45 and n 20 , Px 10 .75071 . 55 C 045 C 20 c) On the first try .55, on the second try .45.55 .02475 and on the third try .452 .55 .1114 n n 500 This implies n .45500 225 or larger. We have a choice of using .45 or .55 in this p .45 problem. Since the Poisson distribution is supposed to be used to deal with large counts and small probabilities, .45 is the better choice for p . If you used .55 you should have gotten 275. In any case, to actually do this, we would have to jump to the Normal distribution. I did not ask for this but if n 225 , the d) If 10 .5 101 .25 mean would be np .45225 101 .25 Px 10 P z Pz 9.02 0 101 .25 9 251y0431 4/20/04 e m m x gives probability of x successes in an interval in which the average x! 1 number of successes is m . For the exponential, F x 1 ecx , where the mean time to a success is , c e) For the Poisson, Px 1 e 2 2 0 .5 implies that c 2 . Thus (i) for the Poisson with m 2 P0 e 2 , and (ii) for the c 0! exponential Px 1 1 Px 1 1 1 e 21 e 2 .13534 . Note that Px 1 Px 1 1 P0 because P0 is meaningless in a continuous distribution. Solution 2: a 9 , b 95 % are accurate, 5% are inaccurate. a) Hypergeometric Distribution: N 100 , M np .05100 5 deviate, n 20. Px 1 1 P0 95! 75!20! 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 1 1 1 100! 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 20!80! 1 .31931 .6807 b) p .95 , n 20 . Px 11 1 Px 10 But if 95% are accurate, 5% are inaccurate and in the sample 11 or more are accurate, which means 10 or fewer are inaccurate. . From the Binomial table with p .05 and n 20 , Px 10 1.00000 . 95 C 05 C 20 100 C 20 c) On the first try .05, on the second try .95.50 .0475 and on the third try .952 .05 .0451 n n 500 This implies n .05500 25 or larger. We have a choice of using .05 or .95 in this p .05 problem. Since the Poisson distribution is supposed to be used to deal with large counts and small probabilities, .05 is the better choice for p . If you used .95 you should have gotten 475. I did not ask for this but if n 25 , the mean would be np .0525 1.25. We do not have a Poisson table for a parameter of 1.25, but Px 10 1.00000 for parameters of both 1.2 and 1.3, so it should also be true for 1.25. e) Same as above. d) If 10