56
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze

Chapter 9

Embed Size (px)

DESCRIPTION

Chapter 9. Hypothesis Testing. Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze. Methods for Drawing Inferences. We can draw inferences on a population parameter in two ways: Estimation (Chapter 8) Hypothesis Testing (Chapter 9). Hypothesis Testing. - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 9

Chapter 9

Hypothesis Testing

Understanding Basic Statistics Fifth Edition

By Brase and Brase Prepared by Jon Booze

Page 2: Chapter 9

9 | 2Copyright © Cengage Learning. All rights reserved.

Methods for Drawing Inferences

• We can draw inferences on a population parameter in two ways:

1) Estimation (Chapter 8)

2) Hypothesis Testing (Chapter 9)

Page 3: Chapter 9

9 | 3Copyright © Cengage Learning. All rights reserved.

Hypothesis Testing

• Hypothesis testing is the process of making decisions about the value of a population parameter.

Page 4: Chapter 9

9 | 4Copyright © Cengage Learning. All rights reserved.

Establishing the Hypotheses

• Null Hypothesis: A hypothesis about a parameter that often denotes a theoretical value, a historical value, or a production specification.– Denoted as H0

• Alternate Hypothesis: A hypothesis that differs from the null hypothesis, such that if we reject the null hypothesis, we will accept the alternate hypothesis.– Denoted as H1 (in other sources HA).

Page 5: Chapter 9

9 | 5Copyright © Cengage Learning. All rights reserved.

Hypotheses Restated

Page 6: Chapter 9

9 | 6Copyright © Cengage Learning. All rights reserved.

Statistical Hypotheses

• The null hypothesis is always a statement of equality.– H0: μ = k, where k is a specified value

• The alternate hypothesis states that the parameter (μ or p) is less than, greater than, or not equal to a specified value.

Page 7: Chapter 9

9 | 7Copyright © Cengage Learning. All rights reserved.

Statistical Hypotheses

Which of the following is an acceptable null hypothesis?

a). H0: 1.2 b). H0: > 1.2

c). H0: = 1.2 d). H0: 1.2

Page 8: Chapter 9

9 | 8Copyright © Cengage Learning. All rights reserved.

Statistical Hypotheses

Which of the following is an acceptable null hypothesis?

a). H0: 1.2 b). H0: > 1.2

c). H0: = 1.2 d). H0: 1.2

Page 9: Chapter 9

9 | 9Copyright © Cengage Learning. All rights reserved.

Types of Tests

• Left-Tailed Tests: H1: μ < k

H1: p < k

• Right-Tailed Tests: H1: μ > k

H1: p > k

• Two-Tailed Tests: H1: μ ≠ k

H1: p ≠ k

Page 10: Chapter 9

9 | 10Copyright © Cengage Learning. All rights reserved.

Types of Tests

A production manager believes that a particular machine averages 150 or more parts produced per day. What would be the appropriate hypotheses for testing this claim?

a). H0: 150; H1: > 150

b). H0: > 150; H1: = 150

c). H0: = 150; H1: 150

d). H0: = 150; H1: > 150

Page 11: Chapter 9

9 | 11Copyright © Cengage Learning. All rights reserved.

Types of Tests

A production manager believes that a particular machine averages 150 or more parts produced per day. What would be the appropriate hypotheses for testing this claim?

a). H0: 150; H1: > 150

b). H0: > 150; H1: = 150

c). H0: = 150; H1: 150

d). H0: = 150; H1: > 150

Page 12: Chapter 9

9 | 12Copyright © Cengage Learning. All rights reserved.

Hypothesis Testing Procedure

1) Select appropriate hypotheses.2) Draw a random sample.3) Calculate the test statistic.4) Assess the compatibility of the test statistic

with H0.5) Make a conclusion in the context of the

problem.

Page 13: Chapter 9

9 | 13Copyright © Cengage Learning. All rights reserved.

Hypothesis Test of μx is Normal, σ is Known

Page 14: Chapter 9

9 | 14Copyright © Cengage Learning. All rights reserved.

P-Value

P-values are sometimes called the probability of chance.

Low P-values are a good indication that your test results are not due to chance.

Page 15: Chapter 9

9 | 15Copyright © Cengage Learning. All rights reserved.

P-Value for Left-Tailed Test

Page 16: Chapter 9

9 | 16Copyright © Cengage Learning. All rights reserved.

P-Value for Right-Tailed Test

Page 17: Chapter 9

9 | 17Copyright © Cengage Learning. All rights reserved.

P-Value for Two-Tailed Test

Page 18: Chapter 9

9 | 18Copyright © Cengage Learning. All rights reserved.

Types of Errors in Statistical Testing

• Since we are making decisions with incomplete information (sample data), we can make the wrong conclusion.

– Type I Error: Rejecting the null hypothesis when the null hypothesis is true.

– Type II Error: Accepting the null hypothesis when the null hypothesis is false.

Page 19: Chapter 9

9 | 19Copyright © Cengage Learning. All rights reserved.

Type I and Type II Errors

Page 20: Chapter 9

9 | 20Copyright © Cengage Learning. All rights reserved.

Errors in Statistical Testing

• Unfortunately, we usually will not know when we have made an error.

• We can only talk about the probability of making an error.

• Decreasing the probability of making a type I error will increase the probability of making a type II error (and vice versa).

• We can only decrease the probability of both types of errors by increasing the sample size (obtaining more information), but this may not be feasible in practice.

Page 21: Chapter 9

9 | 21Copyright © Cengage Learning. All rights reserved.

Level of Significance

• Good practice requires us to specify in advance the risk level of type I error we are willing to accept.

• The probability of type I error is the level of significance for the test, denoted by α (alpha).

Page 22: Chapter 9

9 | 22Copyright © Cengage Learning. All rights reserved.

Type II Error

• The probability of making a type II error is denoted by β (Beta).

• 1 – β is called the power of the test.

– 1 – β is the probability of rejecting H0 when H0 is false (a correct decision).

Page 23: Chapter 9

9 | 23Copyright © Cengage Learning. All rights reserved.

Type II Error

• The probability of making a type II error is denoted by β (Beta).

• 1 – β is called the power of the test.

– 1 – β is the probability of rejecting H0 when H0 is false (a correct decision).

Page 24: Chapter 9

9 | 24Copyright © Cengage Learning. All rights reserved.

The ProbabilitiesAssociated with Testing

Page 25: Chapter 9

9 | 25Copyright © Cengage Learning. All rights reserved.

Concluding a Statistical Test

For our purposes, significant is defined as follows:

At our predetermined level of risk α, the evidence against H0 is sufficient to reject H0. Thus we adopt H1.

Page 26: Chapter 9

9 | 26Copyright © Cengage Learning. All rights reserved.

Concluding a Statistical Test

For a particular experiment, P = 0.17 and = 0.05. What is the appropriate conclusion?

a). Reject the null hypothesis.b). Do not reject the null hypothesis.c). Reject both the null hypothesis and the

alternative hypothesis.d). Accept both the null hypothesis and the

alternative hypothesis.

Page 27: Chapter 9

9 | 27Copyright © Cengage Learning. All rights reserved.

Concluding a Statistical Test

For a particular experiment, P = 0.17 and = 0.05. What is the appropriate conclusion?

a). Reject the null hypothesis.b). Do not reject the null hypothesis.c). Reject both the null hypothesis and the

alternative hypothesis.d). Accept both the null hypothesis and the

alternative hypothesis.

Page 28: Chapter 9

9 | 28Copyright © Cengage Learning. All rights reserved.

Statistical Testing Comments

• Frequently, the significance is set at α = 0.05 or α = 0.01.

• When we “accept” the null hypothesis, we are not proving the null hypothesis to be true. We are only saying that the sample evidence is not strong enough to justify the rejection of H0.– Some statisticians prefer to say “fail to reject

H0 ” rather than “accept H0 .”

Page 29: Chapter 9

9 | 29Copyright © Cengage Learning. All rights reserved.

Interpretation of Testing Terms

Page 30: Chapter 9

9 | 30Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Known

1) State the null hypothesis, alternate hypothesis, and level of significance.

2) If x is normally distributed, any sample size will suffice. If not, n ≥ 30 is required.

Calculate:

Page 31: Chapter 9

9 | 31Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Known

3) Use the standard normal table and the type of test (one or two-tailed) to determine the P-value.

4) Make a statistical conclusion:

If P-value ≤ α, reject H0.

If P-value > α, do not reject H0.5) Make a context-specific conclusion.

Page 32: Chapter 9

9 | 32Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Known

Suppose that the test statistic z = 1.85 for a right-tailed test. Use Table 3 in the Appendix to find the corresponding P-value.

a). 0.2514b). 0.0322c). 0.9678d). 0.0161

Page 33: Chapter 9

9 | 33Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Known

Suppose that the test statistic z = 1.85 for a right-tailed test. Use Table 3 in the Appendix to find the corresponding P-value.

a). 0.2514b). 0.0322c). 0.9678d). 0.0161

Page 34: Chapter 9

9 | 34Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Unknown

1) State the null hypothesis, alternate hypothesis, and level of significance.

2) If x is normally distributed (or mound-shaped), any sample size will suffice. If not, n ≥ 30 is required. Calculate:

Page 35: Chapter 9

9 | 35Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Unknown

3) Use the Student’s t table and the type of test (one or two-tailed) to determine (or estimate) the P-value.

4) Make a statistical conclusion:

If P-value ≤ α, reject H0.

If P-value > α, do not reject H0.5) Make a context-specific conclusion.

Page 36: Chapter 9

9 | 36Copyright © Cengage Learning. All rights reserved.

Using Table 4 to Estimate P-values

0.025 < P-value < 0.050

Suppose we calculate t = 2.22 for a one-tailed test from a sample size of 6. df = n – 1 = 5.

Page 37: Chapter 9

9 | 37Copyright © Cengage Learning. All rights reserved.

Testing µ Using theCritical Value Method

• The values of that will result in the rejection of the null hypothesis are called the critical region of the distribution.

• When we use a predetermined significance level α, the Critical Value Method and the P-Value Method are logically equivalent.

x

x

Page 38: Chapter 9

9 | 38Copyright © Cengage Learning. All rights reserved.

Critical Regions for H0: µ = k

Page 39: Chapter 9

9 | 39Copyright © Cengage Learning. All rights reserved.

Critical Regions for H0: µ = k

Page 40: Chapter 9

9 | 40Copyright © Cengage Learning. All rights reserved.

Critical Regions for H0: µ = k

Page 41: Chapter 9

9 | 41Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Known (Critical Region Method)

1) State the null hypothesis, alternate hypothesis, and level of significance.

2) If x is normally distributed, any sample size will suffice. If not, n ≥ 30 is required.

Calculate:

Page 42: Chapter 9

9 | 42Copyright © Cengage Learning. All rights reserved.

Testing µ When σ is Known (Critical Region Method)

3) Show the critical region and critical value(s) on a graph (determined by the alternate hypothesis and α).

4) Conclude in favor of the alternate hypothesis if z is in the critical region.

5) State a conclusion within the context of the problem.

Page 43: Chapter 9

9 | 43Copyright © Cengage Learning. All rights reserved.

Left-Tailed Tests

Page 44: Chapter 9

9 | 44Copyright © Cengage Learning. All rights reserved.

Right-Tailed Tests

Page 45: Chapter 9

9 | 45Copyright © Cengage Learning. All rights reserved.

Two-Tailed Tests

Page 46: Chapter 9

9 | 46Copyright © Cengage Learning. All rights reserved.

Testing a Proportion p

Binomial Experiments:r (# of successes) is a binomial variablen is the number of independent trialsp is the probability of success on each trial

Test Assumption: np > 5 and n(1 – p) > 5

Page 47: Chapter 9

9 | 47Copyright © Cengage Learning. All rights reserved.

Testing a Proportion pTest Assumption: np > 5 and n(1 – p) > 5

The values of n and p for several experiments are shown below. Which experiment should not be tested using the normal distribution?

a). n = 48, p = 0.39b). n = 843, p = 0.09c). n = 52, p = 0.93d). n = 12, p = 0.51

Page 48: Chapter 9

9 | 48Copyright © Cengage Learning. All rights reserved.

Testing a Proportion pTest Assumption: np > 5 and n(1 – p) > 5

The values of n and p for several experiments are shown below. Which experiment should not be tested using the normal distribution?

a). n = 48, p = 0.39b). n = 843, p = 0.09c). n = 52, p = 0.93d). n = 12, p = 0.51

Page 49: Chapter 9

9 | 49Copyright © Cengage Learning. All rights reserved.

Types of Proportion Tests

Page 50: Chapter 9

9 | 50Copyright © Cengage Learning. All rights reserved.

The Distributionof the Sample Proportion

ˆRecall the distribution of

is approximately normal with:

(1 ) and

rp

n

p pp

n

Page 51: Chapter 9

9 | 51Copyright © Cengage Learning. All rights reserved.

Converting the Sample Proportion to z

Page 52: Chapter 9

9 | 52Copyright © Cengage Learning. All rights reserved.

Testing p

1) State the null hypothesis, alternate hypothesis, and level of significance.

2) Check np > 5 and nq > 5 (recall q = 1 – p). Compute:

p = the specified value in H0

Page 53: Chapter 9

9 | 53Copyright © Cengage Learning. All rights reserved.

Testing p

3) Use the standard normal table and the type of test (one or two-tailed) to determine the P-value.

4) Make a statistical conclusion:

If P-value ≤ α, reject H0.

If P-value > α, do not reject H0.5) Make a context-specific conclusion.

Page 54: Chapter 9

9 | 54Copyright © Cengage Learning. All rights reserved.

Using the Critical Value Method for p

• As when testing for means, we can use the critical value method when testing for p.

• Use the critical value graphs exactly as when testing µ.

Page 55: Chapter 9

9 | 55Copyright © Cengage Learning. All rights reserved.

Critical Thinking: Issues Related to Hypothesis Testing

• Central question – Is the value of test statistic too different from zero for the difference to be due to chance alone?

• The P-value gives the probability that the test statistic’s value is due to chance alone.

Page 56: Chapter 9

9 | 56Copyright © Cengage Learning. All rights reserved.

Critical Thinking: Issues Related to Hypothesis Testing

• If the P-value is close to α, then we might attempt to clarify the results by

- increasing the sample size - controlling the experiment to reduce the

standard deviation• How reliable is the study and the

measurements in the sample? – Consider the source of the data and the reliability of the organization doing the study.