











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Instructor: Bjørn Kjos-Hanssen
Disclaimer: It is essential to write legibly and show your work. If your work is absent or illegible, and at the same time your answer is not perfectly correct, then no partial credit can be awarded. Completely correct answers which are given without justification may receive little or no credit. During this exam, you are not permitted to use notes, or books, nor to collaborate with others. You are allowed to use a calculator.
Problem Score 1 / 2 / 3 / 4 / 5 / 6 / 7 / 8 / Total / times 100/75= /
Score:
Problem 1. [5 points] Suppose a store sells boxes of cream puffs. Each box contains 12 cream puffs, and each cream puff is either chocolate cream or vanilla cream. The number of chocolate cream puffs in a box has a mean of 4 and a standard deviation of 2.6. If you buy 7 boxes of cream puffs, what is the standard deviation of the number of vanilla cream puffs that you will get? You may assume that the numbers of vanilla cream puffs in different boxes are independent of one another. Solution: Since the number of vanilla is a constant minus the number of chocolate, we are just looking for the SD of the number of chocolates for n = 7, where σ = 2.6 and μ = 4. This is σ
n = 2. 6
Score:
Problem 3. Suppose that houses in La Jolla area are sold at a rate of 1.02 per day, and that on average, 13.3% of the houses sold are built in the first half of 1963 or earlier (we will call such houses “old” ). Real estate agent Sally has noticed that the numbers of houses, old and new, and the numbers of buyers and sellers in the market, are very large compared to the number of sales that typically occur in a month. Therefore she adopts the following mathematical modeling assumptions: Ages of houses sold are independent of one another, and the number of sales, and the time until the next sale, are independent across time periods. Based on these assumptions answer (a)-(d) below.
a) [3 points] Find the probability that exactly 1 of the next 7 houses sold will be “old”.
b) [3 points] Find the probability that exactly 8 houses will be sold in the next (7-day) week.
c) [2 points] What is the probability that it will be at least a 7-day week (from now) before the next house is sold?
d) [2 points] Suppose no houses are sold in April. What is the probability that no house will be sold in the first 7-day week of May?
Solution: (a) Binomial random variable X with n = 7 and p = .133. Then
p(1 − p)^6 = 7(.133)(.867)^6 =. 395.
(b) Let now X be Poisson with λ = 7 · (1.02) = 7.14 being the rate at which houses are sold per week. Then P(X = 8) = e−λλ^8 /8! = 0. 1328.
(c) Let now X be an exponential random variable with λ = 7.14. Then
0
λe−λxdx = 1 − (1 − e−λ) = e−(7.14)^ = 0.00079 = .08%
(d) Same as (c), .08%, by the memoryless property of the exponential distribution.
Score:
Problem 4. Suppose you read in the newspaper that 65% of men with mustaches (facial hair above the lips) also have a beard (facial hair below the lips). To test your theory, you somehow draw a simple random sample of 10 men having a mustache. As it turns out, you observe that none (zero) of these 10 men also has a beard.
a) [6 points] What can you conclude about whether or not the newspaper article you read was accurate? Make sure to state your hypotheses clearly, show how you calculated your test statistic, give the p-value (or an interval containing the p-value, if that is the best you can do with your tables), and write a clear conclusion. You may use a significance level of .05. Let p 0 = 65%, let p be the overall mean proportion among men with mustaches of those that also have a beard. We let the null hypothesis H 0 state that p = p 0 and the alternative hypothesis HA state that p 6 = p 0. (It is tempting but slightly wrong to let HA be p < p 0 , because initially the number p 0 = 65% was not stated as being high or low.) We can do a one-proportion z-test.
p − p 0 √ p 0 (1 − p 0 )/n
According to the Table Z, the p-value is 0. 0000 +, i.e., less than 0.0001 = 10−^4. [Note that if we used a binomial rather than normal random variable, the probability would be (.35)^10 =. 28 · 10 −^4 so we are probably on the right track.]
b) [2 points] Explain what a Type I error would mean in the context of this problem. A Type I error would mean rejecting the null hypothesis even though it is true, in other words, concluding that the newspaper article was wrong even though actually it was right.
c) [2 points] Explain what the power of the test means in the context of this problem. The power of the test is the probability that we will reject the null hypothesis, in the case where the null hypothesis is false. That is, the probability in the case where the newspaper article is wrong, that we will be able to determine that using our test. [This probability will depend on what p actually is; if it is very close to p 0 the power is smaller for a fixed n.]
Score:
(h) Find s = se.
At this point we have the regression line
yˆ =
x −
This gives
se =
n − 2
Note the residuals are +1/3 and − 1 /6 and − 1 /6, and this is slightly bigger in absolute value.
(i) Find the standard error of the slope estimate, SE(b 1 ). This is se sx
n − 1
(j) Find the value of the random variable T.
T = b 1 /SE(b 1 ) = 2
(k) Find a 95% confidence interval for the slope β 1.
The number of df is n − 2 = 3 − 2 = 1. The margin of error is
t∗ n− 2 SE(b 1 ) = 12. 706 /(
so the confidence interval is
b 1 ± ME = [1. 5 − 3. 67 , 1 .5 + 3.67] = [− 2. 17 , +5.17].
(l) Find the standard error for the mean response for the x-value x∗^ = 1/2 (denoted by SE(ˆμy) in the Useful Formulas sheet).
SE(ˆμy) =
s^2 e n
Score:
(m) Find the standard error for the predicted response for x∗^ = 1/2 (denoted SE(ˆy) in the Useful Formulas sheet).
SE(ˆy) =
s^2 e +
s^2 e n
(n) Find a 95% confidence interval for the mean response for x∗^ = 1/2. The predicted value is 32 · 12 − 16 = 127 = .583. Now the margin of error is (since the df is still n − 2 = 1)
so the confidence interval is [. 583 − 3. 5 , .583 + 3.5] ≈ [. 6 − 3. 5 , .6 + 3.5] = [− 2. 9 , 4 .1].
(o) Find a 95% prediction interval for the response for x∗^ = 1/2. The predicted value is still 127 and now the margin of error is
so the prediction interval is [. 6 − 6. 3 , .6 + 6.3] = [− 5. 7 , 6 .9].
Score:
Problem 6. Suppose 121 gamblers in Las Vegas are chosen at random, and their lifetime winnings or losses have an average of -$4,700 (a loss of $4,700) and a standard deviation of $43,000.
a) [6 pts] Find a 99% confidence interval for the average winning or loss of all gamblers in Las Vegas.
b) [3 pts] Do you think approximately 99 percent of gamblers in Las Vegas have lifetime winnings in the interval that you found in part a)? Explain.
Solutions: (a) The confidence interval is centered at -4,700 and has a margin of error of t∗s/
n = 2. 617 · 43 , 000 /
(b) No, the confidence interval is not a “prediction interval”; it is not true that 99 percent are that close to the average, only that we are 99 percent certain that the average is in the interval.
Score:
Problem 7. (9 pts) While several operating systems and web browsers are in use, here we will restrict attention to two operating systems (Windows and Mac) and two browsers (Firefox and Chrome); so we will assume that everybody is using either Windows or Mac, and either Firefox or Chrome. The number of visits to the web site math.hawaii.edu using one of these operating systems and one of these browsers in May 2011 was as follows.
Number of visits Mac Windows Firefox 538 1, Chrome 290 1,
Conduct a χ^2 test of the hypothesis that the choice of browser is independent of the choice of operating system. Solution: We widen the table: Number of visits Mac Windows TOTAL Firefox 538 1,788 2, Chrome 290 1,126 1, TOTAL 828 2,914 3,
We have the following expected cell counts:
Number of visits Mac Windows TOTAL Firefox 828 * 2326 / 3742 = 514.67878 29142326 / 3742 = 1811.3 2, Chrome 828 1416 / 3742 = 313.3 2914 * 1416 / 3742 = 1102.67878 1, TOTAL 828 2,914 3,
Differences between observations and expected counts with expected:
538 − 514 .7 = 1788 − 1811 .3 = 290 − 313 .3 = 1126 − 1102 .7 = 23. 3
Squared: 23. 32121862 = 543.879. Sum of squared differences divided by expected counts:
X^2 for (2 − 1)(2 − 1) = 1 degree of freedom. Since 3.586 is between 2.706 and 3.841, the p-value is between 5% and 10%. Thus, we cannot reject the hypothesis of independence.
Score:
Problem 8, continued. The following facts can be calculated from the data (but you are not asked to do so): The professors’ last names have a standard deviation of 1.1, the advisers’ last names have a standard deviation of 1.4, and the differences have a standard deviation of 1.7. The average professor last name length is 6.0, the average adviser last name length is 6.8, and the average difference is -0.8. (b) [7 points] Is there strong evidence that professors have shorter last names than their advisers? Justify your answer by conducting an appropriate hypothesis test at significance level .05. Make sure to give the p-value for your test, or an interval containing the p-value if that is the best you can do with your tables. To use the paired t-test we should check that the differences are approximately normally distributed, which they are by part (a). The negative of the differences have mean d = +0. 8 and standard deviation sd = 1.7. Therefore the test statistic should be
T = d/(sd/
n) =
The degrees of freedom is n − 1 = 15 and we are using a one-sided test since the question asked about ”shorter” rather than ”different”. We see from Table T that a T value of 1. would give p-value 5% and a T value of 2.131 would give a p-value of 2.5%. Thus we are just barely able to reject the null hypothesis that professors and their advisers have the same length last names on average. But one might argue that a one-sided test is unnatural, and a two-sided test should have been done, in which case we could not reject H 0. We could also not reject at significance level 1%, for example. Further observation is probably required.
Figure 1: Areas under t distribution curves.
Figure 3: Areas under the standard normal curve.
Figure 4: Areas under the standard normal curve, continued.