1 Section 8.2 Basics of Hypothesis Testing Objective For a population parameter (p, µ, σ) we wish to test whether a predicted value is close to the actual.

Slides:



Advertisements
Similar presentations
Unlocking the Mysteries of Hypothesis Testing
Advertisements

Chapter 7 Hypothesis Testing
Introduction to Hypothesis Testing
Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Chapter 8 Hypothesis Testing
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Chapter 9 Hypothesis Testing
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
Chapter 6 Hypotheses texts. Central Limit Theorem Hypotheses and statistics are dependent upon this theorem.
Hypothesis Testing: Type II Error and Power.
Hypothesis Tests Chapter 7 Prof. Felix Apfaltrer Office:N518 Phone: Office hours: Tue, Thu 10:30am-12:00 pm.
8-2 Basics of Hypothesis Testing
Definitions In statistics, a hypothesis is a claim or statement about a property of a population. A hypothesis test is a standard procedure for testing.
1 Chapter 9 Inferences from Two Samples In this chapter we will deal with two samples from two populations. The general goal is to compare the parameters.
Overview of Statistical Hypothesis Testing: The z-Test
STATISTICS ELEMENTARY MARIO F. TRIOLA Chapter 7 Hypothesis Testing
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Chapter 8 Hypothesis Testing 8-1 Review and Preview 8-2 Basics of Hypothesis.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Lecture Slides Elementary Statistics Twelfth Edition
Overview Definition Hypothesis
Presented by Mohammad Adil Khan
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 8-1 Review and Preview.
Sections 8-1 and 8-2 Review and Preview and Basics of Hypothesis Testing.
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
HOMEWORK P.410:  33) ; reject the null hypothesis.  34) ; fail to reject the null hypothesis  35) ; reject the null hypothesis  36)
Overview Basics of Hypothesis Testing
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Slide Slide 1 Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing 8-3 Testing a Claim about a Proportion 8-4 Testing a Claim About.
1 Hypothesis testing can be used to determine whether Hypothesis testing can be used to determine whether a statement about the value of a population parameter.
STA Statistical Inference
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
1 Section 8.3 Testing a claim about a Proportion Objective For a population with proportion p, use a sample (with a sample proportion) to test a claim.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Section 8-2 Basics of Hypothesis Testing.
1 Chapter 8 Hypothesis Testing 8.2 Basics of Hypothesis Testing 8.3 Testing about a Proportion p 8.4 Testing about a Mean µ (σ known) 8.5 Testing about.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Section 8-2 Basics of Hypothesis Testing.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Overview.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Hypothesis Testing with One Sample Chapter 7. § 7.1 Introduction to Hypothesis Testing.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
SAA 2023 COMPUTATIONALTECHNIQUE FOR BIOSTATISTICS Semester 2 Session 2009/2010 ASSOC. PROF. DR. AHMED MAHIR MOKHTAR BAKRI Faculty of Science and Technology.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
1 Definitions In statistics, a hypothesis is a claim or statement about a property of a population. A hypothesis test is a standard procedure for testing.
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.
Created by Erin Hodgess, Houston, Texas Section 7-1 & 7-2 Overview and Basics of Hypothesis Testing.
C HAPTER 2  Hypothesis Testing -Test for one means - Test for two means -Test for one and two proportions.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Slide Slide 1 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing Chapter 8.
Lecture Slides Elementary Statistics Twelfth Edition
Lecture Slides Elementary Statistics Twelfth Edition
Review and Preview and Basics of Hypothesis Testing
Hypothesis Testing: Preliminaries
Dr.MUSTAQUE AHMED MBBS,MD(COMMUNITY MEDICINE), FELLOWSHIP IN HIV/AIDS
Elementary Statistics
Overview and Basics of Hypothesis Testing
Testing a Claim About a Mean:  Known
Hypothesis Tests for a Population Mean in Practice
Unlocking the Mysteries of Hypothesis Testing
Chapter 9: Hypothesis Testing
Chapter 8 Hypothesis Testing
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
Statistical Inference for Managers
Civil and Environmental Engineering Dept.
Presentation transcript:

1 Section 8.2 Basics of Hypothesis Testing Objective For a population parameter (p, µ, σ) we wish to test whether a predicted value is close to the actual value (based on sample values).

2 Definitions In statistics, a Hypothesis is a claim or statement about a property of a population. A Hypothesis Test is a standard procedure for testing a claim about a property of a population. Ch. 8 will cover hypothesis tests about a Proportion p Mean µ (σ known or σ unknown) Standard Deviation σ

3 Claim: The XSORT method of gender selection increases the likelihood of birthing a girl. (i.e. increases the proportion of girls born) To test the claim, use a hypothesis test (about a proportion) on a sample of 14 couples: If 6 or 7 have girls, the method probably doesn’t increase the probability of birthing a girl. If 13 or 14 couples have girls, this method probably does increase the probability of birthing a girl. This will be explained in Section 8.3 Example 1

4 Rare Event Rule for Inferential Statistics If, under a given assumption, the probability of a particular event is exceptionally small, we conclude the assumption is probably not correct. Example: Suppose we assume the probability of pigs flying is If we find a farm with 100 flying pigs, we conclude our assumption probably wasn’t correct

5 Components of a Hypothesis Test Null Hypothesis: H 0 Alternative Hypothesis: H 1

6 Null Hypothesis: H 0 The null hypothesis (denoted H 0 ) is a statement that the value of a population parameter (p, µ, σ) is equal to some claimed value. We test the null hypothesis directly. It will either reject H 0 or fail to reject H 0 (i.e. accept H 0 ) Example H 0 : p = 0.6 H 1 : p < 0.6

7 The alternative hypothesis (denoted H 1 ) is a statement that the parameter has a value that somehow differs from the null hypothesis. The difference will be one of, ≠ (less than, greater than, doesn’t equal) Alternative Hypothesis: H 1 Example H 0 : p = 0.6 H 1 : p < 0.6

8 The null hypothesis must say “equal to”: H 0 : p = 0.5 The alternative hypothesis states the difference: H 1 : p > 0.5 Here, the original claim is the alternative hypothesis Claim: The XSORT method of gender selection increases the likelihood of birthing a girl. Let p denote the proportion of girls born. The claim is equivilent to “p>0.5” Example 1

9 If we reject the null hypothesis, then the original clam is accepted. Conclusion: The XSORT method increases the likelihood of having a baby girl. If we fail to reject the null hypothesis, then the original clam is rejected. Conclusion: The XSORT method does not increase the likelihood of having a baby girl. Claim: The XSORT method of gender selection increases the likelihood of birthing a girl. Continued Note: We always test the null hypothesis Example 1

10 Claim: For couples using the XSORT method, the likelihood of having a girl is 50% Again, let p denote the proportion of girls born. The claim is equivalent to “p=0.5” The null hypothesis must say “equal to”: H 0 : p = 0.5 The alternative hypothesis states the difference: H 1 : p ≠ 0.5 Here, the original claim is the null hypothesis Example 2

11 If we reject the null hypothesis, then the original clam is rejected. Conclusion: For couples using the XSORT method, the likelihood of having a girl is not 0.5 If we fail to reject the null hypothesis, then the original clam is accepted. Conclusion: For couples using the XSORT method, the likelihood of having a girl is indeed 0.5 Claim: For couples using the XSORT method, the likelihood of having a girl is 50% Continued Note: We always test the null hypothesis Example 2

12 Claim: For couples using the XSORT method, the likelihood of having a girl is at least 50% Again, let p denote the proportion of girls born. The claim is equivalent to “p ≥ 0.5” The null hypothesis must say “equal to”: H 0 : p = 0.5 The alternative hypothesis states the difference: H 1 : p < 0.5 Here, the original claim is the null hypothesis we can’t use ≥ or ≤ in the alternative hypothesis, so we test the negation Example 3

13 Claim: For couples using the XSORT method, the likelihood of having a girl is at least 50% Continued If we reject the null hypothesis, then the original clam is rejected. Conclusion: For couples using the XSORT method, the likelihood of having a girl is less than 0.5 If we fail to reject the null hypothesis, then the original clam is accepted. Conclusion: For couples using the XSORT method, the likelihood of having a girl is at least 0.5 Note: We always test the null hypothesis Example 3

14 General rules If the null hypothesis is rejected, the alternative hypothesis is accepted. H 0 rejected → H 1 accepted If the null hypothesis is accepted, the alternative hypothesis is rejected. H 0 accepted → H 1 rejected Acceptance or rejection of the null hypothesis is called an initial conclusion. The final conclusion is always expressed in terms of the original claim. Not in terms of the null hypothesis or alternative hypothesis.

15 Type I Error A Type I error is the mistake of rejecting the null hypothesis when it is actually true. Also called a “True Negative” True: means the actual hypothesis is true Negative: means the test rejected the hypothesis The symbol    (alpha) is used to represent the probability of a type I error.

16 Type II Error A Type II error is the mistake of accepting the null hypothesis when it is actually false. Also called a “False Positive” False: means the actual hypothesis is false Positive: means the test failed to reject the hypothesis The symbol    (beta) is used to represent the probability of a type II error.

17 Type I and Type II Errors

18 Claim: A new medication has greater success rate (p) than that of the old (existing) machine (p 0 ) p: Proportion of success for the new medication p 0 : Proportion of success for the old medication The claim is equivalent to “p > p 0 ” Null hypothesis: H 0 : p = p 0 Alternative hypothesis: H 1 : p > p 0 Here, the original claim is the null hypothesis Example 4

19 Continued Type I error H 0 is true, but we reject it → We accept the claim So we adopt the new (inefficient, potentially harmful) medicine. (This is called a critical error, must be avoided) Type II error H 1 is true, but we reject it → We reject the claim So we decline the new medicine and continue with the old one. (no direct harm…) Claim: A new medication has greater success rate (p) than that of the old (existing) machine (p 0 ) H 0 : p = p 0 H 1 : p > p 0 Example 4

20 Significance Level The probability of a type I error (denoted  ) is also called the significance level of the test. Characterizes the chance the test will fail. (i.e. the chance of a type I error) Used to set the “significance” of a hypothesis test. (i.e. how reliable the test is in avoiding type I errors) Lower significance → Lower chance of type I error Values used most:  = 0.1, 0.05, 0.01 (i.e. 10%, 5%, 1%, just like with CIs)

21 Consider a parameter (p, µ, σ, etc.) The “guess” for the parameter will have a probability that follows a certain distribution (z, t, χ 2,etc.) Note: This is just like what we used to calculate CIs. Using the significance level α, we determine the region where the guessed value becomes unusual. This is known as the critical region. The region is described using critical value(s). (Like those used for finding confidence intervals) Critical Region

22 p follows a z-distribution If we guess p > p 0 the critical region is defined by the right tail whose area is α If we guess p < p 0 the critical region is defined by the left tail whose area is α If we guess p ≠ p 0 the critical region is defined by the two tails whose areas are α/2 tαtα -t α -t α/2 t α/2 Example

23 1. State the H 0 and H 1 2. Compute the test statistic Depends on the value being tested 3. Compute the critical region for the test statistic Depends on the distribution of the test statistic (z, t, χ 2 ) Depends on the significance level α Found using the critical values 4. Make an initial conclusion from the test Reject H 0 (accept H 1 ) if the test statistic is within the critical region Accept H 0 if test statistic is not within the critical region 5. Make a final conclusion about the claim State it in terms of the original claim Testing a Claim Using a Hypothesis Test

24 H 0 : p = 0.5 H 1 : p > 0.5 Claim: The XSORT method of gender selection increases the likelihood of birthing a girl. Suppose 14 couples using XSORT had 13 girls and 1 boy. Test the claim at a 5% significance level 1. State H 0 and H 1 We accept the claim 2. Find the test statistic 3. Find the critical region 4. Initial conclusion 5. Final conclusion Example 5