252solnB1 2/13/08 (Open this document in 'Page Layout' view!)

B. HYPOTHESIS TESTS FOR ONE SAMPLE

1. The Meaning of Hypothesis Testing

Text 9.1-9.12 [9.1 – 9.12] (9.1 – 9.12), 9.16** [9.17], (9.17)

2. Steps for Testing a Hypothesis Applied to testing for a Population Mean

Text 9.20, 9.28a,c,d, 9.29 a,c,e [9.18, 9.26a,b,d,e, 9.27a,b,d,e], (9.18, 9.26a,b,d,e, 9.27a,b,d,e)

Text 9.48-9.51, 9.59 [9.46 - 9.49, 9.52] (9.44 – 9.47, 9.50)

3. The Use of p-value instead of Significance Levels.

Text 9.28b, 9.29b [9.26c, 9.27c], B7 (B6), Text 9.34-9.44 [9.32 – 9.39, 9.40*, 9.41*, 9.44] (9.26c, 9.27c, B6, 9.32 – 9.39, 9.40)

[9.40* reads ‘Suppose that in a one-tail hypothesis test where you reject only in the lower tail, you compute the value of the test statistic as 1.38, what is the p-value?’ 9.41 reads ‘In Problem 9.40, what would be your statistical decision if you tested the null hypothesis at the 0.01 level of significance?’] B8.

Graded Assignment 2 will be posted.

4. Type One and Type Two Errors

Text 9.82-9.86 [9.86 – 9.90] (9.81 – 9.85)

5. Hypotheses about a Proportion

Text 9.66-9.69, 9.70**, 9.72**[9.62 – 9.64, 9.66*, 9.67*], (9.57 – 9.59)

6. The Sign Test

B1*, B2, B3 (B1, B2)

7. Hypothesis Test for Means - Rare Events

B4, B5 (B3, B4)

8. Hypothesis Tests for a Variance.

Text 12.45[9.80] (9.75), B6 (B5)

------

Sections 1-2 are in this document.

Hypothesis Testing

Answers to 9.1-9.12 come fromthe Instructor’s Solution Manual.

Exercise 9.1:H0 is used to denote the null hypothesis.

Exercise 9.2: H1 is used to denote the alternative hypothesis.

Exercise 9.3: is used to denote the significance level, or the chance of committing a Type I error.

Exercise 9.4:is used to denote the consumer’s risk, or the chance of committing a Type II error.

Exercise 9.5: represents the power of a statistical test – that is, the probability of correctly rejecting the null hypothesis when in reality the null hypothesis is false and should be rejected.

Exercise 9.6: is the probability of making a Type I error – that is, the probability of incorrectly rejecting the null hypothesis when in reality the null hypothesis is true and should not be rejected.

Exercise 9.7:is the probability of making a Type II error – that is, the probability of incorrectly failing to reject the null hypothesis when in reality the null hypothesis is false and should be rejected.

Exercise 9.8:The power of a test is the complement of the probability of making a Type II error.

Exercise 9.9:It is possible to incorrectly reject a true null hypothesis because it is possible for the mean of a single sample to fall in the rejection region even though the hypothesized population mean is true.

This is a type I error!

Exercise 9.10:It is possible to incorrectly fail to reject a false null hypothesis because it is possible for the mean of a single sample to fall in the nonrejection region even though the hypothesized population mean is false. This is a Type II error.

Exercise 9.11:If goes from 0.05 to 0.01, what happens to? will increase.

Exercise 9.12:Other things being equal, the closer the hypothesized mean is to the actual mean, the larger is the risk of committing a Type II error.

Exercise 9.16 in 10th edition:The registrar wants to evaluate the assumption that 20 minutes between scheduled classes is sufficient. Presumably students are polled as to how much time they need so that represents the amount of time needed. What are the null and alternative hypotheses?

H0: Average amount of time required is 20 minutes.

H1: Average amount of time required is not 20 minutes.

But please note that the text may be wrong on this one. The unspoken agenda here seems to be that the time is inadequate. This implies that the alternate hypothesis is H1: This cannot be a null hypothesis since it does not contain an equality, so the null hypothesis would be H0: Average amount of time required is at least 20 minutes.

Exercise 9.17 in 8th and 9th editions:

H0: Average amounts withdrawn from ATMs are equal to $140.

H1: Average amounts withdrawn from ATMs are not equal to $140.

Tests for a Population Mean

Exercise 9.20 (9.18 in 8th and 9th edition):If you do a 2-tail hypothesis test with a 5% significance level, what would you decide if the computed value of your test ratio was

Since and 95% of the values of are thus between -1.960 and 1.960, our decision rule is to reject H0 if – 1.960 or + 1.960.Make a diagram. Draw a “Normal curve centered at zero. Show a ‘do not reject’ zone between -1.960 and +1.960. Now put 2.21 in the diagram.

Decision: Since your value of = + 2.21 is greater than , reject H0.

Exercise 9.28 a, c, d(9.26a, b, d, e in 8th and 9th editions):Manufacturer’s specifications say breaking strength is 70 lbs. with a std. deviation of 3.5 lbs. A sample of 49 pieces gives sample mean breaking strength of 69.1 lbs.

a) Is there evidence that machine is not meeting specifications? c) Do a) again with d) Do a) again with and .

Solution: Part a)

(Wasa)pounds. The cloth has an average breaking strength of 70 pounds.

pounds. The cloth has an average breaking strength that differs from 70 pounds.

(Wasb)Given: and

According to Table 3, if we wish to test , and is known, we can use one of three methods: (i) A test ratio ; (ii) a critical value ; or (iii) a confidence interval . Each of these is done below. Each one should give the same conclusion. .

(i) Test Ratio: . Our decision rule is to reject if or .Make a diagram showing a Normal curve with a mean at 0 and shaded 'reject' zones above 1.960 and below -1.960. Since is between the two critical values of , we do not reject the Null hypothesis.

(ii) Critical Value: is the formula for a two sided critical value. So we use Make a diagram showing a Normal curve with a mean at 70 and shaded 'reject' zonesbelow the critical values 69.02 and above 70.98. Since is between these critical values, we do not reject .

(iii) Confidence interval: is the formula for a two sided confidence interval. This becomes Make a diagram showing a Normal curve with a mean at and, to represent the confidence interval, shade the area between 68.12 and 70.08. Since lies within the confidence interval, do not reject .

c) What is the answer to a) if the std. deviation is 1.75 lbs?

Solution:(was d)Now So If we use the Test Ratio method, , our decision rule is still to reject if or . Use your a diagram showing a Normal curve with a mean at 0 and shaded 'reject' zones above 1.960 and below -1.960. Since is not between the two critical values of , we reject the Null hypothesis.

d) What is the answer to a) if the sample mean is 69 lbs and the std. deviation is 3.5 lbs?

Solution: (Was e.)The easiest method here is the critical value method. We already know that

is the formula for a two sided confidence interval. So we repeat We use our diagram showing a Normal curve with a mean at 70 and shaded 'reject' zones below the critical values 69.02 and above 70.98. Since is not between these critical values, we reject . Note: if you computed its value is -2.00.

Exercise 9.29 a, c, d(9.27a, b, d, e in 8th and 9th editions): Manufacturer’s specs say mean amount of paint in can is 1 gal. with std deviation of 0.2 gal. For a sample of 50 cans the mean is 0.995 gal.

a) Is there evidence that mean amount is different from 1 at 1% significance level? c) Construct a 95% confidence interval for the mean. d) Compare results of a) and c).

a) (Was a) . The average amount of paint per one-gallon can is one gallon.

The average amount of paint per one-gallon can differs from one gallon.

(Was b)Given: and So Note that

(i) Test Ratio: . Our decision rule is to reject if or . Make a diagram showing a Normal curve with a mean at 0 and shaded 'reject' zones above 2.576 and below -2.576. Since is between the two critical values of , we do not reject the

Nullhypothesis. (There is not enough evidence to conclude that the average amount of paint per one-gallon can differs from one gallon.)

(ii) Critical Value: is the formula for a two sided critical value. So we use Make a diagram showing a Normal curve with a mean at 1.00 and shaded 'reject' zones below the critical values 0.993 and above 1.007. Since is between these critical

values, we do not reject .

c) Repeat a) using a 95% confidence interval. d) Compare the result in c) with the result in a).

(Wasd and e)Same decision. is the formula for a two sided confidence interval. This becomes Make a diagram showing a Normal curve with a mean at and, to represent the confidence interval, shade the area between 0.998 and 1.002. Since lies within the confidence interval, do not reject .

Exercise 9.48[9.46 in 9th edition] (9.44 in 8th edition):What is value of t if we are testing and We are now assuming that is unknown.

Since the null hypothesis is , we have Thus and

Exercise 9.49 [9.47 in 9th edition] (9.45 in 8th edition:What is the number of degrees of freedom in 9.48?

df = n – 1 = 16 – 1 = 15

Exercise 9.50 [9.48 in 9th edition] (9.46 in 8th edition):What are the critical values of t in 9.48 if and the alternate hypothesis is (a) ?

We use or for a one-tailed test and for a two-tailed test. (In these problems the text used ‘crit’ for critical values of t from the t table and ‘calc’ for the value of t calculated in 9.48)

(a) For a two-tailed test with a 0.05 level of confidence, tcrit =.

(b) For an upper-tailed test with a 0.05 level of confidence, tcrit = .

Exercise 9.51 [9.49 in 9th] (9.47 in 8th edition):What is the conclusion if the alternate hypothesis is (a) (b)?

Fromthe Instructor’s Solution Manual and using the test ratio method,

(a) Since tcalc = 2.00 is between the critical bounds of tcrit = 2.131, do not reject H0.

(b) Since tcalc = 2.00 is above the critical bound of tcrit = + 1.753, reject H0.

Exercise 9.54 [9.52 in 9th] (9.50 in 8th edition):Problem Summary: From a sample of 100 students we find that the mean expenditure for books is $315.40 with a standard deviation of $43.20. In a) you are asked to test whether the (population) mean expenditure is above $300 using 10% significance level. b) What if and ? c) What if , and .

Solution:Since the problem asks if the mean is above $300, and this does not contain an equality, it must be an alternate hypothesis. Our hypotheses are , (The average cost of textbooks per semester at a large university is no more than $300.) and (The average cost of textbooks per semester at a large university is more than $300.) This is a right-sided test.

(a)Given: and (in the 8th edition.) So Note that ( in the 8th edition.)

(i) Test Ratio: . The larger the sample mean is,the more positive will be this ratio. We will reject the null hypothesis if the ratio is larger than Make a diagram showing a Normal curve with a mean at 0 and a shaded'reject' zone above 1.290. Since the test ratio is above 1.290, we reject . (For the 8th edition, thecritical bound is 2.365 and we reject .)

(If you are reviewing and wish to use a p-value approach, since this is a right-side test, the p-value is the probability of getting a value above 315.40 when the null hypothesis is true. If we use the test ratio above we get. . To find this approximately, go to the line of the t table. 3.5648 is not between any values, but we can see that This means that . Since 3.5648 is even further away from zero than 3.175, the probability above it must be even lower than .001. We conclude that Since the p-value is below we reject the null hypothesis.

(ii) Critical value: We need a critical value for above$300. Common sense says that if the samplemean is too far above $300, we will not believe . The formula for a critical value for the sample mean is , but we want a single value above 300, so use . Make a diagram showing an almost Normal curve with a mean at 300and a shaded 'reject' zone above305.57. Since is above 305.57, we reject . (In the 8th edition, the critical value is , so we reject )

(iii) Confidence interval: is the formula for a two sided interval. The rule for a one-sided confidence interval is that it should always go in the same direction as the alternate hypothesis. Since the alternative hypothesis is , the confidence interval is . Make a diagram showing an almost Normal curve with a mean at and, to represent the confidence interval, shade the area above 309.83 in one direction. Then, on the same diagram, to represent the null hypothesis,, shade the area below300 in the opposite direction. Notice that these do not overlap. What the diagram is telling you is that it is impossible for and to both be true. So we reject . (If we use the numbers in the 8th edition, the confidence interval is with the same results.)

(b)Summary: Repeat a) with a 5% significance level and a sample standard deviation of $75.

Our hypotheses are still , (The average cost of textbooks per semester at a large university is no more than $300.) and (The average cost of textbooks per semester at a large university is more than $300.) Given: and So Note that

If we use the Test Ratio method . We will reject the null hypothesis if the ratio is larger than Make a diagram showing a Normal curve with a mean at 0 and a shaded 'reject' zone above 1.660. Since the test ratio is above 1.290, we reject . ( There is enough evidence to conclude that the average cost of textbooks per semester at a large university is more than $300.)

(For the p-value approach, note that 2.0533 is between 1.984 and 2.365 on the line of the t table, since these are the .025 and .01 values, we can say . Since this p-value is below the significance level, we reject the null hypothesis.

(c)Problem summary: Repeat a) with a 10% significance level and a sample standard deviation of $43.20.

. Given: and (in the 8th edition.) So Note that( in the 8th edition.)It is probable easiest to use a critical value for the sample mean. We already know . Since is not above 305.57, we do not reject . (In the 8th edition, the critical value is , so we do not reject ) There is not enough evidence to conclude that the average cost of textbooks per semester at a large university is more than $300.