significance tests: the basics ch 9.1 notes name: key h...

5
Statistics Ch 9.1 Notes Name: ___________________ Significance Tests: The Basics A significance test is a formal procedure for comparing observed data with a claim (also called a hypothesis) whose truth we want to assess. The claim is a statement about a parameter, like the population proportion p or the population mean µ. We express the results of a significance test in terms of a probability that measures how well the data and the claim agree. A significance test starts with a careful statement of claims that we want to compare: Example Problem: Suppose a basketball player claimed to be an 80% free-throw shooter. To test this claim, we have him attempt 50 free-throws. He makes 32 of them. His sample proportion of made shots is 32/50 = 0.64. In the free-throw shooter example, our hypotheses are H 0 : p = 0.80 H a : p < 0.80 where p is the long-run proportion of made free throws. In any significance test, the null hypothesis has the form H 0 : parameter = value The alternative hypothesis has one of the forms H a : parameter < value H a : parameter > value H a : parameter ≠ value To determine the correct form of H a , read the problem carefully. Practice Problem: At the Hawaii Pineapple Company, managers are interested in the size of the pineapples grown in the company’s fields. Last year, the mean weight of the pineapples harvested from one large field was 31 ounces. A different irrigation system was installed in this field after the growing season. Managers wonder how this change will affect the mean weight of pineapples grown in the field this year. PROBLEM: State appropriate hypotheses for performing a significance test. Be sure to define the parameter of interest. The claim we weigh evidence against in a statistical test is called the ______ ____________________ (H 0 ). Often the null hypothesis is a statement of “no difference.” The claim about the population that we are trying to find evidence for is the ___________________ __________________ (H a ). The alternative hypothesis is __________ _____________ if it states that a parameter is larger than the null hypothesis value or if it states that the parameter is smaller than the null value. It is __________ _____________ if it states that the parameter is different from the null hypothesis value (it could be either larger or smaller). Key null hypothesis alternative hypothesis one sided two sided Ho M 31oz Ha µ f 31oz

Upload: others

Post on 10-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Significance Tests: The Basics Ch 9.1 Notes Name: Key H alibertyapstats.weebly.com/uploads/2/4/3/1/24310606/... · Significance Tests: The Basics A significance test is a formal procedure

Statistics – Ch 9.1 Notes Name: ___________________ Significance Tests: The Basics

A significance test is a formal procedure for comparing observed data with a claim (also called a hypothesis) whose truth we want to assess. The claim is a statement about a parameter, like the population proportion p or the population mean µ. We express the results of a significance test in terms of a probability that measures how well the data and the claim agree. A significance test starts with a careful statement of claims that we want to compare: Example Problem: Suppose a basketball player claimed to be an 80% free-throw shooter. To test this claim, we have him attempt 50 free-throws. He makes 32 of them. His sample proportion of made shots is 32/50 = 0.64.

In the free-throw shooter example, our hypotheses are H0 : p = 0.80 Ha : p < 0.80

where p is the long-run proportion of made free throws. In any significance test, the null hypothesis has the form

H0 : parameter = value The alternative hypothesis has one of the forms

Ha : parameter < value Ha : parameter > value Ha : parameter ≠ value

To determine the correct form of Ha, read the problem carefully. Practice Problem: At the Hawaii Pineapple Company, managers are interested in the size of the pineapples grown in the company’s fields. Last year, the mean weight of the pineapples harvested from one large field was 31 ounces. A different irrigation system was installed in this field after the growing season. Managers wonder how this change will affect the mean weight of pineapples grown in the field this year. PROBLEM: State appropriate hypotheses for performing a significance test. Be sure to define the parameter of interest.

The claim we weigh evidence against in a statistical test is called the ______ ____________________ (H0).

Often the null hypothesis is a statement of “no difference.” The claim about the population that we are trying to find evidence for is the ___________________ __________________ (H

a).

The alternative hypothesis is __________ _____________ if it states that a parameter is larger than the null hypothesis value or if it states that the parameter is smaller than the null value.

It is __________ _____________ if it states that the parameter is different from the null hypothesis value (it could be either larger or smaller).

Key

null hypothesis

alternativehypothesis

one sided

two sided

HoM 31ozHa µ f31oz

Page 2: Significance Tests: The Basics Ch 9.1 Notes Name: Key H alibertyapstats.weebly.com/uploads/2/4/3/1/24310606/... · Significance Tests: The Basics A significance test is a formal procedure

Statistics – Ch 9.1 Notes Name: ___________________ Significance Tests: The Basics

Stating Hypotheses: 1. The hypotheses should express the hopes or suspicions we have before we see the data. It is

cheating to look at the data first and then frame hypotheses to fit what the data show.

2. Hypotheses always refer to a population, not to a sample. Be sure to state 𝐻0 and 𝐻𝑎 in terms of population parameters

3. It is never correct to write a hypothesis about a sample statistic, such as �̂� = 0.64 𝑜𝑟 �̅� = 85

The Reasoning of Significance Tests Suppose a basketball player claimed to be an 80% free-throw shooter. To test this claim, we have him attempt 50 free-throws. He makes 32 of them. His sample proportion of made shots is 32/50 = 0.64. What can we conclude about the claim based on this sample data?

x We can use software to simulate 400 sets of 50 shots assuming that the player is really an 80% shooter.

x You can say how strong the evidence against the players claim is by giving the probability that he would make as few as 32 out of 50 free throws if he really makes 80% in the long run.

x Based on the simulation, our estimate of this probability is about 3/400 = 0.0075.

The observed statistic is so unlikely if the actual parameter value is P = 0.80 that it gives convincing evidence that the players claim is not true. There are two possible explanations for the fact that he made only 65% of his free throws.

1) The null hypothesis is correct. The player’s claim is correct (p = 0.8), and just by chance, a very unlikely outcome occurred.

2) The alternative hypothesis is correct. The population proportion is actually less than 0.8, so the sample result is not an unlikely outcome.

An outcome that would rarely happen if the null hypothesis were true is good evidence that the null hypothesis is not true.

Basic Idea

Key

Page 3: Significance Tests: The Basics Ch 9.1 Notes Name: Key H alibertyapstats.weebly.com/uploads/2/4/3/1/24310606/... · Significance Tests: The Basics A significance test is a formal procedure

Statistics – Ch 9.1 Notes Name: ___________________ Significance Tests: The Basics

Interpreting P-Values The null hypothesis 𝐻0 states the claim that we are seeking evidence against. The probability that measures the strength of the evidence against a null hypothesis is called a P-value.

x ________________ P-values are evidence against 𝐻0 because they say that the observed result is unlikely to occur when 𝐻0 is true.

x ________________P-values fail to give convincing evidence against 𝐻0 because they say that the observed result is likely to occur by chance when 𝐻0 is true.

Practice Problem:

Calcium is a vital nutrient for healthy bones and teeth. The National Institutes of Health (NIH) recommends a calcium intake of 1300 mg per day for teenagers. The NIH is concerned that teenagers aren’t getting enough calcium. Is this true?

Researchers want to perform a test of

where μ is the true mean daily calcium intake in the population of teenagers. They ask a random sample of 20 teens to record their food and drink consumption for 1 day. The researchers then compute the calcium intake for each student. Data analysis reveals that �̅� = 1198𝑚𝑔 𝑎𝑛𝑑 𝑠𝑥 = 411 𝑚𝑔. After checking that conditions were met, researchers performed a significance test and obtained a P-value of 0.1404

a) Explain what it would mean for the null hypothesis to be true in this setting.

b) Interpret the P-value in context.

The final step in performing a significance test is to draw a conclusion about the competing claims you were testing. We make one of two decisions based on the strength of the evidence against the null hypothesis (and in favor of the alternative hypothesis):

Note: A fail-to-reject H0 decision in a significance test doesn’t mean that H0 is true. For that reason, you should never “accept H0” or use language implying that you believe H0 is true.

The probability, computed assuming H0 is true, that the statistic would take a value as extreme as or

more extreme than the one actually observed is called the P-value of the test.

Key

Small

Large

HoiM 1300 thedailycalciumintakeinthepopulation ofteenagersis 1300mg Iftruethenteenagersare gettingenoughcalciumonaverage

Pvalue 0.1404 assumingthemeandailycalciumintake ofteenagers is boothereis a 0.1404probability of getting a sample mean of 1198mg or lessbychancealone

Page 4: Significance Tests: The Basics Ch 9.1 Notes Name: Key H alibertyapstats.weebly.com/uploads/2/4/3/1/24310606/... · Significance Tests: The Basics A significance test is a formal procedure

Statistics – Ch 9.1 Notes Name: ___________________ Significance Tests: The Basics

Statistical Significance:

There is no rule for how small a P-value we should require in order to reject H0. But we can compare the

P-value with a fixed value that we regard as decisive, called the significance level. We write it as α, the Greek letter alpha.

Practice Problem: A company has developed a new deluxe AAA battery that is supposed to last longer than its regular AAA battery. However, these new batteries are more expensive to produce, so the company would like to be convinced that they really do last longer. Based on years of experience, the company knows that its regular AAA batteries last for 30 hours of continuous use, on average. The company selects an SRS of 15 new batteries and uses them continuously until they are completely drained. The sample mean lifetime is �̅� = 33.9 ℎ𝑜𝑢𝑟𝑠. A significance test is performed using the hypotheses

where μ is the true mean lifetime of the new deluxe AAA batteries. The resulting P-value is 0.0729. PROBLEM: What conclusion would you make for each of the following significance levels? Justify your answer.

(a) α = 0.10

(b) α = 0.05

If the P-value is smaller than alpha, we say that the data are statistically significant at level α. In that case, we reject the null hypothesis H

0 and conclude that there is convincing evidence in favor of the

alternative hypothesis Ha.

When we use a fixed level of significance to draw a conclusion in a significance test,

P-value < α → reject H0 → convincing evidence for H

a

P-value ≥ α → fail to reject H0 → not convincing evidence for H

a

In a nutshell, our conclusion in a significance test comes down to

P-value small → _________________________ → convincing evidence for Ha

P-value large → _________________________ → not convincing evidence for Ha

Key

reject Hofail to rejectHo

BecausethePvalue 0.0729 is lessthan a 0.10 we rejectHo Wehaveconvincing evidence thatthecompany's deluxeAAAbatterylastslongerthan30hrson average

BecausethePvalue 0.0729 is greaterthan a 0.05 we failtorejectHo Wedon'thaveconvincingevidencethatthecompany's deluxeAAAbatterylastslongerthan30hrson average

Page 5: Significance Tests: The Basics Ch 9.1 Notes Name: Key H alibertyapstats.weebly.com/uploads/2/4/3/1/24310606/... · Significance Tests: The Basics A significance test is a formal procedure

Statistics – Ch 9.1 Notes Name: ___________________ Significance Tests: The Basics

Type I and Type II Errors When we draw a conclusion from a significance test, we hope our conclusion will be correct. But sometimes it will be wrong. There are two types of mistakes we can make.

Significance and Type I Error

A potato chip producer and its main supplier agree that each shipment of potatoes must meet certain quality standards. If the producer determines that more than 8% of the potatoes in the shipment have “blemishes,” the truck will be sent away to get another load of potatoes from the supplier. Otherwise, the entire truckload will be used to make potato chips. To make the decision, a supervisor will inspect a random sample of potatoes from the shipment. The producer will then perform a significance test using the hypotheses

where P is the actual proportion of potatoes with blemishes in a given truckload. PROBLEM: Describe a Type I and a Type II error in this setting, and explain the consequences of each.

If we reject H0 when H

0 is true, we have committed a ________________________ error.

If we fail to reject H0 when H

a is true, we have committed a _____________________ error.

The significance level α of any fixed-level test is the probability of a Type I error.

That is, α is the probability that the test will reject the null hypothesis H0 when H

0 is actually

true.

Consider the consequences of a Type I error before choosing a significance level.

Key

Type 1Type I

T.yfe.LE.EE WerejectHowhenHois true Theproducerfindsconvincingevidencethattheproportion of blemishes is greaterthan0.8whentheactual proportion is 0.8or less Consequenceswould besendingan acceptable truckloadofpotatoesback resultinginlossofrevenue

IffE ErE I failtorejectHowhenHaistrueTheproducerdoesnotfindconvincingevidencethatmorethan 8 ofthepotatoeshaveblemisheswhenthatactually is thecase Consequenceswouldbeusingthetruckload ofpotatoes tomakechipsMorechipswillbemadewithblemishedpotatoes whichmayupset

customers