58
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing

Chapter 8

Embed Size (px)

DESCRIPTION

Chapter 8. Hypothesis Testing. Hypothesis Testing. 8.1 Null and Alternative Hypotheses and Errors in Testing 8.2 z Tests about a Population Mean ( s Known): One-Sided Alternatives 8.3 z Tests about a Population Mean ( s Known): Two-Sided Alternatives - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 8

McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.

Chapter 8Chapter 8

Hypothesis TestingHypothesis Testing

Page 2: Chapter 8

8-2

Hypothesis TestingHypothesis Testing

8.1Null and Alternative Hypotheses and Errors in Testing

8.2 z Tests about a Population Mean (s Known): One-Sided Alternatives

8.3 z Tests about a Population Mean (s Known): Two-Sided Alternatives

8.4 t Tests about a Population Mean (s Unknown)

Page 3: Chapter 8

8-3

Hypothesis Testing ContinuedHypothesis Testing Continued

8.5 z Tests about a Population Proportion

8.6Type II Error Probabilities and Sample Size Determination (optional)

8.7 The Chi-Square Distribution (optional)

8.8Statistical Inference for a Population Variance (optional)

Page 4: Chapter 8

8-4

Null and Alternative HypothesesNull and Alternative Hypotheses

The null hypothesis, denoted H0, is a statement of the basic proposition being tested. The statement generally represents the status quo and is not rejected unless there is convincing sample evidence that it is false.

The alternative or research hypothesis, denoted Ha, is an alternative (to the null hypothesis) statement that will be accepted only if there is convincing sample evidence that it is true

Page 5: Chapter 8

8-5

Summary of Types of HypothesesSummary of Types of Hypotheses

• One-Sided, “Greater Than” Alternative

H0: 0 vs. Ha: > 0

• One-Sided, “Less Than” Alternative

H0 : 0 vs. Ha : < 0

• Two-Sided, “Not Equal To” Alternative

H0 : = 0 vs. Ha : 0

where 0 is a given constant value (with the appropriate units) that is a comparative value

Page 6: Chapter 8

8-6

Types of DecisionsTypes of Decisions

• As a result of testing H0 vs. Ha, will have to decide either of the following decisions for the null hypothesis H0:

• Do not reject H0

• A weaker statement than “accepting H0”

• But you are rejecting the alternative Ha

OR

• Reject H0

• A weaker statement than “accepting Ha”

Page 7: Chapter 8

8-7

Test StatisticTest Statistic

• In order to “test” H0 vs. Ha, use the “test statistic”

where 0 is the given value (often the claimed to be true) and x-bar is the mean of a sample

• z measures the distance between 0 and x-bar on the sampling distribution of the sample mean

• If the population is normal or the sample size is large*, then the test statistic z follows a normal distribution

* n ≥ 30, by the Central Limit Theorem

n

xxz

x s

-

s-

00

Page 8: Chapter 8

8-8

Type I and Type II Errors

State of Nature

Conclusion H0 True H0 False

Reject H0 Type I Error

Correct Decision

Do not Reject H0 Correct Decision

Type II Error

Type I Error: Rejecting H0 when it is true

Type II Error: Failing to reject H0 when it is false

Page 9: Chapter 8

8-9

Error Probabilities

Type I Error: Rejecting H0 when it is true a is the probability of making a Type I error

1 – a is the probability of not making a Type I error

Type II Error: Failing to reject H0 when it is false is the probability of making a Type II error

1 – is the probability of not making a Type II errorState of Nature

Conclusion H0 True H0 False

Reject H0 a 1 – a

Do not Reject H0 1 –

Page 10: Chapter 8

8-10

Typical ValuesTypical Values

• Usually set a to a low value• So that there is only a small chance of rejecting a

true H0

• Typically, a = 0.05• For a = 0.05, strong evidence is required to reject H0

• Usually choose a between 0.01 and 0.05– a = 0.01 requires very strong evidence is to reject H0

• Sometimes choose a as high as 0.10• Tradeoff between a and

• For fixed sample size, the lower we set a, the higher is

– And the higher a, the lower

Page 11: Chapter 8

8-11

z Tests about a Population Mean(s Known): One-Sided Alternatives

z Tests about a Population Mean(s Known): One-Sided Alternatives

• Test hypotheses about a (normal) population mean using the normal distribution• Called z tests• Require that the true value of the population

standard deviation s is known• In most real-world situations, s is not known

– But often is estimated from s of a single sample– When s is unknown, test hypotheses about a

population mean using the t distribution

• Here, assume that we know s

• Also use a “rejection rule”

Page 12: Chapter 8

8-12

Steps in Testing a “Greater Than”Alternative

Steps in Testing a “Greater Than”Alternative

The steps are as follows:

1. State the null and alternative hypotheses

2. Specify the significance level a3. Select the test statistic

4. Determine the rejection rule for deciding whether or not to reject H0

5. Collect the sample data and calculate the value of the test statistic

6. Decide whether to reject H0 by using the test statistic and the rejection rule

7. Interpret the statistical results in managerial terms and assess their practical importance

Page 13: Chapter 8

8-13

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #1

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #1

1. State the null and alternative hypotheses• H0: 50

Ha: > 50

where is the mean breaking strength of the new bag

2. Specify the significance level a• a = 0.05

Page 14: Chapter 8

8-14

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #2

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #2

3. Select the test statistic• Use the test statistic

• A positive value of this this test statistic results from a sample mean that is greater than 50 lbs• Which provides evidence against H0 in favor of

Ha

n

xxz

x s

-

s-

5050

Page 15: Chapter 8

8-15

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #3

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #3

4. Determine the rejection rule for deciding whether or not to reject H0

• To decide how large the test statistic must be to reject H0 by setting the probability of a Type I error to a, do the following:

• The probability a is the area in the right-hand tail of the standard normal curve

• Use the normal table to find the point za (called the rejection or critical point)• za is the point under the standard normal curve that

gives a right-hand tail area equal to a• Since a = 0.05 in the trash bag case, the rejection

point is za = z0.05 = 1.645

Page 16: Chapter 8

8-16

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #4

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #4

4. Continued• Reject H0 in favor of Ha if the test statistic z is

greater than the rejection point za

• This is the rejection rule

• In the trash bag case, the rejection rule is to reject H0 if the calculated test statistic z is > 1.645

Page 17: Chapter 8

8-17

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #5

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #5

5. Collect the sample data and calculate the value of the test statistic• In the trash bag case, assume that s is known

and s = 1.65 lbs

• For a sample of n = 40, = 50.575 lbs. Then x

20240651

505755050.

.

.

n

xz

-

s

-

Page 18: Chapter 8

8-18

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #6

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #6

6. Decide whether to reject H0 by using the test statistic and the rejection rule• Compare the value of the test statistic to the

rejection point according to the rejection rule

• In the trash bag case, z = 2.20 is > z0.05 = 1.645

• Therefore reject H0: ≤ 50 in favor of Ha: > 50 at the 0.05 significance level• Have rejected H0 by using a test that allows only

a 5% chance of wrongly rejecting H0

• This result is “statistically significant” at the 0.05 level

Page 19: Chapter 8

8-19

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #7

Steps in Testing a “Greater Than”Alternative in Trash Bag Case #7

7. Interpret the statistical results in managerial terms and assess their practical importance• Can conclude that the mean breaking strength

of the new bag exceeds 50 lbs

Page 20: Chapter 8

8-20

Effect of aEffect of a

• At a = 0.01, the rejection point is z0.01 = 2.33

• In the trash example, the test statistic z = 2.20 is < z0.01 = 2.33

• Therefore, cannot reject H0 in favor of Ha at the a = 0.01 significance level• This is the opposite conclusion reached with a = 0.05

• So, the smaller we set a, the larger is the rejection point, and the stronger is the statistical evidence that is required to reject the null hypothesis H0

Page 21: Chapter 8

8-21

The p-Value

• The p-value or the observed level of significance is the probability of the obtaining the sample results if the null hypothesis H0 is true

• The p-value is used to measure the weight of the evidence against the null hypothesis

• Sample results that are not likely if H0 is true have a low p-value and are evidence that H0 is not true• The p-value is the smallest value of a for which

we can reject H0

• Use the p-value as an alternative to testing with a z test statistic

Page 22: Chapter 8

8-22

Steps Using a p-value to Test a“Greater Than” Alternative

Steps Using a p-value to Test a“Greater Than” Alternative

4. Collect the sample data and compute the value of the test statistic• In the trash bag case, the value of the test statistic

was calculated to be z = 2.20

5. Calculate the p-value by corresponding to the test statistic value• In the trash bag case, the area under the standard

normal curve in the right-hand tail to the right of the test statistic value z = 2.20

• The area is 0.5 – 0.4861 = 0.0139

• The p-value is 0.0139

Page 23: Chapter 8

8-23

Steps Using a p-value to Test a“Greater Than” Alternative Continued

Steps Using a p-value to Test a“Greater Than” Alternative Continued

5. Continued• If H0 is true, the probability is 0.0139 of obtaining

a sample whose mean is 50.575 lbs or higher

• This is so low as to be evidence that H0 is false and should be rejected

6. Reject H0 if the p-value is less than a• In the trash bag case, a was set to 0.05• The calculated p-value of 0.0139 is < a = 0.05

• This implies that the test statistic z = 2.20 is > the rejection point z0.05 = 1.645

• Therefore reject H0 at the a = 0.05 significance level

Page 24: Chapter 8

8-24

Steps in Testing a “Less Than”Alternative in Payment Time Case #1

Steps in Testing a “Less Than”Alternative in Payment Time Case #1

1. State the null and alternative hypotheses• In the payment time case, H0: ≥ 19.5 vs. Ha:

< 19.5, where is the mean bill payment time (in days)

2. Specify the significance level a• In the payment time case, set a = 0.01

Page 25: Chapter 8

8-25

Steps in Testing a “Less Than”Alternative in Payment Time Case #2

Steps in Testing a “Less Than”Alternative in Payment Time Case #2

3. Select the test statistic• In the payment time case, use the test

statistic

• A negative value of this this test statistic results from a sample mean that is less than 19.5 days• Which provides evidence against H0 in favor of

Ha

n

.x.xz

x s

-

s-

519519

Page 26: Chapter 8

8-26

Steps in Testing a “Less Than”Alternative in Payment Time Case #3

Steps in Testing a “Less Than”Alternative in Payment Time Case #3

4. Determine the rejection rule for deciding whether or not to reject H0

• To decide how much less than 0 the test statistic must be to reject H0 by setting the probability of a Type I error to a, do the following:

• The probability a is the area in the left-hand tail of the standard normal curve

• Use normal table to find the rejection point –za

• –za is the negative of za

• –za is the point on the horizontal axis under the standard normal curve that gives a left-hand tail area equal to a

Page 27: Chapter 8

8-27

Steps in Testing a “Less Than”Alternative in Payment Time Case #3

Steps in Testing a “Less Than”Alternative in Payment Time Case #3

4. Continued• Because a = 0.01 in the payment time case,

the rejection point is –za = –z0.01 = –2.33

• Reject H0 in favor of Ha if the test statistic z is calculated to be less than the rejection point –za

• This is the rejection rule

• In the payment time case, the rejection rule is to reject H0 if the calculated test statistic –z is less than –2.33

Page 28: Chapter 8

8-28

Steps in Testing a “Less Than”Alternative in Payment Time Case #4

Steps in Testing a “Less Than”Alternative in Payment Time Case #4

5. Collect the sample data and calculate the value of the test statistic• In the payment time case, assume that s is

known and s = 4.2 days

• For a sample of n = 65, x-bar = 18.1077 days:

6726524

519107718519.

.

..

n

.xz -

-

s

-

Page 29: Chapter 8

8-29

Steps in Testing a “Less Than”Alternative in Payment Time Case #5

Steps in Testing a “Less Than”Alternative in Payment Time Case #5

6. Decide whether to reject H0 by using the test statistic and the rejection rule• Compare the value of the test statistic to the

rejection point according to the rejection rule

• In the payment time case, z = –2.67 is less than z0.01 = –2.33

• Therefore reject H0: ≥ 19.5 in favor ofHa: < 19.5 at the 0.01 significance level

• Have rejected H0 by using a test that allows only a 1% chance of wrongly rejecting H0

• This result is “statistically significant” at the 0.01 level

Page 30: Chapter 8

8-30

Steps in Testing a “Less Than”Alternative in Payment Time Case #6

Steps in Testing a “Less Than”Alternative in Payment Time Case #6

7. Interpret the statistical results in managerial terms and assess their practical importance• Can conclude that the mean bill payment

time of the new billing system is less than 19.5 days

Page 31: Chapter 8

8-31

Steps Using a p-value to Test a“Less Than” Alternative

Steps Using a p-value to Test a“Less Than” Alternative

4. Collect the sample data and compute the value of the test statistic• In the payment time case, the value of the test

statistic was calculated to be z = –2.67

5. Calculate the p-value by corresponding to the test statistic value• In the payment time case, the area under the

standard normal curve in the left-hand tail to the left of the test statistic z = –2.67

• The area is 0.5 – 0.4962 = 0.0038

• The p-value is 0.0038

Page 32: Chapter 8

8-32

Steps Using a p-value to Test a“Less Than” Alternative Continued

Steps Using a p-value to Test a“Less Than” Alternative Continued

5. Continued• If H0 is true, then the probability is 0.0038 of

obtaining a sample whose mean is as low as 18.1077 days or lower

• This is so low as to be evidence that H0 is false and should be rejected

6. Reject H0 if the p-value is less than a• In the payment time case, a was 0.01• The calculated p-value of 0.0038 is < a = 0.01

• This implies that the test statistic z = –2.67 is less than the rejection point –z0.01 = –2.33

• Therefore, reject H0 at the a = 0.01 significance level

Page 33: Chapter 8

8-33

z Tests about a Population Mean(s Known): Two-Sided Alternatives

z Tests about a Population Mean(s Known): Two-Sided Alternatives

• Testing a “not equal to” alternative hypothesis• The sampling distribution of all possible

sample means is modeled by a normal curve

• Require that the true value of the population standard deviation s is known

• What’s new and different here?

• The area corresponding to the significance level a is evenly split into both the right- and left-hand tails of the standard normal curve

Page 34: Chapter 8

8-34

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #1

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #1

1. State the null and alternative hypotheses• In the camshaft case, H0: = 4.5 vs. Ha: ≠

4.5, where is the mean hardness depth of the camshaft (in mm)

2. Specify the significance level a• In the camshaft case, set a = 0.05

3. Select the test statistic• In the camshaft case, use the test statistic

n

.x.xz

x s

-

s-

5454

Page 35: Chapter 8

8-35

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #2

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #2

3. Continued• A positive value of this test statistic results from a

sample mean that is greater than 4.5 mm• Which provides evidence against H0 and for Ha

• A negative value of this this test statistic results from a sample mean that is less than 4.5 mm• Which provides evidence against H0 and for Ha

• A very small value close to 0 (either very slightly positive or very slightly negative) of this this test statistic results from a sample mean that is nearly 4.5 mm• Which provides evidence in favor of H0 and against Ha

Page 36: Chapter 8

8-36

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #3

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #3

4. Determine the rejection rule for deciding whether or not to reject H0

• To decide how different the test statistic must be from zero (positive or negative) to reject H0 in favor of Ha by setting the probability of a Type I error to a, do the following:

• Divide the a in half to find a/2; a/2 is the tail area in both tails of the standard normal curve• Under the standard normal curve, the

probability a is the area in the right-hand tail and probability a is the area in the left-hand tail

Page 37: Chapter 8

8-37

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #4

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #4

4. Continued• Use the normal table to find the rejection

points za and –za

• za is the point on the horizontal axis under the standard normal curve that gives a right-hand tail area equal to a

• –za is the point on the horizontal axis under the standard normal curve that gives a left-hand tail area equal to a

Page 38: Chapter 8

8-38

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #5

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #5

4. Continued• Because a = 0.05 in the camshaft case, a/2=0.025

• The area under the standard normal to the right of the mean is 0.5 – 0.025 = 0.475

• From Table A.3, the area is 0.475 for z = 1.96

• The rejection points areza = z0.025 = 1.96 OR –za = – z0.025 = – 1.96

• Reject H0 in favor of Ha if the test statistic z satisfies either:

z greater than the rejection point za

OR

–z less than the rejection point –za

• This is the rejection rule

Page 39: Chapter 8

8-39

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #6

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #6

5. Collect the sample data and calculate the value of the test statistic• In the camshaft case, assume that s is

known and s = 0.47 mm

• For a sample of n = 40, x-bar = 4.26 mm

• Then

02335470

5426454.

.

..

n

.xz -

-

s

-

Page 40: Chapter 8

8-40

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #7

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #7

6. Decide whether to reject H0 by using the test statistic and the rejection rule• Compare the value of the test statistic to the

rejection point according to the rejection rule

• In the camshaft case, – z = –3.02 is < – z0.025 = –1.96

• Therefore reject H0: = 4.5 in favor of Ha: ≠ 4.5 at the 0.05 significance level• Have rejected H0 by using a test that allows only a

5% chance of wrongly rejecting H0

• This result is “statistically significant” at the 0.05 level

Page 41: Chapter 8

8-41

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #8

Steps in Testing a “Not Equal To”Alternative in Camshaft Case #8

7. Interpret the statistical results in managerial terms and assess their practical importance• Can conclude that the mean hardness depth of

the camshaft is not 4.5 mm

Page 42: Chapter 8

8-42

Steps Using a p-value to Test a“Not Equal To” Alternative

Steps Using a p-value to Test a“Not Equal To” Alternative

4. Collect the sample data and compute the value of the test statistic• In the camshaft case, the value of the test

statistic was calculated to be z = –3.02

5. Calculate the p-value by corresponding to the test statistic value• In the camshaft case, the area under the

standard normal curve in the left-hand tail to the left of the test statistic value z = –3.02

• The area is 0.5 – 0.4987 = 0.0013

• The p-value is 0.0013

Page 43: Chapter 8

8-43

Steps Using a p-value to Test a“Not Equal To” Alternative Continued

Steps Using a p-value to Test a“Not Equal To” Alternative Continued

5. Continued• That is, if H0 is true, then the probability is 0.0013 of

obtaining a sample whose mean is as small as 4.26 mm or less

• This probability is so low as to be evidence that H0 is false and should be rejected

6. Reject H0 if the p-value is less than a• In the camshaft case, a was 0.05• The calculated p-value of 0.0013 is < a = 0.05

• This implies that the test statistic z = –3.02 is less than the rejection point –z0.025 = –1.96

• Therefore reject H0 at the a = 0.01 significance level

Page 44: Chapter 8

8-44

Weight of Evidence Against the NullWeight of Evidence Against the Null

• Calculate the test statistic and the corresponding p-value

• Rate the strength of the conclusion about the null hypothesis H0 according to these rules:

• If p < 0.10, then there is some evidence to reject H0

• If p < 0.05, then there is strong evidence to reject H0

• If p < 0.01, then there is very strong evidence to reject H0

• If p < 0.001, then there is extremely strong evidence to reject H0

Page 45: Chapter 8

8-45

Confidence Intervals vs.Hypothesis Testing

Confidence Intervals vs.Hypothesis Testing

• The null hypothesis H0 can be rejected in favor of the alternative Ha by setting the probability of a Type I error equal to a if and only if the 100(1 – a)% confidence interval for does not contain 0

• where 0 is the claimed value for the population mean

• In other words, if the confidence interval does not contain the claimed value 0, then it can be rejected as being false

Page 46: Chapter 8

8-46

Confidence Intervals vs.Hypothesis Testing Continued

Confidence Intervals vs.Hypothesis Testing Continued

• The a used here is the same a used in Chapter 7• The confidence level is 1 – a• The significance level is a• (1 – a ) + a = 1, so the confidence level and

significance levels are complementary

Page 47: Chapter 8

8-47

t Tests about a Population Mean(s Unknown)

t Tests about a Population Mean(s Unknown)

• Suppose the population being sampled is normally distributed

• The population standard deviation s is unknown, as is the usual situation• If the population standard deviation s is unknown, then

it will have to estimated from a sample standard deviation s

• Under these two conditions, have to use the t distribution to test hypotheses• The t distribution from Chapter 7

Page 48: Chapter 8

8-48

Defining the t Random Variable(s Unknown)

Defining the t Random Variable(s Unknown)

• Define a new random variable t:

• with the definition of symbols as before

• The sampling distribution of this random variable is a t distribution with n – 1 degrees of freedom

ns

xt

-

Page 49: Chapter 8

8-49

Defining the t Statistic (s Unknown)Defining the t Statistic (s Unknown)

• Let x-bar be the mean of a sample of size n with standard deviation s

• Also, 0 is the claimed value of the population mean

• Define a new test statistic

• If the population being sampled is normal, and • If s is used to estimate s, then … • The sampling distribution of the t statistic is a t

distribution with n – 1 degrees of freedom

ns

xt 0-

Page 50: Chapter 8

8-50

t Tests about a Population Mean(s Unknown)

t Tests about a Population Mean(s Unknown)

• Reject H0: = 0 in favor of a particular alternative hypothesis Ha at the a level of significance if and only if the appropriate rejection point rule or, equivalently, the corresponding p-value is less than a

• We have the following rules …

Page 51: Chapter 8

8-51

t Tests about a Population Mean(s Unknown) Continued

t Tests about a Population Mean(s Unknown) Continued

Alternative Reject H0 if: p-value

Ha: > 0 t > ta Area under t distribution to right of t

Ha: < 0 t < –ta Area under t distribution to left of –t

Ha: 0 |t| > t a/2 * Twice area under t distribution to right of |t|

• ta, ta/2, and p-values are based on n – 1 degrees of freedom (for a sample of size n)

* either t > ta/2 or t < –ta/2

Page 52: Chapter 8

8-52

Hypothesis Tests about aPopulation Proportion

If the sample size n is large, we can reject H0: p = p0 at the a level of significance (probability of Type I error equal to a) if and only if the appropriate rejection point condition holds or, equivalently, if the corresponding p-value is less than a

We have the following rules …

Page 53: Chapter 8

8-53

Hypothesis Tests about aPopulation Proportion Continued

* either z > za/2 or z < –za/2

where the test statistic is:

)n

pp

pp̂z

00

0

1-

-

0

0

0

:

:

:

ppH

ppH

ppH

a

a

a

2/zz

zz

zz

a

a

a

-

Alternative

Reject H0 if: p-value

Area under standard normal to the right of z

Area under standard normal to the left of –z

Twice the area under standard normal to the right of |z|

*

Page 54: Chapter 8

8-54

Type II Error ProbabilitiesType II Error Probabilities

• Want the probability of not rejecting a false null hypothesis– That is, want the probability of committing a

Type II error– - is called the power of the test

Page 55: Chapter 8

8-55

Calculating Calculating

• Assume that the sampled population is normally distributed, or that a large sample is taken

• Test H0: = 0 vs Ha: < 0 or Ha: > 0 or Ha: ≠ 0

• Want to make the probability of a Type I error equal to a and randomly select a sample of size n

• The probability of a Type II error corresponding to the alternative value a for is equal to the area under the standard normal curve to the left of

• Here z* equals za if the alternative hypothesis is one-sided ( < 0 or > 0)

• Also z* ≠ za/2 if the alternative hypothesis is two-sided ( ≠ 0)

n*z a

s

-- 0

Page 56: Chapter 8

8-56

Sample SizeSample Size

• Assume that the sampled population is normally distributed, or that a large sample is taken

• Test H0: = 0 vs. Ha: < 0 or Ha: > 0 or Ha: ≠ 0

• Want to make the probability of a Type I error equal to a and the probability of a Type II error corresponding to the alternative value a for equal to

• Then take a sample of size:

• Here z* equals za, if the alternative hypothesis is one-sided ( < 0 or > 0) and z* equals za/2 if the alternative hypothesis is two-sided ( ≠ 0)

• Also z is the point on the scale of the standard normal curve that gives a right-hand tail area equal to

) )20

22

a

z*zn

-

s

Page 57: Chapter 8

8-57

The Chi-Square DistributionThe Chi-Square Distribution

The chi-square χ² distribution depends on the number of degrees of freedom

• See Table A.17

A chi-square point χ²a is the point under a chi-square distribution that gives right-hand tail area a

Page 58: Chapter 8

8-58

Statistical Inference forPopulation Variance

Statistical Inference forPopulation Variance

If s2 is the variance of a random sample of n measurements from a normal population with variance s2, then the sampling distribution of the statistic (n - 1) s2 / s2 is a chi-square distribution with (n – 1) degrees of freedom and

100(1-a)% confidence interval for s2

All chi-square points are based on n – 1 degrees of freedom

--

-2

2/1

2

22/

2 )1(,

)1(

aa snsn

Test of H0: s2 = s20

Test Statistic

Reject H0 in favor of

20

22 )1(

s sn -

21

22220

2

21

220

2

2220

2

orif:if:if:

aa

a

a

ssssss

-

-

a

a

a

HHH