252solngr2-06 10/3/06 (Open this document in 'Page Layout' view!)

Solution to ECO 252 Second Graded Assignment

R. E. Bove

Problem 1: Which of the following could be a null hypothesis? Which could be an alternative hypothesis? Which could be neither? Why?

(i),(ii), (iii), (iv), (v), (vi), (vii), (viii), (ix) , (x), (xi), (xii),(xiii)

Solution: Remember the following:

α) Only numbers like (the population mean,proportion, variance, standard deviation and median) that are parameters of the population can be in a hypothesis; (the sample mean, proportion, variance, standard deviation and median) are statistics computed from sample data and cannot be in a hypothesis because a hypothesis is a statement about a population;

β) The null hypothesis must contain an equality;

γ) must be between zero and one;

δ) A variance or standard deviation cannot be negative.

(i)could be since it contains a parameter and an equality. would be .

(ii)could be since it contains a parameter but no equality. would be .

(iii)could be since it contains a parameter but no equality. would be .

(iv), could be since it contains a parameter and an equality. would be .

(v)can’t be either or since the sample mean is not a parameter.

(vi)can’t be either or since the sample mean is not a parameter.

(vii)can’t be either or since the sample mean is not a parameter.

(viii)can’t be either or since the sample mean is not a parameter.

(ix) can’t be either or since the sample standard deviation is not a parameter.

(x)could not be or since a parameter, cannot take values below zero or above 1.

(xi)could not be or since a parameter, cannot take values below zero.

(xii) could be since it contains a parameter and an equality. would be .

(xiii)can’t be either or since the sample proportion is not a parameter.

Learn to make and call it ‘mu.’ It’s not a ‘u’ and you are too young to be unable to adjust to using a Greek letter!

Problem 2: A man walks into a bar. He drinks 15 bottles of beer. These bottles are supposed to contain 12 ounces of beer with a population standard deviation of 0.2 ounces. On the basis of the man's condition when he leaves the bar, we conclude that the sample mean for the bottles was 11.80 ounces. Test the hypothesis that the population mean for these bottles was 12 ounces. Assume that the confidence level is 95%.

a) State your null and alternative hypotheses.

b) Find critical values for the sample mean and test the hypothesis.

c) Find a confidence interval for the sample mean and test the hypothesis.

d) Use a test ratio for a test of the sample mean

e) Find a p-value for the null hypothesis using the Normal table and use the p-value to test the hypothesis.

Solution: a) Since the problem mentions a sample mean and the population standard deviation is given, we go to table 3 and find the following.

Interval for / Confidence Interval / Hypotheses / Test Ratio / Critical Value
Mean (
known) / / / /

Never use with unless degrees of freedom are high! Never use t with or !

a) What the problem asks is in the following hypotheses:. From the problem statement and This is a two-sided test of a mean, so we need and .

b) or 11.899 to 12.101.

Make a diagram. Make a Normal curve with a mean at 12. Shade the rejection zones below 11.899 and above 12.101. Show that is in the rejection zone, so reject .

c) or 11.699 to 11.901.

Make a diagram. Make a Normal curve with a mean at 11.80. Shade the confidence interval between 11.899 and 12.101. Since is not on this interval, reject .

d) Make a diagram. Make a Normal curve with a mean at 0. Shade the rejection zones below and above . Compute . Show that -3.87 is in the lower rejection zone. reject .

e) Since this is a two-sided test and the value of is below zero, . Since ,reject .

Problem 3:A psychiatrist is treating a group of aborigines who are suffering from depression. Whether justifiably or not, she considers this group a random sample of 15 taken from a very large number of depressed individuals. The numbers below represent the measurement of the sample’s level of depression an hour after taking the pill using a commonly used (Coolidge Axis II) scale for measuring depression. Personalize the data as follows: add the digits of your student number to the last six numbers. Example: Ima Badrisk has the student number 123456; so the last six numbers become {51, 52, 53, 54, 55, 56}.

52 53 58 50 53 58 55 66 53 50 50 50 50 50 50

Compute the sample standard deviation using the computational formula. (If you did this correctly on the last assignment, just copy your work.) The doctor believes that subjects fed a sugar pill will have an average score on the same scale of 58.73.

a) Test the validity of the doctor’s hypothesis using a confidence level of 95% and a critical value for the sample mean. (You cannot test the validity of a hypothesis that you haven’t stated!)

b) Find an approximate p-value for the statement.

c) Will we reject the doctor’s hypothesis at a confidence level of (i) .001? (ii) .01? (iii) .10? Using the p-value explain why.

Ima Badrisk did the following on the last assignment.

1

252solngr2-06 10/3/06 (Open this document in 'Page Layout' view!)

index

1 52 2704

2 53 2809

3 58 3364

4 50 2500

5 53 2809

6 58 3364

7 55 3025

8 66 4356

9 53 2809

10 51 2601

11 52 2704

12 53 2809

13 54 2916

14 55 3025

15 56 3136

819 44931

,,

The formula for the sample standard deviation is in Table 20 of the Supplement.

.

1

252gras1-06 9/26/06

a) Since the problem mentions a sample mean and the population standard deviation is not given, we go to table 3 and find the following.

Interval for / Confidence Interval / Hypotheses / Test Ratio / Critical Value
Mean (
unknown) /
/ / /

The hypotheses are and we have found that and

. and . . Our critical values are 56.57 and 60.89. Make a diagram. Make an almost Normal curve with a mean at 58.73. Shade the rejection zones below56.57 and above 60.89. Since is in the lower rejection zone, reject .

b) Compute the test ratio This is on the low side of zero, so . Remember that . An excerpt from the t table is shown below.

Confidence level

df .45 .40 .35 .30 .25 .20 .15 .10 .05 .025 .01 .005 .001

14 0.128 0.258 0.393 0.537 0.692 0.868 1.076 1.345 1.761 2.145 2.624 2.977 3.787

Because of Symmetry, this tells us that , and . From this we can guess that. If we double this probability, we can say

c) Remember the rule on p-value: If the p-value is below the significance level, reject the null hypothesis. We will reject the doctor’s hypothesis at confidence levels of (ii) .01 and (iii) .10 because the p-value is below these confidence levels. For (i) .001, we cannot really be sure, so we have to say not to reject.

Problem 4(Moore): 40% of Americans claim that they attend church weekly. You believe that the proportion is below 40%. Your henchpersons follow around a random sample of 200 people for a week. They find that people attend church. (To calculate the number , add the 2nd to last digit of your student number to 60. If the second to last digit of your student number is 0, add 10. Example: Ima Badrisk has the student number 123456; so she says that .)

a) State your null and alternative hypotheses.

b) Find a test ratio for a test of the proportion.

c) Find a p-value for this ratio and use it to test the hypothesis at a 5% significance level.

Solution: a) Since the problem mentions a proportion, we go to table 3 and find the following.

Interval for / Confidence Interval / Hypotheses / Test Ratio / Critical Value
Proportion /
/ / /

a) Since we believe that the proportion is below 40 and this statement does not include an equality, we consider this an alternate hypothesis. Thus our hypotheses are .

b), c) and . and . This is a left-sided test since we are worrying about the number of people in the sample who attend church being too small for the null hypothesis to be true. Thus, if our actual value of is , the p-value will be the probability of being below .

(i) , . . Since .0031 is below , reject .

(ii) , . . Since .0047 is below , reject .

(iii) , . . Since .0071 is below , reject .

(iv) , .. Since .0104 is below , reject .

(v) , . . Since .0150 is below , reject .

(vi) ,. . Since .0217 is below , reject .

(vii) ,. . Since .0301 is below , reject .

(viii), . . Since .0418 is below , reject .

(ix) , .. Since .0559 is not below , do not reject .

(x) , . . Since .0749 is not below , do not reject .

Extra Credit Problem 5:

a) Finish problem 4 by finding an appropriate confidence interval for the proportion and showing whether it contradicts the null hypothesis.

Solution: Our hypotheses are and the two-sided confidence interval formula is where . If the confidence interval is to go in the same direction as the alternate hypothesis, it would read . Since and this is a one-sided test, use To show your evidence, make a diagram of a normal curve centered at . Shade the area below the upper limit in your confidence interval and show that .40 either is or is not in the interval. Even better, represent the confidence interval by shading the area below the upper bound and the null hypothesis by shading the area above .40. If these areas overlap, you cannot reject . The work below was computer assisted.

(i) , . . Since and cannot both be true, reject.

(ii) , . . Since and cannot both be true, reject .

(iii) , . . Since and cannot both be true, reject .

(iv) , . . Since and cannot both be true, reject .

(v) , . . Since and cannot both be true, reject .

(vi) , . . Since and cannot both be true, reject .

(vii) , . . Since and cannot both be true, reject .

(viii), . . Since and cannot both be true, reject .

(ix) , . . Since and can both be true

(because any value of between .400000 and .400294 would satisfy both inequalities),do not reject.

(x) , . .Since and can both be true

(because any value of between .400000 and .405481 would satisfy both inequalities), do not reject .

b) Use the data in problem 3 to test the hypothesis

Solution:

Interval for / Confidence Interval / Hypotheses / Test Ratio / Critical Value
Variance-
Small Sample / / / /
Variance-
Large Sample / / / /

Ima Badrisk has already told us that , , and . Since the degrees of freedom are below 31, we can use the small sample formula above. We have used . This is a two-sided test of and .

The usual way to do this is with a Test Ratio.

. To be in the central 95% of values, this ratio should fall between and . Since the chi-squared ratio does not fall between these values, reject .

If we want a critical value, the formula above is interpreted as and . From the null hypothesis, we have . We already know that , and , so that our critical values are and . Since does not fall between these values, reject .

If we want to use a Confidence Interval, use the formula , which is interpreted as with the two values of chi-squared used with the test ratio. This means . This gives us or , a comparatively gigantic confidence interval which still does not include .

c) Use Minitab to check your answer to problem 4. Do this three ways

First: Enter Minitab. Use the Editor pull-down menu to enable commands. Then enter the commands below.

Pone 200 ;(Replace x with the number you used.)

Test 0.4;

Alter -1;(Makes H1 ‘less than.’)

useZ.(Uses normal approx. to binomial)

Second: Use the Stat pull-down menu. Choose‘Basic Stat’ and then ‘1 proportion.’

Check ‘summarized data’ and enter your and . Press Options. Set ‘test proportion’ as 0.4, alternative hypothesis as ‘less than’ and check ‘Normal distribution.’ Go.

Third: Use the pull-down menu again. But before you start put yeses and noes in column 1. Uncheck ‘summarized data’ and let Minitab know that the data are in column 1 (C1). Other options are unchanged.

Solution: See the appendix 252solngr2_06s.

1