Hypothesis Testing and Sample Size Calculation Po Chyou, Ph. D. Director, BBC.

Slides:



Advertisements
Similar presentations
Hypothesis Test II: t tests
Advertisements

You will need Your text Your calculator
CHAPTER EIGHT TESTS OF HYPOTHESES
Hypothesis Testing W&W, Chapter 9.
HYPOTHESIS TESTING. Purpose The purpose of hypothesis testing is to help the researcher or administrator in reaching a decision concerning a population.
Introduction to Hypothesis Testing
CHAPTER 21 Inferential Statistical Analysis. Understanding probability The idea of probability is central to inferential statistics. It means the chance.
Chapter 9 Hypothesis Testing
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
9-1 Hypothesis Testing Statistical Hypotheses Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental.
Basic Elements of Testing Hypothesis Dr. M. H. Rahbar Professor of Biostatistics Department of Epidemiology Director, Data Coordinating Center College.
Chapter 8 Introduction to Hypothesis Testing
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Chapter 9 Hypothesis Testing.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
Intro to Statistics for the Behavioral Sciences PSYC 1900 Lecture 11: Power.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
Formulating a Hypothesis It’s Science!. Hypothesis A Hypothesis is an educated guess that is testable A Hypothesis is an assumption about a population.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Statistical hypothesis testing – Inferential statistics I.
Choosing Statistical Procedures
AM Recitation 2/10/11.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
© 2002 Thomson / South-Western Slide 9-1 Chapter 9 Hypothesis Testing with Single Samples.
Hypothesis Testing.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
1 1 Slide © 2005 Thomson/South-Western Chapter 9, Part B Hypothesis Tests Population Proportion Population Proportion Hypothesis Testing and Decision Making.
The Probability of a Type II Error and the Power of the Test
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.
Chapter 9 Hypothesis Testing II: two samples Test of significance for sample means (large samples) The difference between “statistical significance” and.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
9-1 Hypothesis Testing Statistical Hypotheses Definition Statistical hypothesis testing and confidence interval estimation of parameters are.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
Business Statistics: Contemporary Decision Making, 3e, by Black. © 2001 South-Western/Thomson Learning 9-1 Business Statistics, 3e by Ken Black Chapter.
Large sample CI for μ Small sample CI for μ Large sample CI for p
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Inferential Statistics. The Logic of Inferential Statistics Makes inferences about a population from a sample Makes inferences about a population from.
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
© Copyright McGraw-Hill 2004
STEP BY STEP Critical Value Approach to Hypothesis Testing 1- State H o and H 1 2- Choose level of significance, α Choose the sample size, n 3- Determine.
Hypothesis Testing and Statistical Significance
Chapter 7: Hypothesis Testing. Learning Objectives Describe the process of hypothesis testing Correctly state hypotheses Distinguish between one-tailed.
Chapter 22 Inferential Data Analysis: Part 2 PowerPoint presentation developed by: Jennifer L. Bellamy & Sarah E. Bledsoe.
DSCI 346 Yamasaki Lecture 1 Hypothesis Tests for Single Population DSCI 346 Lecture 1 (22 pages)1.
Ex St 801 Statistical Methods Part 2 Inference about a Single Population Mean (HYP)
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 9 Hypothesis Testing.
Introduction to Hypothesis Test – Part 2
Hypothesis Testing I The One-sample Case
STA 291 Spring 2010 Lecture 18 Dustin Lueker.
Chapter 2 Hypothesis Testing Test for one and two means
Hypothesis Tests for a Population Mean in Practice
Inferences on Two Samples Summary
9 Tests of Hypotheses for a Single Sample CHAPTER OUTLINE
Hypothesis Testing (Cont.)
Chapter 9: Hypothesis Testing
St. Edward’s University
Hypothesis Tests for Proportions
Statistical Inference about Regression
Slides by JOHN LOUCKS St. Edward’s University.
Statistics collection, presentation, analysis and interpretation of data Descriptive collection and description of data sets to yield meaningful information.
Analyzing and Interpreting Quantitative Data
Chapter 16 Single-Population Hypothesis Tests
Hypothesis Tests for a Population Proportion
Statistical Power.
Presentation transcript:

Hypothesis Testing and Sample Size Calculation Po Chyou, Ph. D. Director, BBC

Hypothesis Testing on Population mean(s) Population median(s)  Population proportion(s) Population variance(s) Population correlation(s)  Association based on contingency table(s) Coefficients based on regression model Odds ratio Relative risk Trend analysis Survival distribution(s) / curve(s) Goodness of fit

Hypothesis Testing 1.Definition of a Hypothesis An assumption made for the sake of argument 2.Establishing Hypothesis Null hypothesis - H 0 Alternative hypothesis - H a 3. Testing Hypotheses Is H 0 true or not?

Hypothesis Testing 4.Type I and Type II Errors Type I error: we reject H 0 but H 0 is true α = Pr(reject H 0 / H 0 is true) = Pr(Type I error) = Level of significance in hypothesis testing Type II error: we accept H 0 but H 0 is false  = Pr(accept H 0 / H 0 is false) = Pr(Type II error)

Hypothesis Testing 5.Steps of Hypothesis Testing - Step 1Formulate the null hypothesis H 0 in statistical terms - Step 2Formulate the alternative hypothesis H a in statistical terms - Step 3Set the level of significance α and the sample size n - Step 4Select the appropriate statistic and the rejection region R - Step 5Collect the data and calculate the statistic

Hypothesis Testing 5.Steps of Hypothesis Testing (continued) - Step 6If the calculated statistic falls in the rejection region R, reject H 0 in favor of H a ; if the calculated statistic falls outside R, do not reject H 0

Hypothesis Testing A random sample of 400 persons included 240 smokers and 160 non- smokers. Of the smokers, 192 had CHD, while only 32 non-smokers had CHD. Could a health insurance company claim the proportion of smokers having CHD differs from the proportion of non-smokers having CHD? 6. An Example

Hypothesis Testing Example (continued) Let P 1 = the true proportion of smokers having CHD P 2 = the true proportion of non-smokers having CHD - Step 1 H 0 : P 1 = P 2 - Step 2 H a : P 1  P 2 - Step 3 α =.05, n = 400

Hypothesis Testing Example (continued) - Step 4statistic =  = P 1 - P 2 where P 1 = x 1, P 2 = x 2 and P = x 1 + x 2 n 1 n 2 n 1 + n 2 P(1-P) (1/n 1 + 1/n 2 )

Hypothesis Testing Example (continued) P 1 = x 1 n1n1 = 192 = P 2 = x 2 n2 n2 = 32 = P = x 1 + x 2 n 1 + n 2 = = 224 =  = P 1 - P 2 P(1-P) (1/n 1 + 1/n 2 ) = =.60 = > 1.96 (.56) (1-.56) (1/ /160) Step 5

Hypothesis Testing Example (continued) - Step 6 Reject H 0 and conclude that smokers had significantly higher proportion of CHD than that of non-smokers. [P-value < ]

Hypothesis Testing 7. Contingency Table Analysis The Chi-square distribution (  2 )

Hypothesis Testing Equation for chi-square for a contingency table For i = 1, 2 and j =1, 2  2 = (O 11 - E 11 ) 2 + (O 12 - E 12 ) 2 + (O 21 - E 21 ) 2 + (O 22 - E 22 ) 2 E 11 E 12 E 21 E 22  2 =  (O ij - E ij ) 2 i, j E ij

Hypothesis Testing Equation for chi-square for a contingency table (cont.) E 11 = n 1 m 1 E 12 = n 1 - n 1 m 1 = n 1 m 2 nnn E 21 = n 2 m 1 E 22 = n 2 - n 2 m 1 = n 2 m 2 nnn

Hypothesis Testing Example : Same as before - Step 1 H 0 : there is no association between smoker status and CHD - Step 2 H a : there is an association between smoker status and CHD - Step 3  =.05, n = Step 4statistic =  2 = (O 11 - E 11 ) 2 + (O 12 - E 12 ) 2 + (O 21 - E 21 ) 2 + (O 22 - E 22 ) 2 E 11 E 12 E 21 E 22

Hypothesis Testing Example (continued) : Same as before

- Step 5

Hypothesis Testing Example (continued) : Same as before E 11 = n 1 m 1 = 240 * 224 = n 400 E 12 = n 1 - n 1 m 1 = = n E 21 = n 2 m 1 = 160 * 224 = 89.6 n 400 E 22 = n 2 - n 2 m 1 = = 70.4 n - Step 5 (continued) Expectation Counts

Hypothesis Testing Example (continued) : Same as before - Step 5 (continued)  2 = (O 11 - E 11 ) 2 + (O 12 - E 12 ) 2 + (O 21 - E 21 ) 2 + (O 22 - E 22 ) 2 E 11 E 12 E 21 E 22 = ( ) 2 + ( ) 2 + ( ) 2 + ( ) = = > 3.841

Hypothesis Testing Example (continued) : Same as before - Step 6 Reject H 0 and conclude that there is an association between smoker status and CHD. [P-value < ]

Sample Size Estimation and Statistical Power Calculation Definition of Power Recall :  = Pr (accept H 0 / H 0 is false) = Pr (Type II error) Power = 1 -  = Pr(reject H 0 / H 0 is false)

Sample Size Estimation for Intervention on Tick Bites Among Campers Assumptions 1.Given that the proportion (P CON ) of tick bites among campers in the control group is constant. 2.Given that the proportion (P INT ) of tick bites among campers in the intervention group is reduced by 50% compared to that of the control group after intervention has been implemented. 3.Given that a one- or two- tailed test is of interest with 80% power and a type-I error of 5%.

Sample Size Estimation for Intervention on Tick Bites Among Campers Summary Table 1

Statistical Power Calculation for Intervention on Obesity of Women in MESA Assumptions 1.Given that the proportion (P CON ) of women who are obese at baseline (i.e., the control group) is constant. There are a total of 840 women in the control group. Based on our preliminary data analysis results, approximately 50% of these 840 women at baseline are obese (BMI >= 27.3). 2.Given that the proportion (P INT ) of women who are obese in the intervention group is reduced by 5% or more compared to that of the control group after intervention has been implemented. There are a total of 680 women who had been newly recruited. Based on our preliminary data analysis results, 50% of these 680 newly recruited women are obese. Assume that 60% of these women will agree to participate, we will have 200 women to be targeted for intervention.

Statistical Power Calculation for Intervention on Obesity of Women in MESA (continued) 3.Given that a one-tailed test is of interest with a type-I error of 5%, then the estimated statistical powers are shown in Table 1 for detecting a difference of 5% or more in the proportion of obesity between the control group and the intervention group. Assumptions Table 1

Reference “Statistical Power Analysis for the Behavioral Sciences” Jacob Cohen Academic Press, 1977

Take Home Message: You’ve got questions : Data ? S T A TI S T I C S ?... Contact Biostatistics and consult with an experienced biostatistician –Po Chyou, Director, Senior Biostatistician (ext ) –Dixie Schroeder, Secretary (ext ) OR Do it at your own risk

Free Handout