Dr Mohammad Hossein Fallahzade Determining the Size of a Sample In the name of God.

Slides:



Advertisements
Similar presentations
Hypothesis Testing. To define a statistical Test we 1.Choose a statistic (called the test statistic) 2.Divide the range of possible values for the test.
Advertisements

Sample size estimation
1 COMM 301: Empirical Research in Communication Lecture 15 – Hypothesis Testing Kwan M Lee.
Statistics and Quantitative Analysis U4320
Statistical Issues in Research Planning and Evaluation
Business Statistics for Managerial Decision
Estimation of Sample Size
Review: What influences confidence intervals?
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 7-1 Chapter 7 Confidence Interval Estimation Statistics for Managers.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Inferences About Process Quality
Chapter 8 Introduction to Hypothesis Testing
Determining the Size of a Sample
Sample Size Determination
Sample size. Ch 132 Sample Size Formula Standard sample size formula for estimating a percentage:
Determining the Size of
Sample Size Determination Ziad Taib March 7, 2014.
McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited. Adapted by Peter Au, George Brown College.
AM Recitation 2/10/11.
Confidence Intervals and Hypothesis Testing - II
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.
© 2003 Prentice-Hall, Inc.Chap 9-1 Fundamentals of Hypothesis Testing: One-Sample Tests IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION.
Chapter 8 Hypothesis testing 1. ▪Along with estimation, hypothesis testing is one of the major fields of statistical inference ▪In estimation, we: –don’t.
Fundamentals of Hypothesis Testing: One-Sample Tests
Statistical Analysis Statistical Analysis
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
More About Significance Tests
Sample size determination Nick Barrowman, PhD Senior Statistician Clinical Research Unit, CHEO Research Institute March 29, 2010.
Jan 17,  Hypothesis, Null hypothesis Research question Null is the hypothesis of “no relationship”  Normal Distribution Bell curve Standard normal.
Estimation of Statistical Parameters
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
PROBABILITY (6MTCOAE205) Chapter 6 Estimation. Confidence Intervals Contents of this chapter: Confidence Intervals for the Population Mean, μ when Population.
Statistical Sampling & Analysis of Sample Data
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
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.
Biostatistics Class 6 Hypothesis Testing: One-Sample Inference 2/29/2000.
Testing of Hypothesis Fundamentals of Hypothesis.
1 MARKETING RESEARCH Week 5 Session A IBMS Term 2,
Categorical data 1 Single proportion and comparison of 2 proportions دکتر سید ابراهیم جباری فر( (Dr. jabarifar تاریخ : 1388 / 2010 دانشیار دانشگاه علوم.
Determining the Size of a Sample 1 Copyright © 2014 Pearson Education, Inc.
통계적 추론 (Statistical Inference) 삼성생명과학연구소 통계지원팀 김선우 1.
Chapter 8 Delving Into The Use of Inference 8.1 Estimating with Confidence 8.2 Use and Abuse of Tests.
RDPStatistical Methods in Scientific Research - Lecture 41 Lecture 4 Sample size determination 4.1 Criteria for sample size determination 4.2 Finding the.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
Medical Statistics as a science
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
© 2004 Prentice-Hall, Inc.Chap 9-1 Basic Business Statistics (9 th Edition) Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests.
Statistical Analysis II Lan Kong Associate Professor Division of Biostatistics and Bioinformatics Department of Public Health Sciences December 15, 2015.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.1 Categorical Response: Comparing Two Proportions.
Sample Size Determination
What is a Hypothesis? A hypothesis is a claim (assumption) about the population parameter Examples of parameters are population mean or proportion The.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
SAMPLING DISTRIBUTION OF MEANS & PROPORTIONS. SAMPLING AND SAMPLING VARIATION Sample Knowledge of students No. of red blood cells in a person Length of.
SAMPLING DISTRIBUTION OF MEANS & PROPORTIONS. SAMPLING AND SAMPLING VARIATION Sample Knowledge of students No. of red blood cells in a person Length of.
Sample Size Mahmoud Alhussami, DSc., PhD. Sample Size Determination Is the act of choosing the number of observations or replicates to include in a statistical.
Confidence Intervals and Sample Size. Estimates Properties of Good Estimators Estimator must be an unbiased estimator. The expected value or mean of.
Inferential Statistics Psych 231: Research Methods in Psychology.
Sampling: Distribution of the Sample Mean (Sigma Known) o If a population follows the normal distribution o Population is represented by X 1,X 2,…,X N.
Class Six Turn In: Chapter 15: 30, 32, 38, 44, 48, 50 Chapter 17: 28, 38, 44 For Class Seven: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 Read.
Sampling and Sampling Distribution
HYPOTHESIS TESTING.
Sample Size Determination
How many study subjects are required ? (Estimation of Sample size) By Dr.Shaik Shaffi Ahamed Associate Professor Dept. of Family & Community Medicine.
Chapter 8: Inference for Proportions
Comparing Populations
Type I and Type II Errors
Presentation transcript:

Dr Mohammad Hossein Fallahzade Determining the Size of a Sample In the name of God

Ch 132 Sample Accuracy Sample accuracy: refers to how close a random sample’s statistic is to the true population’s value it represents Important points: –Sample size is not related to representativeness –Sample size is related to accuracy

Ch 133 Sample Size and Accuracy Intuition: Which is more accurate: a large probability sample or a small probability sample? The larger a probability sample is, the more accurate it is (less sample error).

Ch 134 ± Probability sample accuracy (error) can be calculated with a simple formula, and expressed as a ± % number. n = 1,450 4% - 2% = ±2%

Ch 135 Sample Size Formula Fortunately, statisticians have given us a formula which is based upon these relationships. –The formula requires that we Specify the amount of confidence we wish Estimate the variance in the population Specify the amount of desired accuracy we want. –When we specify the above, the formula tells us what sample we need to use…n

Ch 136 Population Size e=±3% Sample Size e=±4% Sample Size 10,000____ 100,000____ 1,000,000____ 100,000,00 0 ____ Sample Size and Population Size Where is N (size of the population) in the sample size determination formula? 1, , , , In almost all cases, the accuracy (sample error) of a probability sample is independent of the size of the population.

Ch 137 Sample Size Formula Standard sample size formula for estimating a percentage:

Ch 138 Practical Considerations in Sample Size Determination How to estimate variability (p times q) in the population –Expect the worst cast (p=50; q=50) –Estimate variability: Previous studies? Conduct a pilot study?

Ch 139 Practical Considerations in Sample Size Determination How to determine the amount of desired sample error –Convention is + or – 5% –The more important the decision, the more (smaller number) the sample error.

Ch 1310 Practical Considerations in Sample Size Determination How to decide on the level of confidence desired –The more confidence, the larger the sample size. –Convention is 95% (z=1.96) –The more important the decision, the more likely the manager will want more confidence. 99% confidence, z=2.58.

Ch 1311 Example Estimating a Percentage in the Population What is the required sample size? –Five years ago a survey showed that 42% of consumers were aware of the company’s brand (Consumers were either “aware” or “not aware”) –After an intense ad campaign, management wants to conduct another survey and they want to be 95% confident that the survey estimate will be within ±5% of the true percentage of “aware” consumers in the population. –What is n?

Ch 1312 Estimating a Percentage: What is n? Z=1.96 (95% confidence) p=42 q=100-p=58 e=5 What is n?

Ch 1313 Estimating a Mean Estimating a mean requires a different formula (See MRI 13.2, p. 378) Z is determined the same way (1.96 or 2.58) E is expressed in terms of the units we are estimating (i.e., if we are measuring attitudes on a 1-7 scale, we may want error to be no more than ±.5 scale units S is a little more difficult to estimate…

Ch 1314 Estimating s Since we are estimating a mean, we can assume that our data are either interval or ratio. When we have interval or ratio data, the standard deviation, s, may be used as a measure of variance.

Ch 1315 Estimating s How to estimate s? –Use standard deviation from a previous study on the target population. –Conduct a pilot study of a few members of the target population and calculate s. –Estimate the range the value you are estimating can take on (minimum and maximum value) and divide the range by 6.

Ch 1316 Estimating s –Why divide the range by 6? The range covers the entire distribution and ± 3 (or 6) standard deviations cover 99.9% of the area under the normal curve. Since we are estimating one standard deviation, we divide the range by 6.

Ch 1317 Practice Example A client wants to survey out-shopping intentions (percentage of people saying “yes” to a question regarding their intentions to out-shop) among heads of households in Antigonish. The client wants a ± 3%, 19 times out of 20. There are 3,000 households in the catchment area. What sample size should be used?

Ch 1318 Sample size Considerations Needed for Two Independent Groups

Ch ingredients for sample size calculations 1.Research question to be answered 2.Outcome measure 3.Effect size 4.Variability & success proportions 1.For continuous outcome 2.For binary outcome 5.Type I error 6.Type II error 7.Other factors

Ch 1320 Research question to be answered Translate the question into a clear hypothesis! For example, –H0: there is no difference between treatment and control –H1: there are differences between treatment and control Hypothesis  Statistical results  Conclusion –statistically significant result (that is, p<0.05)  enough evidence to reject H0  accept H1 –statistically non-significant result (that is, p>0.05)  no evidence to reject H0 Further explanations of ingredient 1

Ch 1321 Further explanations of ingredient 2 Outcome measures –Should only have one primary outcome measure per study! –Could have a secondary outcome measure, but we can only sample sizing/powering for the primary outcome May not have enough power for any results relating to the secondary outcome Recall the two types of variables: –Continuous –Categorical If the variable has 2 categories  Binary

Ch 1322 Effect Size (d) – from the word ‘difference’ The magnitude of difference that we are looking for Clinically important difference –For 2 treatment arms: difference in means if continuous outcome difference in success proportions if binary outcome Minimum value worth detecting –Decide what the minimum ‘better’ means by looking at the endpoint and by considering background noise Headache? or Moderate & severe headache? or Migraine? Values could be found in previous literatures if they were doing similar study or can be estimated base on clinical experience but make sure it is reasonable (Remember GIGO!) Further explanations of ingredient 3

Ch 1323 Effect Size (d) Example: In previous study, morbidity of a certain illness under conventional care is known to be 73% Interested in reducing morbidity to 50% (clinically important) Therefore the effect size is 23% –A difference between these morbidities Example: Summarising all the studies with similar setting and characteristics regarding to a specific outcome measure, e.g. pain relief –The overall response rate on Placebo is 32% –The overall response rate on Active is 50% –The overall estimate of the difference between Active and Placebo is 18% Of all the differences that are found in these studies, the smallest difference observed is 12% –Could be the minimum value worth detecting Further explanations of ingredient 3…

Ch 1324 Variability (σ) – pronounce as Sigma For continuous outcome only! Standard deviation (σ) or variance (σ 2 ) represents the spread of the distribution of a continuous variable –Values can usually be found in previous literatures or can be estimated base on clinical experience but make sure it is reasonable (GIGO!) Further explanations of ingredient 4.1

Ch 1325 If there are several studies with variance estimates available it is recommended that an overall estimate of the population variance or the pooled variance estimates, σ p 2, is obtained from the following formula where k is the number of studies, σ i 2 is the variance estimate from the i th study and df i is the degrees of freedom about this variance (which is the corresponding number of observations in the group minus 1, i.e. (n i - 1)). Pooled standard deviation

Ch 1326 Example: The following descriptive statistics (number of subjects, mean ± standard deviation) of an outcome measure for each treatment arm were reported, Treatment A: n A = 83, mean A ± σ A = ± Treatment B: n B = 87, mean B ± σ B = ± Using the formula above, the pooled variance (σ p 2 ) and the pooled SD (σ p ) is Pooled standard deviation…

Slide - 27 Success proportions (p) ●For binary outcome only! ●Normally concerning Cured/Not Cured, Alive/Dead…etc ●Require to know the success proportion of the binary outcome for each group or treatment arm first, can be found in previous literatures or estimate with clinical experience ●In the above table, suppose we are interested in the proportion of Alive, then the success proportions in each treatment are p A and p B for treatment A and B respectively ●Denote is the average success proportion, i.e. (p A + p B )/2 ●We can use these information to find out the effect size and the standard deviation ●The effect size is the difference of the two success proportions, i.e. p A - p B ●The estimated standard deviation is, where is between 0 and 100 AliveDeadTotalSuccess proportion Treatment AabnAnA p A = a / n A Treatment BcdnBnB p B = c / n B Further explanations of ingredient 4.2

Slide - 28 Further explanations of ingredients 5 & 6 Type I error (α) & Type II error (β) ●You should have heard these mentioned in the Hypothesis Testing session, hence this is just a reminder ●Due to the fact that we are sampling from a population ●Uncertainty is introduced ●Quality of the sample will have an impact on our conclusion ●Error does exist ●There are two types of error: ●Type I error (α): observed something in our sample but not exist in the population (the truth) ●e.g. drinking water leads to cancer ●Type II error (β): observed nothing in our sample but something exist in the population (the truth) ●e.g. smoking doesn’t lead to cancer

Slide - 29 Type I error (α) & Type II error (β) ●Type I error (α): usually allow for 5% ●Significant level = α  cut-off point for p-value, i.e No True Difference True Difference No Observed Difference Well Designed Trial (1-  ) Type II Error (  ) Observed Difference Type I Error (  ) Well Powered Trial (1-  ) Further explanations of ingredients 5 & 6…

Slide - 30 Type I error (α) & Type II error (β) ●Type II error (β): usually allow for 10% or 20%, more than Type I error (since Type I error is referred as society risk and hence more crucial to pharmaceutical company financially) ●Power of the study = 1-Type II error = 1-β, usually use 80% or 90%, the probability of detecting a difference in our study if there is one in the whole population No True Difference True Difference No Observed Difference Well Designed Trial (1-  ) Type II Error (  ) Observed Difference Type I Error (  ) Well Powered Trial (1-  ) Further explanations of ingredients 5 & 6…

Slide - 31 Further explanations of ingredient 7 Other factors ●Calculated sample size meaning the number of subjects required during the analysis, not the number to start with for recruiting subjects, if you want to detect a certain effect size with a specific significance and power ●Study design: ●Response rate: data gathering affect the response rate, e.g. about 50% response rate by postal questionnaire ●Drop-out rate: due to following subjects for a long period of time, e.g. cohort study, usually 20% - 25% ●Can increase the sample size by a suitable percentage to allow for these problems ●for example, increase calculated sample size (n) by 25%

Slide - 32 ●From the 7 ingredients, there are 4 crucial factors involve in the actual sample size calculation 1.Effect size (d): the size of the difference we want to be able to detect 2.Variability (σ) or ( ): the standard deviation of the continuous outcome or the estimation for the binary outcome 3.Level of significance (α): the risk of a Type I error we will accept 4.Power (1-β): the risk of a Type II error we will accept Formula for 2 independent groups

Slide - 33 ●We use these 4 factors to generalise a formula to calculate sample size for 2 groups with continuous or binary outcome ●The formula is: ●where  is the standardised effect size ●i.e. effect size / variability ●  = d/  for continuous outcome ●  = for binary outcome Formula for 2 independent groups…

Slide - 34 Z-score is the number of standard deviations above/below the mean. z = ( x –  )/  What is z-score? z-score

Slide - 35 What is z (1-  /2) and z (1-  ) ? ●z (1-  /2) is a value from the Normal distribution relating to significance level ●If the level of significance is set to 5%, then  = 0.05 ●For 2-sided test, z (1-  /2) = z = ●If the level of significance is set to 1%, then  = 0.01 ●For 2-sided test, z (1-  /2) = z = ● z (1-  ) is a value from the Normal distribution relating to power ●If  is set to 10%, then the power is 90%, so 1-  = 0.90 ●For 1-sided test, z (1-  ) = z 0.90 = ●If  is set to 20%, then the power is 80%, so 1-  = 0.80 ●For 1-sided test, z (1-  ) = z 0.80 =

Slide - 36 Table of z-scores z-score

Slide - 37 The quick formula ●We can pre-calculate [z (1-  /2) + z (1-  ) ] 2, and call this k, using the relevant z-scores provided in the table from the previous slide for different combination of level of significance  and power 1- , the formula then becomes n (per group) = 2k/  2 ●Remember to multiply the calculated sample size (n) by 2 to allow for 2 groups! ●Always round up your final sample size k  = 0.10 (90% Power)  = 0.20 (80% Power)  =  = where  is effect size / variability  = d/  for continuous outcome  = for binary outcome

Slide - 38 Even simpler! ●For 5% significance level and power of 80% n = 2  (2  7.85)/  2  32/  2 (Total for 2 groups) ●For 1% significance level and power of 90% n = 2  (2  11.68)/  2  60/  2 (Total for 2 groups) “A sample size of n within two groups will have 80% (and 90% respectively) power to detect the standardised effect size , and that the test will be performed at the 5% (and 1% respectively) significance level (two-sided).” Note that  =  / , hence the required sample size increases as  increases, or as  decreases.

Slide - 39 The 4 factors & sample size ●Referring to the quick formula, we can predict the effect on the sample size if we increase/decrease the value of each of the 4 factors ●If the level of significance (  ) decrease, e.g. from 5% to 1% ●sample size increase ●If Type II error rate (  ) decrease, power (1-  ) increase, e.g. from 80% to 90% ●sample size increase ●If the effect size (d) decrease, e.g. detecting a smaller difference between the 2 groups ●sample size increase ●If the variability (  ) decrease, e.g. assuming the outcome measure has a smaller spread or less vary ●sample size decrease

Slide - 40 Example: Differences between means In a trial to compare the effects of two oral contraceptives on blood pressure (over one year), it is anticipated that one drug will increase diastolic blood pressure by 3mmHg, and the other will not change it. The standard deviation (of the changes in blood pressure) in both groups is expected to be 10mmHg. How many patients are required for this difference to be significant at the 5% level (with 80% power)? women per group and a total of 350 women need to be recruited. …with continuous outcome

Slide - 41 Example: Difference between proportions In a randomised clinical trial, the placebo response is anticipated to be 25%, and the active treatment response 65%. How many patients are needed if a two-sided test at the 1% level is planned, and a power of 90% is required? so n=47 per group and a total of 94 patients are needed for this study. …with binary outcome