Hypothesis Testing

41
1 Slide Hypothesis Testing Chapter 9 BA 201

description

Hypothesis Testing. Chapter 9 BA 201. Hypothesis Testing. The null hypothesis , denoted by H 0 , is a tentative assumption about a population parameter. The alternative hypothesis , denoted by H a , is the opposite of what is stated in the null hypothesis. - PowerPoint PPT Presentation

Transcript of Hypothesis Testing

Page 1: Hypothesis Testing

1 Slide

Hypothesis Testing

Chapter 9BA 201

Page 2: Hypothesis Testing

2 Slide

Hypothesis Testing The null hypothesis, denoted by H0 , is a tentative assumption about a population parameter. The alternative hypothesis, denoted by Ha, is the opposite of what is stated in the null hypothesis.

Page 3: Hypothesis Testing

3 Slide

One-tailed(lower-tail)

One-tailed(upper-tail)

Two-tailed

0 0: H

0: aH 0 0: H

0: aH 0 0: H

0: aH

Summary of Forms for Null and Alternative Hypotheses about a

Population Mean Three Scenarios:

Page 4: Hypothesis Testing

4 Slide

Type I and Type II Errors

CorrectDecision Type II Error

CorrectDecisionType I ErrorReject H0

(Conclude > 12)

Accept H0(Conclude < 12)

H0 True( < 12)

H0 False( > 12)Conclusion

Population Condition

Page 5: Hypothesis Testing

5 Slide

Two Scenarios

Known z Score Unknown t Value

Page 6: Hypothesis Testing

6 Slide

HYPOTHESIS TESTING KNOWN

Page 7: Hypothesis Testing

7 Slide

p-Value Approach

Reject H0 if the p-value < .

The p-value is the probability, computed using the test statistic, that measures the support (or lack of support) provided by the sample for the null hypothesis.

Page 8: Hypothesis Testing

8 Slide

Rejection Rule: p -Value Approach

H0: Reject H0 if z > z

Reject H0 if z < -z

Reject H0 if z < -z or z > z

H0:

H0:

Tests About a Population Mean: Known

Rejection Rule: Critical Value Approach

Reject H0 if p–value <

Ha:

Ha:

Ha:

Page 9: Hypothesis Testing

9 Slide

0z

-z = -1.28

= 0.10

p-value7

z =-1.46

Lower-Tailed Test About a Population Mean

Page 10: Hypothesis Testing

10 Slide

0z

z = 1.75

= 0.04

p-Value11

z =2.29

Upper-Tailed Test About a Population Mean

Page 11: Hypothesis Testing

11 Slide

Two-Tailed Tests About a Population Mean

0z

/2 = .015

-z/2 = -2.17

/2 = .015

z/2 = 2.17z = 2.74

1/2p -value= .0031

z = -2.74

1/2p -value= .0031

Page 12: Hypothesis Testing

12 Slide

z Statistics for Known

z xn

0

/Where

0 is the mean under H0

is the population standard deviationn is the sample size

Page 13: Hypothesis Testing

13 Slide

Metro EMS

The EMS director wants to perform a hypothesistest, with a .05 level of significance, to determinewhether the service goal of 12 minutes or less is being achieved.

The response times for a random sample of 40medical emergencies were tabulated. The samplemean is 13.25 minutes. The population standarddeviation is believed to be 3.2 minutes.

One-Tailed Tests About a Population Mean: Known

Page 14: Hypothesis Testing

14 Slide

1. Develop the hypotheses.

2. Specify the level of significance. = 0.05

H0: 1Ha:1

p -Value and Critical Value Approaches

One-Tailed Tests About a Population Mean: Known

3. Compute the value of the test statistic.

13.25 12 2.47/ 3.2/ 40

xzn

Page 15: Hypothesis Testing

15 Slide

5. Determine whether to reject H0.

p –Value Approach

One-Tailed Tests About a Population Mean: Known

4. Compute the p –value.For z = 2.47, cumulative probability = 0.9932.

p–value = 1 0.9932 = 0.0068

Because p–value = 0.0068 < = .05, we reject H0.

There is sufficient statistical evidence

to infer that Metro EMS is not meeting

the response goal of 12 minutes.

Page 16: Hypothesis Testing

16 Slide

p –Value Approach

0z

z =1.645

= .05

p-value

z =2.47

One-Tailed Tests About a Population Mean: Known

Samplingdistribution of z x

n

0/

Page 17: Hypothesis Testing

17 Slide

5. Determine whether to reject H0.

There is sufficient statistical evidence

to infer that Metro EMS is not meeting

the response goal of 12 minutes.

Because 2.47 > 1.645, we reject H0.

Critical Value Approach

One-Tailed Tests About a Population Mean: Known

For = 0.05, z0.05 = 1.6454. Determine the critical value and rejection rule.

Reject H0 if z > 1.645

Page 18: Hypothesis Testing

18 Slide

p-Value Approach toTwo-Tailed Hypothesis Testing

Reject H0 if the p-value < .

Compute the p-value using the following three steps:

3. Double the tail area obtained in step 2 to obtain the p–value.

2. If z is in the upper tail (z > 0), find the area under the standard normal curve to the right of z. If z is in the lower tail (z < 0), find the area under the standard normal curve to the left of z.

1. Compute the value of the test statistic z.

Page 19: Hypothesis Testing

19 Slide

Glow Toothpaste

Quality assurance procedures call for thecontinuation of the filling process if the sampleresults are consistent with the assumption that themean filling weight for the population of toothpastetubes is 6 oz.; otherwise the process will be adjusted.

The production line for Glow toothpaste isdesigned to fill tubes with a mean weight of 6 oz.Periodically, a sample of 30 tubes will be selected inorder to check the filling process.

Two-Tailed Tests About a Population Mean: Known

Page 20: Hypothesis Testing

20 Slide

Perform a hypothesis test, at the 0.03 level ofsignificance, to help determine whether the fillingprocess should continue operating or be stopped andcorrected.

Assume that a sample of 30 toothpaste tubesprovides a sample mean of 6.1 oz. The populationstandard deviation is believed to be 0.2 oz.

Two-Tailed Tests About a Population Mean: Known

Glow Toothpaste

Page 21: Hypothesis Testing

21 Slide

1. Determine the hypotheses.

2. Specify the level of significance.

3. Compute the value of the test statistic.

= .03

p –Value and Critical Value Approaches

H0: Ha: 6

Two-Tailed Tests About a Population Mean: Known

0 6.1 6 2.74/ .2/ 30

xzn

Page 22: Hypothesis Testing

22 Slide

Two-Tailed Tests About a Population Mean: Known

5. Determine whether to reject H0.

p –Value Approach

4. Compute the p –value.For z = 2.74, cumulative probability = 0.9969

p–value = 2(1 0.9969) = 0.0062

Because p–value = 0.0062 < = 0.03, we reject H0.

There is sufficient statistical evidence toinfer that the alternative hypothesis is

true (i.e. the mean filling weight is not 6

ounces).

Page 23: Hypothesis Testing

23 Slide

Two-Tailed Tests About a Population Mean

0z

/2 = .015

-z/2 = -2.17

/2 = .015

z/2 = 2.17z = 2.74

1/2p -value= .0031

z = -2.74

1/2p -value= .0031

Page 24: Hypothesis Testing

24 Slide

Critical Value Approach

Two-Tailed Tests About a Population Mean: Known

5. Determine whether to reject H0.

There is sufficient statistical evidence toinfer that the alternative hypothesis is

true (i.e. the mean filling weight is not 6

ounces).

Because 2.74 > 2.17, we reject H0.

For /2 = .03/2 = .015, z.015 = 2.174. Determine the critical value and rejection rule.

Reject H0 if z < -2.17 or z > 2.17

Page 25: Hypothesis Testing

25 Slide

0

Do Not Reject H0

z

Reject H0

-2.17 2.17

Reject H0

Critical Value Approach

Two-Tailed Tests About a Population Mean: Known

z = 2.74

1/2p -value= .0031

z = -2.74

1/2p -value= .0031

Page 26: Hypothesis Testing

26 Slide

PRACTICE KNOWN

Page 27: Hypothesis Testing

27 Slide

9.16

Page 28: Hypothesis Testing

28 Slide

9.18

Page 29: Hypothesis Testing

29 Slide

HYPOTHESIS TESTING UNKNOWN

Page 30: Hypothesis Testing

30 Slide

Tests About a Population Mean: Unknown

t xs n

0/

This test statistic has a t distributionwith n - 1 degrees of freedom.

Where0 is the mean under H0

s is the sample standard deviationn is the sample size

Page 31: Hypothesis Testing

31 Slide

Rejection Rule: p -Value Approach

H0: Reject H0 if t > t

Reject H0 if t < -t

Reject H0 if t < - t or t > t

H0:

H0:

Tests About a Population Mean: Unknown

Rejection Rule: Critical Value Approach

Reject H0 if p –value <

Ha:

Ha:

Ha:

Page 32: Hypothesis Testing

32 Slide

p -Values and the t Distribution

The format of the t distribution table provided in most statistics textbooks does not have sufficient detail to determine the exact p-value for a hypothesis test. However, we can still use the t distribution table to identify a range for the p-value. An advantage of computer software packages is that the computer output will provide the p-value for the t distribution.

Page 33: Hypothesis Testing

33 Slide

A State Highway Patrol periodically samplesvehicle speeds at various locations on a particularroadway. The sample of vehicle speeds is used totest the hypothesis H0: < 65.

Example: Highway Patrol

One-Tailed Test About a Population Mean: Unknown

The locations where H0 is rejected are deemed thebest locations for radar traps. At Location F, asample of 64 vehicles shows a mean speed of 66.2mph with a standard deviation of 4.2 mph. Use = .05 to test the hypothesis.

Page 34: Hypothesis Testing

34 Slide

One-Tailed Test About a Population Mean: Unknown

1. Determine the hypotheses.

2. Specify the level of significance.

3. Compute the value of the test statistic.

= .05

p –Value and Critical Value Approaches

H0: < 65Ha: > 65

0 66.2 65 2.286/ 4.2/ 64

xts n

Page 35: Hypothesis Testing

35 Slide

One-Tailed Test About a Population Mean: Unknown

p –Value Approach

5. Determine whether to reject H0.

4. Compute the p –value.For t = 2.286, the p–value must be less than .025

(for t = 1.998) and greater than .01 (for t = 2.387)..01 < p–value < .025

Because p–value < = .05, we reject H0.

We are at least 95% confident that the mean speed of vehicles at Location F is greater than 65 mph.

Page 36: Hypothesis Testing

36 Slide

Critical Value Approach

5. Determine whether to reject H0.

We are at least 95% confident that the mean speed of vehicles at Location F is greater than 65 mph. Location F is a good candidate for a radar trap.

Because 2.286 > 1.669, we reject H0.

One-Tailed Test About a Population Mean: Unknown

For = .05 and d.f. = 64 – 1 = 63, t.05 = 1.6694. Determine the critical value and rejection rule.

Reject H0 if t > 1.669

Page 37: Hypothesis Testing

37 Slide

0 t =1.669

Reject H0

Do Not Reject H0

t

One-Tailed Test About a Population Mean: Unknown

Page 38: Hypothesis Testing

38 Slide

PRACTICE UNKNOWN

Page 39: Hypothesis Testing

39 Slide

9.28

Page 40: Hypothesis Testing

40 Slide

9.30

(C.L. = 95%)

Page 41: Hypothesis Testing

41 Slide