Power of a test.

Slides:



Advertisements
Similar presentations
Power of a test. power The power of a test (against a specific alternative value) Is a tests ability to detect a false hypothesis Is the probability that.
Advertisements

Power of a test. power The power of a test (against a specific alternative value) Is the probability that the test will reject the null hypothesis when.
Introduction to Hypothesis Testing
Ch. 21 Practice.
+ Chapter 10 Section 10.4 Part 2 – Inference as Decision.
AP Statistics – Chapter 9 Test Review
Power and Effect Size.
Hypothesis Testing: Type II Error and Power.
Power of a test. power The power of a test (against a specific alternative value) Is the probability that the test will reject the null hypothesis when.
Power of a Test Notes: P 183 and on your own paper.
Descriptive statistics Inferential statistics
Hypothesis Testing (Statistical Significance). Hypothesis Testing Goal: Make statement(s) regarding unknown population parameter values based on sample.
Errors in Hypothesis Tests. When you perform a hypothesis test you make a decision: When you make one of these decisions, there is a possibility that.
When should you find the Confidence Interval, and when should you use a Hypothesis Test? Page 174.
Errors & Power. 2 Results of Significant Test 1. P-value < alpha 2. P-value > alpha Reject H o & conclude H a in context Fail to reject H o & cannot conclude.
Hypothesis Testing – A Primer. Null and Alternative Hypotheses in Inferential Statistics Null hypothesis: The default position that there is no relationship.
Errors in Hypothesis Tests. When you perform a hypothesis test you make a decision: When you make one of these decisions, there is a possibility that.
Errors in Hypothesis Tests Notes: P When you perform a hypothesis test you make a decision: When you make one of these decisions, there is a possibility.
Power of a Hypothesis test. H 0 True H 0 False Reject Fail to reject Type I Correct Type II Power   Suppose H 0 is true – what if we decide to fail.
Errors in Hypothesis Tests. When you perform a hypothesis test you make a decision: When you make one of these decisions, there is a possibility that.
Chapter 9: Power I can make really good decisions. Chapter 9: Power Target Goal: I can make really good decisions. 9.1d h.w: pg 548: 23, 25.
Type I and Type II Errors. An analogy may help us to understand two types of errors we can make with inference. Consider the judicial system in the US.
1 Where we are going : a graphic: Hypothesis Testing. 1 2 Paired 2 or more Means Variances Proportions Categories Slopes Ho: / CI Samples Ho: / CI Ho:
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Unit 5: Hypothesis Testing.
Type I and Type II Errors Section Starter An agronomist examines the cellulose content of a variety of alfalfa hay. Suppose that the cellulose.
Type I and Type II Errors. For type I and type II errors, we must know the null and alternate hypotheses. H 0 : µ = 40 The mean of the population is 40.
Major Steps. 1.State the hypotheses.  Be sure to state both the null hypothesis and the alternative hypothesis, and identify which is the claim. H0H0.
Power of a test. power The power of a test (against a specific alternative value) Is In practice, we carry out the test in hope of showing that the null.
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
Power of a Test. Remember: Type I error – Reject the H 0 when you shouldn’t have. Type II error - Fail to reject the H o when you should have.
If we fail to reject the null when the null is false what type of error was made? Type II.
Chapter 9 Testing A Claim 9.1 SIGNIFICANT TESTS: THE BASICS OUTCOME: I WILL STATE THE NULL AND ALTERNATIVE HYPOTHESES FOR A SIGNIFICANCE TEST ABOUT A POPULATION.
+ Homework 9.1:1-8, 21 & 22 Reading Guide 9.2 Section 9.1 Significance Tests: The Basics.
Errors in Hypothesis Tests
Type I & Type II Errors And Power
Section Testing a Proportion
Power of a test.
Section 8.2 Day 4.
Example: Propellant Burn Rate
Power of a test.
Power of a test.
Hypothesis Tests for 1-Sample Proportion
Hypothesis Testing: Hypotheses
MATH 2311 Section 8.2.
Setting significance levels at the correct level
A Closer Look at Testing
P-value Approach for Test Conclusion
Unlocking the Mysteries of Hypothesis Testing
Chapter 9: testing a claim
Chapter 9: Hypothesis Tests Based on a Single Sample
Using Inference to Make Decisions
Introduction to Inference
Chapter 3 Probability Sampling Theory Hypothesis Testing.
Power of a Test.
Section 10.3 Making Sense of Statistical Significance
Introduction to Inference
Errors in Hypothesis Tests
More About Tests Notes from
Power of a test.
Power of a test.
Chapter 7: Statistical Issues in Research planning and Evaluation
Power of a Hypothesis Test
Chapter 9: Testing a Claim
  Pick a card….
Homework: pg. 727 & ) A. Ho: p=0.75, Ha:p>0.75
Power of a test.
Power Problems.
Inference as Decision Section 10.4.
Power and Error What is it?.
AP STATISTICS LESSON 10 – 4 (DAY 2)
Presentation transcript:

Power of a test

The power of a test (against a specific alternative value) Is the probability that the test will reject the null hypothesis when the alternative is true In practice, we carry out the test in hope of showing that the null hypothesis is false, so high power is important

H0 True H0 False Reject Fail to reject Suppose H0 is false – what if we decide to reject it? Suppose H0 is false – what if we decide to fail to reject it? We correctly reject a false H0! H0 True H0 False Reject Fail to reject Suppose H0 is true – what if we decide to fail to reject it? Type I Correct a Power Suppose H0 is true – what if we decide to reject it? Correct Type II b

What are the hypotheses? A new flu vaccine claims to prevent a certain type of flu in 70% of the people who are vaccinated. A random sample of 100 people are vaccinated and then exposed to the flu. Is this claim too high? Use a = .05. What are the hypotheses? H0: p = .7 Ha: p < .7

A new flu vaccine claims to prevent a certain type of flu in 70% of the people who are vaccinated. A random sample of 100 people are vaccinated and then exposed to the flu. Is this claim too high? Use a = .05. Find mp and sp. mp = .7 sp = .0458

A new flu vaccine claims to prevent a certain type of flu in 70% of the people who are vaccinated. A random sample of 100 people are vaccinated and then exposed to the flu. Is this claim too high? Use a = .05. What is the probability of committing a Type I error? a = .05

So if we get p-hat=.625 or less, we would reject H0. H0: p = .7 Ha: p < .7 a = .05 For what values of the sample proportion would you reject the null hypothesis? .7 So if we get p-hat=.625 or less, we would reject H0. a = .05 p? Invnorm(.05,.7,.0458) =.625

Where did this number come from? H0: p = .7 Ha: p < .7 We reject H0 and decide that p<.7. Suppose that pa is 0.6. What is the probability of committing a Type II error? I selected a number that was less than .7 .7 .6 What is a type II error? How can we find this area? a = .05 Reject failing to reject H0 when the alternative is true What is the standard deviation of this curve? b = ? Normalcdf(.625,∞,.6,.04899) =.3049

What is the definition of power? Is power a conditional probability? What is the power of the test? What is the definition of power? Power - the probability that the test correctly rejects H0, if p = .6, is .6951 .7 .6 a = .05 b =.3049 Is power a conditional probability? The probability that the test correctly rejects H0 Power = ? Power = 1 - .3049= .6951

Suppose we select .55 as the alternative proportion (p). What is the probability of the type II error? b) What is the power of the test? What happened to the power of the test when the difference |p0 – pa| is increased? .7 .6 .55 a = .05 b = normalcdf(.625,∞, .55,.0497) = .0658 Power = 1 - .0658= .934

What happened to the power when the difference |p0-pa| is decreased? Suppose we select .65 as the alternative proportion (p). a) What is the probability of the type II error? b) What is the power of the test? What happened to the power when the difference |p0-pa| is decreased? .7 .6 .65 a = .05 b = normalcdf(.625,∞, .65,.0477) =.6999 Power b Power = 1 - .6999= .3001

Suppose that we change alpha to 10%. Using pa = .6, what would happen to the probability of a type II error and the power of the test? .7 a = .05 a = .1 Z=-1.282 p-hat=.641 b = .1998 Power = .8002 .6 The probability of the type II error (b) decreased and power increased, BUT the probability of a type I error also increased. Power b

What happens to a, b, & power when the sample size is increased? Fail to Reject H0 Reject H0 Power increases when n increases a p0 P(type II) decreases when n increases Power b pa

Fail to Reject H0 Reject H0 a p0 pa Power = 1 - b b

Recap: What affects the power of a test? As |p0 – pa| increases, power increases As a increases, power increases As n increases, power increases

Facts: The researcher is free to determine the value of a. The experimenter cannot control b, since it is dependent on the alternate value. The ideal situation is to have a as small as possible and power close to 1. (Power > .8) As a increases, power increases. (But also the chance of a type I error has increased!) Best way to increase power, without increasing a, is to increase the sample size

A new flu vaccine claims to prevent a certain type of flu in 70% of the people who are vaccinated. In a test, vaccinated people were exposed to the flu. Is this claim too high? Identify the decision: a) You decide that the proportion of vaccinated people who do not get the flu is less than 70% when it really is not. Type I Error

A new flu vaccine claims to prevent a certain type of flu in 70% of the people who are vaccinated. In a test, vaccinated people were exposed to the flu. Is this claim too high? Identify the decision: b) You decide that the proportion of vaccinated people who do not get the flu is less than 70% when it really is. Correct – Power!!