252y0111 2/28/01 ECO252 QBA2 Name ____key_______________

advertisement
252y0111 2/28/01
ECO252 QBA2
FIRST HOUR EXAM
February 20, 2001
Name ____key_______________
Hour of class registered _____
Class attended if different ____
Show your work! Make Diagrams!
I. (14 points) Do all the following.
x ~ N 3,9
93
  9`3
z
1. P9  x  9  P
  P 1.33  z  0.67 
9
9 

 P1.33  z  0  P0  z  0.67   .4082  .2486  .6568
93
 0`3
z
2. P0  x  9  P
  P 0.33  z  0.67 
9 
 9
 P0.33  z  0  P0  z  0.67   .1293  .2486  .3779
28  3 
 9`3
z
3. P9  x  36   P
  P0.67  z  3.67 
9
9 

 P0  z  3.67   P0  z  0.67   .4999  .2486  .2513
53

4. Px  5  P z 
  Pz  0.22 
9 

 Pz  0  P0  z  0.22   .5  .0871  .5871
03
 53
z
5. P5  x  0  P
  P 0.89  z  0.33 
9
9 

 P0.89  z  0  P0.33  z  0  .3133  .1293  .1840
6.
A symmetrical interval about the mean with 87% probability. We want
two points x .065 and x.935 , so that Px.065  x  x .935   .8700 . Make a diagram.
If you do a diagram for z , it will show two points, z .065 and z .935 . z .935 (which
has 93.5% above it!) is below zero and z .065 is above zero. Since zero is halfway
between these two points, the diagram will show 87% split between the two sides
of zero, so that 43.5% is between z .935 and zero, and 43.5% is between zero
and z .065 . The probability below z .935 and the probability above z .065 are both 6.5%.
From the diagram, if we replace x by z, P0  z  z.065   .4350 . The closest we can come is
P0  z  1.51  .4345 . So z .065  1.51 , and x    z.065  3  1.519  3  13 .59 or -10.59 to 16.59.
16 .59  3 
  10 .59  3
z
To check this note that P10 .59  x  16 .59   P
  P 1.51  z  1.51
9
9


 2P0  z  1.51  2.4345   .8690  87%.
7. x.125
We want a point x .125 , so that Px x .125   .125 . Make a diagram.
The diagram for z will show one point , z .125 which has 12.5% above it (and 87.5%
below it!) and is above zero because zero has only 50% below it. Since zero has 50%
above it, the diagram will show 37.5% between zero and z .125 .
From the diagram, if we replace x by z, P0  z  z.125   .3750 . The closest we can come is
P0  z  1.15   .3749 . So z.125  1.15 , and x    z.135  3  1.159  3  10.35 , or 13.35.
13 .35  3 

To check this note that Px  13 .35   P z 
  Pz  1.15 
9


 Pz  0  P0  z  1.15   .5  .3749  .1251  12.5%.
252y0111 2/21/01
II. (6 points-2 point penalty for not trying part a.)
The Watched Potts Bank of Pottstown wishes to monitor the debt-to-equity ratio of the firms to
which it has made commercial loans. A random sample of 8 of the firms is taken. Assume that the bank is
sampling from a population with a normal distribution.
firm
1
2
3
4
5
6
7
8
Debt/equity ratio
1.31
1.05
1.45
1.21
1.19
1.78
1.37
1.41
a. Compute the sample standard deviation, s , of the debt-to-equity ratios. Show your work! (3)
b. Compute a 99% confidence interval for the mean debt-to-equity ratio,  .(3)
Solution: a)
x
 x  10.77  1.34625

n
x
Firm
1
2
3
4
5
6
7
8
8
14 .8347  81.34625 2
n 1
7
 0.047941 or s  0.2190 .
s2 
2
Total
 nx
2

10.77
x (Ratio)
1.31
1.05
1.45
1.21
1.19
1.78
1.37
1.41
x2
1.7161
1.1025
2.1025
1.4641
1.4161
3.1684
1.8769
1.9881
14.8347
From the problem statement   .01 . From Table 3 of the syllabus supplement, if the
population variance is unknown   x  t  s x and t n21  t .7005  3.499 .
b)
2
s
0.047941 0.2190
sx 


 0.07741 . So   1.34625  3.499 0.07741   1.346  0.271 or 1.075 to
8
n
8
1.617.
2
252y0111 2/21/01
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. You have not done a hypothesis test unless you have stated your hypotheses, run the
numbers and stated your conclusion. Use a 95% confidence level unless another level is specified.
Error: On this page 1.42 should read 1.32. Remove section f.
1. The Watched Potts Bank of Pottstown is a subsidiary of the Umongous Bancorp. The Bancorp is
threatening to remove the current officers of the bank if the firms to which they are making loans have an
average debt-to-equity ratio that exceeds 1.32. Are the officers in trouble? The data are on the previous
page. For your convenience the data are repeated below.
firm
1
2
3
4
5
6
7
8
Debt/equity ratio
1.31
1.05
1.45
1.21
1.19
1.78
1.37
1.41
Test to see if the mean is above 1.32 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 :   1.32
H 0 :   1.32
H 0 : x  1.32
H 0 :   1.32
H 0 : x  1.32
H 0 : x  1.32
H 0 : p  1.32
H 0 :   1.32
H 0 : x  1.32
H 0 : p  1.32
H 0 :   1.32
H 0 : x  1.32
b. Find a critical value appropriate for this problem, using a confidence level of 95%.(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 average debt-to-equity ratio is exactly 1.32 at the 95% confidence
level. (2)
Solution: From Table 3 of the Syllabus Supplement: It's remarkable how many of you don't know that
'the mean is above 1.32' means '   1.32 !'
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
t
x  0
sx
xcv   0  t 2 s x
H1 :    0
DF  n  1
a) We are afraid that   1.32 . Because this does not contain an equality, it cannot be a null hypothesis. So
we must test its opposite H 0 :   1.32 and our alternate hypothesis is H1 :   1.32
7
7
 1.895 (If you chose a 2-sided test, t .025
 2.365 )
b) n  8,  0  1.32, DF  n  1  7,   .05, tn1  t .05
From the previous page: x  1.34625 and s x 
s

n
0.047941 0.2190

 0.07741 .
8
8
3
252y0111 2/21/01
Critical Value: Since this is a one-sided test, xcv  0  t sx  1.32  1.895 0.07741   1.32  0.14669
or 1.4667. It might help to remember that x   0 is always in the 'accept' region.
c) The critical value in b) means that we reject H 0 if the sample mean is above 1.4639.
Since x  1.34625 is not above this critical value, do not reject H 0 . Make a diagram with 1.32 in the
middle and a 'reject' region above 1.4667.
x  0 1.34625  1.32
d) (i) Test Ratio: t 

 0.3391 . This is in the ‘accept’ region
sx
0.07741
7
below tn 1  t .05
 1.895 , so do not reject H 0 . It might help to remember
that zero is always in the 'accept' region for t. Make a diagram with zero in the middle and a 'reject'
region above 1.895.
(ii) Confidence Interval: Since this is a one-sided test, and the alternate hypothesis
is H1 :   1.32 ,   x  t sx  1.34625  1.895 0.07741   1.34625  0.14669
or   1.200 . This does not contradict H 0 :   1.32 , because any mean in the
range 1.200 to 1.32 satisfies both statements, so do not reject H 0 . Make a diagram with
H 0 :   1.32 and   1.200 both represented by shaded areas. Since they overlap, we do not have a
contradiction.
A typical wrong answer starts out with H 0 :   1.32 and H 1 :   1.32 but then claims the critical
value is some number above 1.32. Since x  1.34625 is above their critical value, the student now rejects
the null hypothesis, thereby rejecting H 0 :   1.32 because the sample mean is above 1.32. Is this
reasonable? Of course you could do worse, like comparing a critical value built around 1.32 to 1.32. If you
do this you will never have to reject a null hypothesis. Ever! You could also use this wrong null hypothesis
7
 1.895 instead of -1.895.
but miss with the test ratio because you compare it with tn 1  t .05
7
e) H 0 :   1.32 , H1 :   1.32 . n  8, 0  1.32, DF  n  1  7,   .05, tn 1  t.025
 2.365 .
2
x  1.34625 and sx  0.07741 . Use one of the three methods below. Make a diagram for the method
you choose.
(i) Critical Value: Since this is a two-sided test, xcv  0  t sx  1.32  2.365 0.07741   1.32  0.1831
2
or 1.1369 to 1.5031. Since x  1.34625 is between these two values, do not reject H 0 .
x  0 1.34625  1.32

 0.3391 . This is in the ‘accept’ region
sx
0.07741
7
7
between tn1  t .025
 2.365 and tn1  t.025
 2.365 , 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
2
 1.346  2.365 0.07741   1.346  0.1831 . We can thus say that 1.163    1.529.
Since this interval includes 0  1.32, we cannot reject H 0 .
4
252y0111 2/21/01
2. Ken Black tells us that, nationwide, 17% of Americans drink milk as their primary breakfast beverage. A
milk producer in Wisconsin believes that the proportion of Wisconsin residents that drink milk for breakfast
is above 17%. She takes a survey of 550 Wisconsin residents and finds that 115 drink milk as their primary
beverage. Use a 99% confidence level in all parts of this problem.
a. Do a 99% confidence interval for the proportion of residents that use milk as their primary
beverage. (3)
b. Assume that the milk producer wants to estimate the proportion of Wisconsin residents that use
milk as their primary beverage within .005 , how large a sample does she need? Assume that the
correct proportion is 17% in this section. (3)
c. Her original purpose in collecting the data presented above was to test the hypothesis that more
than 17% of the people in Wisconsin drink milk as their primary breakfast beverage. Test this
hypothesis now.
(i) State your null and alternative hypotheses. (2)
(ii) Do a test of your null hypothesis using a test ratio and the 99% confidence level (3)
(iii) Using your test ratio find a p-value for your null hypothesis. (2)
(iv) Do a test of your null hypothesis using a critical value for the observed proportion (2)
(v) Do a test of your null hypothesis using an appropriate confidence interval (2)
d. (extra credit - this was covered in your text, but not in class) How would you modify your work
and conclusion in either (ii) or (iii) in c) if you found that your sample of 550 residents had been
taken in a state with only 3000 residents? (3)
Solution: From Table 3:
Interval for
Confidence
Hypotheses
Test Ratio
Critical Value
Interval
Proportion
p  p  z 2 s p
p  p0
p cv  p 0  z  2  p
H 0 : p  p0
z
p
H 1 : p  p0
pq
p0 q 0
sp 
p 
n
n
q  1 p
.209 .791   .01734 , z  z  2.576 and
x 115

 .209 , s p 

.005
2
550
n 550
p  p  z s p  .209  2.576.01734  .209  .045 or .164 to .254
a)   .01, n  550 , p 
2
b) From the outline n 
n
pqz 2
e2

pqz 2
e2
. p  .17, e  .005 and since   .01 , use z  z.005  2.576 . Thus
2
.17 .83 2.576 2
.005 2
H 0 : p  .17
c) (i) 
H 1 : p  .17
p 
.17 .83  
550
(ii) Test Ratio: z 
 37452 .32 and we must use a sample of at least 37453.
Note that p 0  .17 , n  550 , p 
x 115

 .209 , so that
n 550
.00025645  .016017 . q 0  1  p 0 .
p  p0
p

.209  .17
 2.435 . Since   .01 and this is a one-sided test,
.016017
use z.01  2.327 . Since 2.435 is more than z .01 , reject H 0 . Make a diagram. Show a normal curve with
a mean at 0 and a 'reject' region starting at z.01  2.327 and show where 2.435 falls on this diagram.
(iii) pvalue  P p  .209   Pz  2.43  .5  .4925  .0075   , so reject H 0 .
5
252y0111 2/21/01
(iv) Critical Value: pcv  p0  z  p  .17  2.327.016017  .2073 . Since p  .209 is
above this value, reject H 0 . Make a diagram. Show a normal curve with a mean at 0.17 and a 'reject'
region starting at .2073 and show where .209 falls on this diagram.
(v) Confidence Interval: Since the alternate hypothesis is H1 : p  .17 , the one-sided confidence interval
will be p  p  z s p  .209  2.327.01734  .169 . Since p  .168 does not
contradict H0 : p  .17 , do not reject H 0 . This is an extremely rare case. Make a diagram. Show a
normal curve with a mean at .209 and represent the confidence interval with a region above .169. Represent
the null hypothesis with a region below .17. show that they overlap.
d) Because the population size is now N  3000 , which is less than 20 times the sample size, n  550 , we
need a finite population correction factor. With this factor, the formula for the variance of the sample
proportion becomes
p0 q0 N  n
.17 .83 3000  550
.1411 2450


 .00020958  .01448
n
N 1
550
3000  1
550 2999
Note that the text on page 324 omits the -1.
p  p0 .209  .17

 2.693 . Since   .01 and this is a one-sided test,
(ii) Test Ratio: z 
p
.01448
p 
use z.01  2.327 . Since 2.693 is more than z .01 , reject H 0 . Or
(iii) pvalue  P p  .209   Pz  2.69   .5  .4964  .0036   , so reject H 0 . The conclusions only
became stronger.
H 0 : p  .17
Note: if in c) you decided that the hypotheses were 
, then you should have done the
H 1 : p  .17
following: (ii) Test Ratio: z 
p  p0
p

.209  .17
 2.435 . Compare it with z .01  2.327 . Since 2.435
.016017
is more than  z .01 , do not reject H 0 . (iii) pvalue  P p  .209   Pz  2.43  .5  .4925  .9925 .
(iv) Critical Value: pcv  p0  z  p . (v) Confidence Interval: p  p  z s p .
6
252y0111 2/21/01
3. Ken Black says that a soft drink manufacturer takes a sample of 60 12-ounce cans of soda to check that
the mean is at least 12 ounces and finds that the sample mean is 11.985 ounces. From long experience, the
producer assumes that the population standard deviation is 0.10 ounces. Use a 90% confidence level in a) d) in this problem.
a. State the null hypothesis and find the p-value for it. (3)
b. Find a critical value for the sample mean. (2)
c. What would the power of the test in b) be if the mean was, in fact, 11.99 ounces? (3)
d. Doing appropriate calculations, find and sketch the power curve for the test in b). (5)
e. Do a 75% confidence interval for the mean based on the sample mean of 11.985 (3)
Solution: a) First, state the problem and find a critical value or values.
H 0 :   12

0.10

  0.10, n  60,   .10, x  11 .985 so  x 

 0.0129099 . z  z .10  1.282 .

H
:


12
n
60
 1
x   0 11 .985  12
z

 1.16 and the p-value is Px  11.985   Pz  1.16   .5  .3770  .1230 .
x
.0129099
Note: Since last time you had to use the t table to find the p-value, most of you assumed that you had to do
that this time too. Think! Since you were given a population variance, you should have used z . Moreover,
just because you have to double a p-value in a 2-sided test, doesn't mean you should double it in a 1-sided
test.
b) Since this is a one-sided test, the formula for a two-sided critical value x cv   0  z   x becomes
2
xcv   0  z  x , so that xcv  12  1.282 0.0129099   11.9834 . So we will not reject H 0 if the sample
mean x is greater than or equal to 11.9834. Make a diagram. Put 12 in the middle and show a 'reject'
region below 11.9834. Shade this area to represent the significance level.
c) Since a type II error is wrongly ‘accepting’ the null hypothesis, we compute the probability that the
sample mean will be above or equal to the critical value for each value of 1 . Our computations are below.

x  1 
Note that, in general, for this one-sided hypothesis   P  z  cv
 . Here 1  11.99 , so
x 


  Pz 

= .3050.
x cv  1 
11 .9834  11 .99 

 Pz  0.51  .5  .1950  .6950 . The power is 1 - .6950
  Pz 
x 
0.0129099 

d) Decide on what values of 1 to use to compute  , the probability of a type II error. The usual set
of values includes the mean from the null hypothesis, (12), the critical value (11.9834), a point about
midway between these values (11.99) and two points, one further out beyond the critical value by a distance
about equal to the distance between the null hypothesis mean and the critical value (11.96), and another
about halfway between this point and the critical value (11.97).
Compute  for each value of 1 . Since a type II error is wrongly ‘accepting’ the null hypothesis,
we compute the probability that the sample mean will be above or equal to the critical value for each value
of 1 . Our computations are below. Note that, in general, for this one-sided hypothesis

xcv  1 
.
x 

We know that if 1  12 , we will find   1    .90 and the power will be .10.
At the critical value,   .5 and the power is also .5.
  Pz 
7
252y0111 2/21/01
1  11 .97   Px  11 .9834   11 .97   P  z 


11 .9834  11 .97 
  Pz  1.04   .5  .3508  .1492
.0129099

power  1    .8508
1  11.96   Px  11 .9834   11 .96   P  z 


11 .9834  11 .96 
  Pz  1.81  .5  .4649  .0351
.0219099

power  1    .9382
You now have the power for 5 points below or equal to 12. Make a diagram.
e) From page 3 of this document,   x  z  x , and we know
2
x 

that

x  11.985 and
0.10
 0.0129099 .   1  .75  .25 . z  z.125 . To find z .125 (You found this on page 1!),
2
n
60
make a diagram. Show the mean at zero, that the probability above z .125 is .125, so that the probability
between zero and z .125 must be 50% - 12.5% = 37.5%. So P0  z  z.125   .3750 . The best we can do on
the
Normal
table
is
So
and
P0  z  1.15   .3749 .
z.125  1.15 ,

  x  z 2  x  11.985  1.150.0129099  11.985  0.015 or 11.976 to 12.000.
8
252y0111 2/21/01
4. (Use a 95% confidence level in all parts of this problem.) My old friend Ken Black talks about a worker
who has an average of 20 tubes at his work station. To satisfy the requirements of just-in-time inventory, the
superintendent wants the standard deviation of the number of tubes at the station to be less than or equal to
2. The station is visited 8 times and, from the eight measurements taken, she calculates a sample mean
number of tubes at the station of 20.875 and a sample standard deviation of 4.5806.
a. For starters, do a 2-sided test of the statement that the population standard deviation is 2. (3)
b. Do a confidence interval for the standard deviation. (3)
c. Actually the test in a) should have been a 1-sided test, so do it again. (2)
d. The superintendent visits the work station 61 times during the month. She now calculates the
mean at 20.475 and the sample standard deviation at 3.2520. Repeat the test in a) with these new
numbers. (2)
e. Now repeat the test in c) with these new numbers. (2)
f. A paper company will cut farmed timber only if the median height of the trees is over 40 feet. A sample
of 40 trees is taken and 25 of them are over 40 feet. State your null and alternate hypotheses and tell
whether we would reject the null hypothesis at the 95% confidence level. Finally, tell whether your
conclusion means that they do or do not cut. (4)
g. I am sure that the Friendlyville, Alabama police department is writing an average of more than 20
speeding tickets a day on its one-block-long main street. Sho' 'nuff , in a one-day visit I see 29 tickets
written. Assuming that the Poisson distribution applies, state the null and alternative hypotheses and test the
null hypothesis. (3)
h. (Extra Credit) We agree that one day is not enough time to test the hypotheses in g) and so I stay for a
full week. In that time I see 150 tickets written. Repeat the test. (3)
H 0 :  2  4
H :   2
n  8, DF  n  1  7, s  4.5806 ,   .05 , and  2  .025 .
Solution: a)  0
or 
H 1 :  2  4
H 1 :   2
From the outline, the test ratio formula is  2 
n  1s 2
 02

74.5806 2
 36 .7183 . From the chi-square
4
7 
7 
 16 .0128 and  ..2975
 1.6899 . Make a diagram. Show a chi-squared distribution with a mean
table,  .2025
at about DF  7 , and a 99% 'accept region between the two values of chi-squared just given. Show one
2.5% 'reject' region below the 97.5% value and a second 'reject' region above the 2.5% value. Since
16.31925 falls in the 'reject' region, reject H 0 .
b) According to the outline, a two-sided confidence interval would be
in the blanks, we get
74.5806 2
 2 
74.5806 2
n  1s 2
 22
2 
n  1s 2
12 2
. If we fill
or 9.1762   2  86.9504 . If we take square
16 .0128
1.6899
roots, we get 3.0292    9.3247 .
H 0 :  2  4
H 0 :   2
n  8, DF  n  1  7, s  4.5806 , and   .05 . Make a diagram. Show
c) 
or 
H 1 :  2  4
H 1 :   2
2 7 
a chi-squared distribution with a mean at about DF  7 , and a 95% 'accept region below  .05  14 .0671 .
Show the 5% 'reject' region above the 5% value of chi-squared. Since  2 
n  1s 2
 02
= 16.31925 falls in
the 'reject' region, reject H 0 .
9
252y0111 2/21/01
H 0 :  2  4
H :   2
d)  0
or 
H 1 :  2  4
H 1 :   2
2 
n  1s 2
 02

n  61, DF  n  1  60 , s  3.2520   .05 , and

2
 .025 .
603.2520 2
 158 .63256 . For large samples z  2 2  2DF   1
4
 2158 .63257   260   1  317 .265  119  17 .8119  10 .9087  6.9032 . Make a diagram. Show a
normal curve with a mean at 0 and 'reject' regions below z.025  1.960 and above z .025  1.960 and
show where 6.9032 falls on this diagram. Reject H 0 .
H 0 :  2  4
H :   2
e)  0
or 
Make a diagram. Show a normal curve with a mean at 0 and a 'reject'
H 1 :  2  4
H 1 :   2
region above z .05  1.645 and show where 1.6920 falls on this diagram. Reject H 0 .
f) From outline point B6a for the sign test for a median:
Hypothesis about
Hypotheses about a proportion
a median
If p is the proportion
If p is the proportion
above  0
 H 0 :   0

H 1 :   0
 H 0 : p .5

 H 1 : p  .5
below  0
 H 0 : p .5

 H 1 : p  .5
 H 0 :   40
 H 0 : p .5
We are told that x  25 are above 40 feet and that n  40 . So 
becomes 
and
 H1 :   40
 H 1 : p  .5
there are several methods to do this in B6 and the problem solutions. If we use the formula used by the text
2x  1  n
(quoted as z 
in the outline) without a continuity correction we find pval  Px  25 
n

225   40 
  Pz  1.58   .5  .4429  .0571 . Since this is above   .05, we do not reject H 0
 P z 

40 

and do not cut the timber.
 H 0 :   20
g) 
From the Poisson(20) table, pval  Px  29   1  Px  28   1  .96567  .03433 .
 H 1 :   20
Since this is below   .05, we reject H 0 .
 H 0 :   140
h) 
This time we follow Problem B4d) and say (using the Normal approximation to the
 H 1 :   140

150  140 
  Pz  0.86   .5  .3023  .1977 . Since this is
Poisson distribution) pval  Px  150   P z 

140 

not below   .05, we do not reject H 0 .
10
Download