Sample Size Determination In the Context of Hypothesis Testing

Slides:



Advertisements
Similar presentations
Chapter 11 Comparing Two Means. Homework 19 Read: pages , , LDI: 11.1, 11.2, EX: 11.40, 11.41, 11.46,
Advertisements

“Students” t-test.
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Last Time (Sampling &) Estimation Confidence Intervals Started Hypothesis Testing.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chapter Seventeen HYPOTHESIS TESTING
Hyp Test II: 1 Hypothesis Testing: Additional Applications In this lesson we consider a series of examples that parallel the situations we discussed for.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Sample size computations Petter Mostad
Point and Confidence Interval Estimation of a Population Proportion, p
Stat Day 16 Observations (Topic 16 and Topic 14)
Hypothesis Testing: Type II Error and Power.
Hypothesis : Statement about a parameter Hypothesis testing : decision making procedure about the hypothesis Null hypothesis : the main hypothesis H 0.
Understanding Research Results. Effect Size Effect Size – strength of relationship & magnitude of effect Effect size r = √ (t2/(t2+df))
PSY 1950 Confidence and Power December, Requisite Quote “The picturing of data allows us to be sensitive not only to the multiple hypotheses that.
Chapter 3 Hypothesis Testing. Curriculum Object Specified the problem based the form of hypothesis Student can arrange for hypothesis step Analyze a problem.
Chapter 11: Inference for Distributions
Chapter 9 Hypothesis Testing.
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
5-3 Inference on the Means of Two Populations, Variances Unknown
The t Tests Independent Samples.
Quantitative Business Methods for Decision Making Estimation and Testing of Hypotheses.
CHAPTER 23 Inference for Means.
Based on a sample x 1, x 2, …, x 12 of 12 values from a population that is presumed normal, Genevieve tested H 0 :  = 20 versus H 1 :   20 at the 5%
Hypothesis Testing.
Jeopardy Hypothesis Testing T-test Basics T for Indep. Samples Z-scores Probability $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500 $400.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Lecture 14 Testing a Hypothesis about Two Independent Means.
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
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.
PowerPoint presentations prepared by Lloyd Jaisingh, Morehead State University Statistical Inference: Hypotheses testing for single and two populations.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
Week 111 Power of the t-test - Example In a metropolitan area, the concentration of cadmium (Cd) in leaf lettuce was measured in 7 representative gardens.
1 Lecture note 4 Hypothesis Testing Significant Difference ©
S-012 Testing statistical hypotheses The CI approach The NHST approach.
Introduction to the Practice of Statistics Fifth Edition Chapter 6: Introduction to Inference Copyright © 2005 by W. H. Freeman and Company David S. Moore.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Education 793 Class Notes Decisions, Error and Power Presentation 8.
METHODS IN BEHAVIORAL RESEARCH NINTH EDITION PAUL C. COZBY Copyright © 2007 The McGraw-Hill Companies, Inc.
MeanVariance Sample Population Size n N IME 301. b = is a random value = is probability means For example: IME 301 Also: For example means Then from standard.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Chapter 8 Minitab Recipe Cards. Confidence intervals for the population mean Choose Basic Statistics from the Stat menu and 1- Sample t from the sub-menu.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
T Test for Two Independent Samples. t test for two independent samples Basic Assumptions Independent samples are not paired with other observations Null.
Applied Quantitative Analysis and Practices LECTURE#14 By Dr. Osman Sadiq Paracha.
Week 111 Review - Sum of Normal Random Variables The weighted sum of two independent normally distributed random variables has a normal distribution. Example.
Chapter 13 Understanding research results: statistical inference.
Analysis of Variance ANOVA - method used to test the equality of three or more population means Null Hypothesis - H 0 : μ 1 = μ 2 = μ 3 = μ k Alternative.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Chapter 9 Introduction to the t Statistic
Lecture #25 Tuesday, November 15, 2016 Textbook: 14.1 and 14.3
More on Inference.
Chapter 9 Hypothesis Testing.
Significance Test for the Difference of Two Proportions
Chapter 4. Inference about Process Quality
8-1 of 23.
Hypothesis Testing.
Hypothesis Testing: Hypotheses
Chapter 9 Hypothesis Testing.
More on Inference.
Hypothesis tests for the difference between two means: Independent samples Section 11.1.
Section 12.2: Tests about a Population Proportion
Decision Errors and Power
Statistical inference
Statistical Inference about Regression
Statistical inference
Presentation transcript:

Sample Size Determination In the Context of Hypothesis Testing

Recall, in context of Estimation, Sample Size is based upon: the width of the Confidence interval: The confidence level (1 – a)  confidence coefficient, z1-a/2 The population standard error, s/n w ( ) x – z1-a/2(s/n) x x + z1-a/2(s/n)

Sample size in Context of Hypothesis Testing: Need to consider POWER as well as confidence level Example: Suppose we have a hypothesis on one mean: Ho: mo = 100 vs. Ha: mo 100 s = 10 a = .05 If the true mean is in fact ma = 105, what size sample is required so that the power of the test is (1-b) = .80 ?

For our hypothesis test, we will reject Ho for x greater than C1 or less than C2 a/2 = .025 a/2 = .025 mo=100 C2 = mo-Z1-a/2(s/n) C1 = mo+Z1-a/2(s/n)

Suppose, in fact, that ma = 105. We will reject Ho Let’s look at these decision points (C1 and C2) relative to a specific alternative. Suppose, in fact, that ma = 105. We will reject Ho if x is greater than C1 or x is less than C2 Distribution based on Ha C1 ma=105 C2

We want b = .20 for power=.80 We want b = .20  zb = -.842 ma C2 C1

Note for sample size determination: a, b are set by the investigator Both a specific null (mo) and a specific alternative (ma) must be specified we assume that the same variance s2 holds for both the null and alternative distributions a/2 a/2 b ma m0 C1 = mo+z1-a/2(s/n) C1 = ma-z1- (s/n)

We now have: C1 in terms of both the Ho and Ha distributions: Setting these equal: Then solve for n.

Sample Size is then: Note: Always use positive values for z1-a/2 and (we defined CI using  positive z)

In our example: s = 10 a = .05  z1-a/2 = 1.96 b = .20  = .842 mo = 100 ma = 105 Or a sample size of n=32 is needed.

If we change the desired power to 1-b = .90: Or a sample size of n=42 is needed.

In the context of hypothesis testing, sample size is a function of: s2, the population variance a = .05  z1-a/2 , Type I error rate b = .20  , Type II error rate Distance between mo , hypothesized mean and ma , a specific alternative

Using Minitab to estimate Sample Size: Stat  Power and Sample Size  1-Sample Z Difference between mo and ma Desired power (separate by spaces if entering several) 2-sided test s

Power and Sample Size 1-Sample Z Test Testing mean = null (versus not = null) Calculating power for mean = null + difference Alpha = 0.05 Sigma = 10 Sample Target Actual Difference Size Power Power 5 32 0.8000 0.8074 5 43 0.9000 0.9064

Sample size and power for comparing means of 2 independent groups. In the example comparing LOS for elective vs. emergency patients, we observed a difference between sample means of 3.3 days – but found that this was NOT statistically significantly different from zero. However 3.3 days is a large, expensive difference in length of stay. Our data had relatively large observed variance, and small n. What was the power of our study to detect a difference of 3.3 days? What sample size would be needed per group to find a difference of 3 days or more significantly different from zero?

Set a and 1- or 2- sided test, using options menu. In Minitab: Stat  Power and Sample Size  2-sample t To evaluate power: Enter sample sizes Enter observed difference in means Enter standard deviation Set a and 1- or 2- sided test, using options menu. s

In Minitab: Stat  Power and Sample Size  2-sample t 2-Sample t Test Testing mean 1 = mean 2 (versus not =) Calculating power for mean 1 = mean 2 + 3.3 Alpha = 0.05 Sigma = 10 Sample Size Power 14 0.1342 11 0.1142 Note: Minitab assumes equal n’s for the 2 groups, and only gives space for one value of s Clearly, our power to detect a difference as large as 3.3 days was only about 12% -- not very good!

s In Minitab: Stat  Power and Sample Size  2-sample t To estimate sample size: Enter desired power Enter desired significant difference in means Enter standard deviation s

Power and Sample Size 2-Sample t Test Testing mean 1 = mean 2 (versus not =) Calculating power for mean 1 = mean 2 + 3 Alpha = 0.05 Sigma = 10 Sample Target Actual Size Power Power 176 0.8000 0.8014 235 0.9000 0.9007 Note: sample sizes are per group. If this seems excessive – is your estimate of the standard deviation reasonable? I used the larger of the 2 observed SD here. You might want to compute a pooled SD, and try that.