2/25/00 252y0011 ECO252 QBA2 Name _____KEY_______

advertisement
2/25/00 252y0011
ECO252 QBA2
FIRST HOUR EXAM
February 22, 2000
Name _____KEY_______
Hour of class registered __
Class attended if different _
Show your work! Make Diagrams! Note that all diagrams are available on a separate sheet.
I. (14 points) Do all the following.
x ~ N 2,6
3 2 
 1 2
z
1. P1  x  3  P
  P 0.50  z  0.17 
6 
 6
 P0.50  z  0  P0  z  0.17   .1915  .0675  .2590
11  2 
  11`2
z
2. P11  x  11  P
  P 2.17  z  1.50 
6 
 6
 P2.17  z  0  P0  z  1.50   .4850  .4332  .9182
22
  20  2
z
3. P20  x  2  P
  P 3.67  z  0  .4999
6
6 

02

4. Px  0  P z 
  Pz  0.33   Pz  0  P0.33  z  0
6 

 .5  .1293  .3707
12 .5  2 
 9`2
z
5. P9  x  12.5  P
  P1.17  z  1.75 
6
6 

 P0  z  1.75   P0  z  1.17   .4599  .3790  .0809
6.
A symmetrical interval about the mean with 81% probability. We want
two points x .095 and x.905 , so that Px.095  x  x .905   .8100 . From the diagram,
if we replace x by z, P0  z  z.095   .4050 . The closest we can come is
P0  z  1.31  .4049 . So z .095  1.31 , and x    z.095  2  1.316  2  7.86 ,
9.86  2 
  5.86  2
z
or -5.86 to 9.86. To check this note that P5.86  x  9.86   P

6
6 

 P1.31  z  1.31  2P0  z  1.31  2.4049   .8098  .81
7.
x.12
We want a point x .12 , so that Px x .12   .12 . From the diagram,
if we replace x by z, P0  z  z.12   .3800 . The closest we can come is
P0  z  1.17   .3790 or P0  z  1.18   .3810 . So z .12  1.175 , and
x    z.12  2  1.175 6  2  7.05 , or 9.05 . To check this note that
9.05  2 

Px  9.05   P z 
  Pz  1.17   Pz  0  P0  z  1.17   .5  .3790
6 

 .5  .3790  .1210  .12
2/25/00 252y0011
II. (6 points-2 point penalty for not trying part a.)
A truck dealer asserts that a new model of truck has lower gas consumption than your present fleet
model. A random sample of 7 runs is made with the new model with gas consumption as below. Assume
that we were sampling from a normal distribution.
run
1
2
3
4
5
6
7
Consumption
11.54
10.99
12.74
12.08
12.66
12.84
11.15
a. Compute the sample standard deviation, s , of gasoline consumption. Show your work! (3)
b. Compute a 99% confidence interval for the mean gas consumption,  . (3)
Solution: a.
x
 x  84.00  12.00

n
x
Home
1
2
3
4
5
6
7
Total
7
1011 .6494  712 .00 2
n 1
6
 0.6082333 or s  0.779893 .
s2 
2
 nx
2

x (Days)
11.54
10.99
12.74
12.08
12.66
12.84
11.15
84.00
x2
133.1716
120.7801
162.3076
145.9264
160.2756
164.8656
124.3225
1011.6494
.
b.
From the problem statement   .01 . From Table 3 of the syllabus supplement, if the
  x  t  sx and t n21  t .6005  3.707 .
population variance is unknown
2
s
0.6082333
0.779893
sx 


 0.29477 . So   12.00  3.707 0.29477   12.00  1.093 or 10.907
7
n
7
to 13.093.
2
2/25/00 252y0011
III. Do at least 3 of the following 4 Problems (at least 10 each) (or do sections adding to at least 30 points Anything extra you do helps, and grades wrap around) . Show your work! State H 0 and H 1 where
appropriate. Use a 95% confidence level unless another level is specified.
1. A truck dealer asserts that a new model of truck has lower gas consumption than your present fleet
model. The data is on the previous page. On the basis of a great deal of experience, you know that the mean
for your present model is 12.2 miles per gallon. For your convenience the data are repeated below.
run
1
2
3
4
5
6
7
Consumption
11.54
10.99
12.74
12.08
12.66
12.84
11.15
Evaluate the dealer’s statement using the sample mean and standard deviation you found in part II.
a. Choose the correct null hypothesis from the list below and write the alternative hypothesis. (2)
H 0 :   12.2
H 0 :   12.2
H 0 : x  12 .2
H 0 :   12.2
H 0 : x  12 .2
H 0 : x  12 .2
H 0 :   12.2
H 0 : x  12 .2
H 0 :   12.2
H 0 : x  12 .2
b. Find a critical value appropriate for this problem, using a confidence level of 99%.(3)
c. Use your critical value to test the hypothesis. State clearly whether you reject the null
hypothesis. (2)
d. Repeat the test using (i) a test ratio (2) and (ii) a confidence interval. (2)
e. Test the hypothesis that the mean consumption of gas is exactly 12.2 for the dealer's fleet at the
99% confidence level. (2)
f. Assume that the data does not come from a normal distribution and evaluate the statement that
the median is 12.7. (4)
Solution: From Table 3 of the Syllabus Supplement:
Interval for
Confidence
Hypotheses
Test Ratio
Critical Value
Interval
xcv   0  z 2  x
Mean (
  x  z 2  x
x  0
H0 :   0
z
Known)

H :  
1
Mean (
Unknown)
  x  t 2 s x
x
0
H0 :   0
H1 :    0
t
x  0
sx
xcv   0  t 2 s x
DF  n  1
a. The dealer's statement is   12.2 . Because this does not contain an equality, it cannot be a null
hypothesis. So we must test its opposite H 0 :   12 .2 and our alternate hypothesis is H 1 :   12 .2
6
6
 3.143 (If you chose a 2-sided test, t .005
 3.702 )
b. n  7,  0  12 .2, DF  n  1  6,   .01, tn 1  t .01
0.6082333
0.77989327 .1441

 0.29477 .
7
n
7
Critical Value: Since this is a one-sided test, xcv  0  t sx  12.2  3.143 0.29477   12.2  0.9262
or 11.27. It might help to remember that x   0 is always in the 'accept' region.
From the previous page: x  12 .00 and s x 
s

3
2/25/00 252y0011
c. The critical value in b) means that we reject H 0 if the sample mean is below
11.27. Since x  12 .00 is not below this critical value, do not reject H 0 .
d. (i) Test Ratio: t 
x   0 12 .00  12 .2

 0.678 . This is in the ‘accept’ region
sx
0.29477
6
above tn 1  t .01
 3.143 , so do not reject H 0 . It might help to remember
that zero is always on the 'accept' region for t.
(ii) Confidence Interval: Since this is a one-sided test, and the alternate hypothesis
is H 1 :   12 .2 ,   x  t s x  12.00  3.143 0.29477   12.0  0.9265
or   12.9265 . This does not contradict H 0 :   12 .2 , because any mean in the
range 12.2 to 12.9265 satisfies both statements, so do not reject H 0 .
6
e. H 0 :   12.2 , H 1 :   12 .2 . n  7,  0  12.2, DF  n  1  6,   .01, tn1  t.005
 3.707 ,
2
x  12 .00 and s x  0.29477 . Use one of the three methods below.
(i) Critical Value: Since this is a two-sided test, xcv  0  t sx  12 .2  3.707 0.29477 
2
 12.2  1.0927 or 11.11 and 13.29. Since x  12 .00 is between these two values,
do not reject H 0 .
x   0 12 .00  12 .2

 0.678 . This is in the ‘accept’ region
sx
0.29477
6
6
between tn1  t .005
 3.707 and tn1  t.005
 3.707 , so do not reject H 0 .
(ii) Test Ratio: t 
2
2
(iii) Confidence Interval: Since this is a two-sided test, use   x  t s x
 12 .0  3.707 0.29477   12.0  1.0927 . We can thus say that 10.91    13.09.
Since this interval includes  0  12.2, we cannot reject H 0 .
f. H 0 :   12 .7 , H 1 :  12.7 . If we subtract 12.7 from the values of x, we get the following:
x
x 
run
1
11.54
-1.16
2
10.99
-1.71
3
12.74
+0.04
4
12.08
-0.62
5
12.66
-0.04
6
12.84
+0.14
7
11.15
-1.55
For n  7 , there are 2 values above the alleged median and 5 values below. The p-value is thus
either 2Px  5 or 2Px  2 . From the binomial table for p  .5, p  value  2Px  5
 2Px  2  0.22656 . Since this is above the significance level   .01, we cannot reject H 0 .
4
2/25/00 252y0011
2. Using data from part II
a. Do a 99% confidence interval for the standard deviation for the dealer's fleet (3)
b. Test the hypothesis that the standard deviation is less than 1 mile per gallon at the 99%
confidence level. (4)
c. Using the sample standard deviation you got in part II, test the hypothesis that the population
standard deviation is 1.1 at the 99% confidence level if the sample size is 86. (3
d. Assuming that the population standard deviation is 0.9 miles per gallon and using the sample
mean that you found in part II, test again the null hypothesis about the mean that you found in
question III-1a on the previous page. (2)
e. Repeat 2d above assuming that the data come from a sample of 7 out of a population of 70. (2)
Solution: From part II x  12 .00 , s 2  0.6082333 or s  0.779893 . Also n  7, DF  n 1  6,
and   .01
a. From page 1 of the Syllabus Supplement:
n  1s 2
 2
 2 
n  1s 2
2 
1
2
1
2
6 
6 
 18 .5476 and  .2995
 0.6757 . So
 .995 , look up  .2005
60.608233    2  60.6082333 
18 .5476
0.4436    2.3240 .
0.6757
. Since 
2
 .005 and
2
n  1s 2
 .2005
 2 
n  1s 2
 .2995
or
or 0.19676   2  5.40089 . Finally, taking square roots,
b. H 0 :   1.00 H 1 :   1.00 . From the outline  2 
n  1s 2
 02
is the test ratio. If  02  1.00
and H 1 :   1.00 is true, s 2 will tend to be below 1, and the ratio will be on the small side.
26 
Since this is a 1-sided test and   .01 ,compare the test ratio with  .99  0.8721 .
Since the mean of this chi-squared distribution is DF  6 and the mean must be in the 'accept'
region, our test is to reject the null hypothesis if  2  0.8721 . We compute
2 
n  1s 2
 02

60.608233 
 3.6494 , so we cannot reject H 0 .
1.00
c. H 0 :   1.1 H 1 :   1.1 . s 2  0.6082333 or s  0.779893 , but n  86. From the outline
2 
85  0.6082333  42.7271 is the test ratio. Since this is a large sample,
1.12
2 DF   1  242 .7271   285   1  9.2441  13 .0000  3.76 .  .01 ,
n  1s 2
 02
z  2 2 

z   z .005  2.576 - we reject the null hypothesis if z is not between 2.576 . Since -3.76
2
is below that range, reject H 0 . a 2-sided confidence interval also could be used here.
5
2/25/00 252y0011
d. H 0 :   12 .2 , H 1 :   12 .2 . n  7,  0  12 .2,   .01, z  z .01  2.327 ,
x  12 .00 and  x 

0.9
 0.34017 . Use one of the three methods below.
n
7
(i) Critical Value: Since this is a one-sided test, xcv   0  z  x  12.2  2.327 0.34017 
= 11.41. Since x  12 .00 is above the critical value, do not reject H 0 .
(ii) Test Ratio: z 

x  0
x

12 .00  12 .2
 0.587 . This is not in the ‘reject’ region
0.34017
below  z   z .01  2.327 , so do not reject H 0 .
(iii) Confidence Interval: Since this is a one-sided test, use   x  z  x
 12 .0  2.327 0.34017   12.7916 . But   12.7916 does not contradict
  12.2 , so we cannot reject H 0 .
e. H 0 :   12 .2 , H 1 :   12 .2 . n  7, N  70,  0  12 .2,   .01, z  z .01  2.327 ,

N  n 0.9 63

 0.32504 . Use one of the three methods below.
n N 1
7 69
(i) Critical Value: Since this is a one-sided test, xcv   0  z  x  12.2  2.327 0.32504 
= 11.44. Since x  12 .00 is above the critical value, do not reject H 0 .
x   0 12 .00  12 .2

 0.615 . This is not in the ‘reject’ region
(ii) Test Ratio: z 
x
0.32504
x  12 .00 and  x 
below  z   z .01  2.327 , so do not reject H 0 .
(iii) Confidence Interval: Since this is a one-sided test, use   x  z  x
 12 .0  2.327 0.32504   12.9564 . But   12.9564 does not contradict
  12.2 , so we cannot reject H 0 .
Remember! My most common comment in grading was "Did you read the question?" If you answer
a question about the standard deviation with an answer appropriate for a proportion or a mean, no
amount of knowledge of the formulas will help you!
6
2/25/00 252y0011
3. We have the following data (Assume in this question that the original data comes from the normal
distribution.):
x  970 ,   60 and n  225 .
a. What is the smallest sample size that we could use so that a 99% confidence interval for the mean could
be given with an error of  3 ? (3)
b. If we test the hypothesis that the population mean is 975, what is the p-value for this hypothesis? (3)
c. If our confidence level is 92%, would we reject the hypothesis in 3b? Why? (1)
d. If instead your data reads x  970 , s  15 .3 and n  36 , find a range for the p-value and tell
whether you would reject the null hypothesis if the confidence level is 92%.
e. Due to the advent of EasyPass the mean number of cars passing a Garden State Parkway toll booth with
a human collector is falling. Assume that the average number of motorists passing a given location was
known to be 9.5 per minute. Do a one sided hypothesis test using a confidence level of 95% if an observer
reports that the number that actually passed in a minute was 4. (3)
f. To get a more powerful test note that 9.5 cars a minute means 570 per hour. Would you reject the null
hypothesis if 240 cars passed in an hour? (3)
z 2 2 2.576 2 60 2

Solution: a.   .01, z  z.005  2.576, e  3 and   60 . From the outline n 
2
e2
32
 2654 .31 . So use a sample size that is at least 2655.

60

 4.00 .
b. H 0 :   975 , H 1 :   975 . n  225 ,  0  975 , x  970 and  x 
n
225
x   0 970  975
z

 1.25 . p  value  2Pz  1.25  2.5  .3944   .2112 .
x
4.00
c. If 1    .92,   .08. We reject a hypothesis if the p-value is below the significance level.
Since this is not true here, do not reject H 0 .(To do it the hard way use z.04  1.75 .)
d. . H 0 :   975 , H 1 :   975 . x  970 , s  15 .3 and n  36 , s x 
t
s
n

15 .3
 2.550 ,
36
x   0 970  975
35

 1.961 From the t table t = 1.961 is smaller than t .025
 2.030 ,
sx
2.55
35
 1.690 , so that, for a 1-sided test, we can say .05  pvalue  .025 .
but is larger than t .05
But for this 2-sided test we must say .10  pvalue  .05 . We reject H 0 if pvalue   .
If   .08, we can't be sure what to do.
e. Since this is a problem involving a comparison of the number per unit time to the average per unit time
we use the Poisson distribution. H 0 : Poisson(mean  9.5) , H 1 : Poisson(mean  9.5) . This is a 1-sided
test, so look up Px  4 on the Poisson (9.5) table. You should get a p-value of .04026. Since this is
below the significance level of .05, reject the null hypothesis.
f. Since this is a problem involving a comparison of the number per unit time to the average per unit time
we use the Poisson distribution. H 0 : Poisson(mean  570 ) , H 1 : Poisson(mean  570 ) . This is a 1-sided
test, so we would like to look up Px  240  on the Poisson(570 ) table. Because we do not have this table
we approximate the Poisson distribution with a Normal distribution with   570 and   570 . Thus

240  570 
  Pz  13 .82   .5  .5000  0 . Since this is below the
pvalue  Px  240   P z 

570 

significance level of .05, reject the null hypothesis
7
2/25/00 252y0011
4. An electronics supplier claims that at least 97% of parts supplied to a government agency meet
specifications. A sample of 400 parts is tested and 36 parts are rejected.
a. State the null and alternative hypotheses (2).
b. Test the hypothesis at the 95% level. (3)
c. If we wish to create a 2-sided confidence interval for the proportion that meet specifications with an
error of not more than .01 , what is the minimum sample size required? (3)
d. To check the correctness of your solution in 4c, create the 2-sided confidence interval. (If you did not
do 4c, assume a sample size of 231.) (2)
e. Remembering what you did on page 1, do a 76% confidence interval for the proportion. (2)
Solution: From Table 3:
Interval for
Confidence
Interval
Proportion
p  p  z 2 s p
pq
n
q  1 p
sp 
Hypotheses
Test Ratio
H 0 : p  p0
H 1 : p  p0
z
p  p0
p
Critical Value
p cv  p 0  z  2 
p 
p
p0 q 0
n
H : p  .97
x 364
 .91 , so that
a.  0
Note that p 0  .97 , n  400 , p  
n
400
H
:
p

.
97
 1
.97 .03  
p 
400
b. (i) Test Ratio: z 
.00007275  .008529 , or s p 
p  p0
p

.91.09   .0143 . q  1  p .
0
0
400
.91  .97
 7.0348 . Since   .05 and this is a one-sided test,
.008529
use z .05  1.645 . Since –7.0348 is less than  z .05 , reject H 0 . Or
pvalue  Pz  3.2927   .5  .4995  .0005   , so reject H 0 . Or:
(ii) Critical Value: pcv  p0  z  p  .97  1.645.008529  .9560 . Since p  .91 is
below this value, reject H 0 . Or:
(iii) Confidence Interval: p  p  z s p  .91 1.645.0143  .9335 . Since p  .9335
contradicts H 0 : p  .97 , reject H 0 .
c. From the outline n 
n
pqz 2
e2

pqz 2
e2
.91.09 1.960 2
.012
. p  .91, e  .01 and since   .05 , use z .025  1.960 . Thus
 3146 .01 and we must use a sample of at least 3147.
x 364

 .91,   .05 and z .025  1.960 . s p 
n 400
p  p  z s p  .91 1.960.005101  .91 .010 .
d. n  3147 , p 
.91.09   .005101
3147
2
e. Note that 1    .76 , so that   .24 and, from the front page, z  z.12  1.175
2
p  p  z 2 s p  .91 1.175.005348  .91 .006 or .904 to .916.
8
Download