18
1 Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 The Language of Hypothesis Testing Objective A : Set up a Hypothesis Testing Hypothesis testing is a procedure, based on a sample evidence and probability, used to test statements regarding a characteristic of one or more populations. - The null hypothesis 0 H is a statement to be tested. - The alternate hypothesis 1 H is a statement that we are trying to find evidence to support. Example 1 : Set up 0 H and 1 H . In the past, student average income was $6000 per year. (a) An administrator believes the average income has increased. (b) The percentage of passing a Math course was 50%. A Math professor believes there is a decrease in the passing rate. Objective B : Type I or Type II Error Type I Error → Rejecting 0 H when 0 H is true. Type II Error → Not rejecting 0 H when 1 H is true. We use for the probability of making Type I error. We use for the probability of making Type II error. For this statistics class, we only control the Type I error. (0.01 0.10) is also called the level of significance.

Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

  • Upload
    doanbao

  • View
    227

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

1

Chapter 10 Hypothesis Tests Regarding a Parameter

Ch 10.1 The Language of Hypothesis Testing

Objective A : Set up a Hypothesis Testing

Hypothesis testing is a procedure, based on a sample evidence and probability, used to test

statements regarding a characteristic of one or more populations.

- The null hypothesis 0H is a statement to be tested.

- The alternate hypothesis 1H is a statement that we are trying to find evidence to support.

Example 1 : Set up 0H and 1H .

In the past, student average income was $6000 per year.

(a) An administrator believes the average income has increased.

(b) The percentage of passing a Math course was 50%. A Math professor believes

there is a decrease in the passing rate.

Objective B : Type I or Type II Error

Type I Error → Rejecting 0H when 0H is true.

Type II Error → Not rejecting 0H when 1H is true.

We use for the probability of making Type I error.

We use for the probability of making Type II error.

For this statistics class, we only control the Type I error. (0.01 0.10)

is also called the level of significance.

Page 2: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

2

Objective C : State Conclusions to Hypothesis Tests

If 0H is rejected, there is sufficient evidence to support the statement in 1H .

If 0H is NOT rejected, there is NOT sufficient evidence to support the statement in 1H .

Example 1 : In 2007, the mean SAT score on the reasoning test for all students was 710. A

teacher believes that, due to the heavy use of multiple choice test questions, the

mean SAT reasoning test has decreased.

(a) Determine 0H and 1H .

(b) Explain what it would mean to make a Type I error.

(c) Explain what it would mean to make a Type II error.

(d) State the conclusion if the null hypothesis is rejected.

Example 2: The mean score on the SAT Math Reasoning exam is 516. A test preparation

company states that the mean score of students who take its course is higher than

516.

(a) Determine the null and alternative hypotheses that would be used to test the

effectiveness of the marketing campaign.

(b) If sample data indicate that the null hypothesis should not be rejected, state the

conclusion of the company.

Page 3: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

3

(c) Suppose, in fact, that the mean score of students taking the preparatory course is

522. Has a Type I or Type II error been made?

(d) If we wanted to decrease the probability of making a Type II error, would we need

to increase or decrease the level of significance?

Example 3: According to the Centers for Disease Control, 15.2% of adults experience migraine

headaches. Stress is a major contributor to the frequency and intensity of

headaches. A massage therapist feels that she has a technique that can reduce the

frequency and intensity of migraine headaches.

(a) Determine the null and alternative hypotheses that would be used to test the

effectiveness of the massage therapist's techniques.

(b) A sample of 500 American adults who participated in the massage therapist's

program results in data that indicate that the null hypothesis should be rejected.

Provide a statement that supports the massage therapist's program.

(c) Suppose, in fact, that the percentage of patients in the program who experience

migraine headaches is 15.2%. Was a Type I or Type II error committed?

Page 4: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

4

Ch10.2 Hypothesis Tests for a Population Proportion

Objective A : Classical Approach

Z Test for a Proportion

A hypothesis test involving a population proportion can be considered as a binomial

experiment. As we learned from Ch 8.2, the best point estimate of p , the population

proportion, is a sample proportion, n

xp ˆ .

There are two methods for testing hypothesis.

Method 1 : The Classical Approach

Method 2 : The P Value Approach

We are going to focus on the Classical Approach on today’s lecture.

Testing Hypotheses Regarding a Population Proportion, p .

Use the following steps to perform a Proportion Z Test provided that

Page 5: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

5

Example 1: Use the Classical Approach to test the following hypotheses.

25.0: pHo versus 25.0:1 pH

1.0;96;400 xn

Page 6: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

6

Example 2: The percentage of physicians who are women is 27.9%. In a survey of physicians

employed by a large university health system, 45 of 120 randomly selected

physicians were women. Use the Classical Approach to determine whether there is

sufficient evidence at the 0.05 level of significance to conclude that the proportion

of women physicians at the university health system exceeds 27.9%?

Page 7: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

7

Ch10.3 Hypothesis Testing about a Population Mean with unknown

The t test procedure requires either that the sample was drawn from a normally distributed

population or the sample size was greater than 30. Minor departures from normality will not

adversely affect the results of the test. However, if the data include outliers, the t test procedure

should not be used. A normality plot is used to test whether the sample was drawn from a normally

distributed population. A boxplot is used to detect outliers.

Page 8: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

8

Objective A : Classical Approach

Example 1: Determine the critical value(s) for

(a) a right-tailed test of a population mean at the 0.05 level of significance based

on a sample size of 18n .

t

(b) a left-tailed test of a population mean at the 0.01 level of significance base on

a sample size of 15n .

t

(c) a two-tailed test of a population mean at 0.05 level of significance based on a

sample size of 25n .

t

Example 2: Determine the t statistic and the tail(s) of testing.

(a) 0 : 16H versus 16

A random sample of size 10n was obtained from a population that was normally

distributed produced a mean of 16.5 with a standard deviation of 0.4.

00

/

xt

s n

(b) 0 : 72H versus 72

A random sample of size 15n was obtained from a population that was normally

distributed produced a mean of 73.5 with a standard deviation of 17.1.

00

/

xt

s n

Page 9: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

9

Example 3: Use the classical approach to determine whether to reject or fail to reject 0H .

(a) 0 2.578t versus 2.056t for a right-tailed test

(b) 0 1.657t versus 1.771t for a left-tailed test

(c) 0 2.125t versus 2.069t for a two-tailed test

Example 4: To test 0 : 0.3H versus 0.3 , a random sample of size 16n is obtained

from a population that is known to be normally distributed.

(a) If x =0.295, 0.168s , compute the test statistic and round the answer to three

decimal places.

(b) If the researcher decides to test this hypothesis at the =0.05 level of significance,

determine the critical value(s).

Page 10: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

10

(c) Draw a t distribution that depicts the critical region and the t statistic.

(d) What conclusion can be drawn?

Example 5: An Fast Oil Change Company advertised a 15-minute wait for an oil change. A

sample of 25 oil changes showed a mean time of 16.8 minutes and a standard

deviation of 4.3 minutes. At the 2% level of significance, is there evidence that the

mean time for an oil change is different from 15 minutes? Assume the population

is approximately normal. Use the Classical Approach.

Page 11: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

11

Ch10.2 Hypothesis Tests for a Population Proportion

Objective B : P Value Approach

Z Test for a Proportion

A hypothesis test involving a population proportion can be considered as a binomial

experiment. As we learned from Ch 8.2, the best point estimate of p , the population

proportion, is a sample proportion, n

xp ˆ , provided the sample is obtained by

1) simple random sampling ;

2) 0 0(1 ) 10np p to guarantee that a normal distribution can be used to test hypothesis for

0 0:H p p ;

3) the sampled values are independent of each other ( 0.05 )n N .

Testing Hypotheses Regarding a Population Proportion, p .

Use the following steps to perform a Z Test for a Proportion.

Page 12: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

12

Example 1: The percentage of physicians who are women is 27.9%. In a survey of physicians

employed by a large university health system, 45 of 120 randomly selected

physicians were women. Use the P Value Approach to determine whether there

is sufficient evidence at the 0.05 level of significance to conclude that the

proportion of women physicians at the university health system exceeds 27.9%?

Page 13: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

13

Example 2: In 1997, 4% of mothers smoked more than 21 cigarettes during their pregnancy.

An obstetrician believes that the percentage of mothers who smoke 21 cigarettes

or more is less than 4% today. She randomly selects 120 pregnant mothers and

finds that 3 of them smoked 21 or more cigarettes during pregnancy. Does the

sample data support the obstetrician’s belief? Use the P Value Approach with

01.0 level of significant.

Page 14: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

14

Example 3: In 2000, 58% of females aged 15 years of age and older lived alone, according to

the U.S. Census Bureau. A sociologist tests whether this percentage is different

today by conducting a random sample of 500 females aged 15 years of age and

older and finds that 285 are living alone. Use the P Value Approach to

determine whether there is sufficient evidence at the 10.0 level of

significance to conclude the proportion has changed since 2000?

Page 15: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

15

Ch10.3 Hypothesis Testing about a Population Mean with unknown

Objective B : P Value Approach

Page 16: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

16

The t test procedure requires either that the sample was drawn from a normally distributed

population or the sample size was greater than 30. Minor departures from normality will not

adversely affect the results of the test. However, if the data include outliers, the t test

procedure should not be used. A normality plot is used to test whether the sample was drawn

from a normally distributed population. A boxplot is used to detect outliers.

Page 17: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

17

Example 1: Find the P value interval for each test value.

(a) 0 2.624, 15,t n right-tailed

(b) 0 1.703, 28,t n right-tailed

(c) 0 2.321, 23,t n left-tailed

(d) 0 1.562, 17,t n two-tailed

Example 2: Use the P value approach to determine whether to reject or fail to reject 0H .

(a) P value = 0.126 versus 0.05 for a right-tailed test

(b) P value = 0.001 versus 0.025 a left-tailed test

Page 18: Chapter 10 Hypothesis Tests Regarding a Parameter Ch 10.1 ... 15... · 4 Ch10.2 Hypothesis Tests for a Population Proportion Objective A : Classical Approach Z Test for a Proportion

18

Example 3: A survey of 15 large U.S. cities finds that the average commute time one way is

25.4 minutes. A chamber of commerce executive feels that the commute in his city

is less and wants to publicize this. He randomly selects 25 commuters and finds the

average is 22.1 minutes with a standard deviation of 5.3 minutes. At 0.01 , is

there enough evidence to support the claim? Use the P value approach.

As we have experienced from example 1 to 3, we were unable to find exact P values using

the t table because the t table provides t values only for certain area. To find exact

P values, we use statistical software.