SlideShare una empresa de Scribd logo
1 de 42
TWO Sample Tests ,[object Object],[object Object]
Overview ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Comparing Two Populations Until this point, all the inferential statistics we have considered involve using one sample as the basis for drawing conclusion about one population. Although these single sample techniques are used occasionally in real research, most research studies aim to compare of two (or more) sets of data in order to make inferences about the differences between two (or more) populations. What do we do when our research question concerns a mean difference between two sets of data?
Two kinds of studies ,[object Object],[object Object],[object Object],<- between-subjects design <- within-subjects design
Part I ,[object Object],[object Object],[object Object],[object Object]
Paired T-Test for Within-Subjects Designs Our hypotheses:   H o :   D  = 0   H A :   D     0 To test the null hypothesis, we’ll again compute a t statistic and look it up in the t table. Paired Samples t t =  D -   D   s D  =    s D
Steps for Calculating a Test Statistic Paired Samples T ,[object Object],[object Object],[object Object],[object Object],[object Object]
Confidence Intervals for Paired Samples Paired Samples t   D     t (s D ) General formula X     t (SE)
Effect Size for Dependent Samples Paired Samples d One Sample d
Exercise In Everitt’s study (1994), 17 girls being treated for anorexia were weighed before and after treatment.  Difference scores were calculated for each participant. Test the null hypothesis that there was no change in weight. Compute a 95% confidence interval for the mean difference. Calculate the effect size Change in Weight n = 17   = 7.26 s D  = 7.16
Exercise T-test Change in Weight n = 17   = 7.26 s D  = 7.16
Exercise Confidence Interval Change in Weight n = 17   = 7.26 s D  = 7.16
Exercise Effect Size Change in Weight n = 17   = 7.26 s D  = 7.16
Part II ,[object Object],[object Object],[object Object],[object Object]
T-Test for Independent Samples The goal of a between-subjects research study is to evaluate the mean difference between two populations (or between two treatment conditions). H o :   1  =    2 H A :   1      2 We can’t compute difference scores, so …
T-Test for Independent Samples We can re-write these hypotheses as follows:   H o :   1  -    2  = 0   H A :   1  -   2    0 To test the null hypothesis, we’ll again compute a t statistic and look it up in the t table.
T-Test for Independent Samples General t formula t =  sample statistic - hypothesized population parameter   estimated standard error Independent samples t   One Sample t
T-Test for Independent Samples Standard Error for a Difference in Means The single-sample standard error ( s x  ) measures how much error expected between X and   . The independent-samples standard error (s x1-x2 ) measures how much error is expected when you are using a sample mean difference (X 1  – X 2 ) to represent a population mean difference.
T-Test for Independent Samples Standard Error for a Difference in Means Each of the two sample means represents its own population mean, but in each case there is some error.  The amount of error associated with each sample mean can be measured by computing the standard errors. To calculate the total amount of error involved in using  two  sample means to approximate  two  population means, we will find the error from each sample separately and then  add  the two errors together.
T-Test for Independent Samples Standard Error for a Difference in Means But… This formula only works when n 1  = n 2 .  When the two samples are different sizes, this formula is  biased .  This comes from the fact that the formula above treats the two sample variances equally.  But we know that the statistics obtained from large samples are better estimates, so we need to give larger sample more weight in our  estimated standard error.
T-Test for Independent Samples Standard Error for a Difference in Means We are going to change the formula slightly so that we use the pooled sample variance instead of the individual sample variances. This pooled variance is going to be a weighted estimate of the variance derived from the two samples.
Steps for Calculating a Test Statistic One-Sample T ,[object Object],[object Object],[object Object],[object Object]
Steps for Calculating a Test Statistic Independent Samples T ,[object Object],[object Object],[object Object],[object Object],[object Object],d.f. = (n 1  - 1) + (n 2  - 1)
Illustration A developmental psychologist would like to examine the difference in verbal skills for 8-year-old boys versus 8-year-old girls.  A sample of 10 boys and 10 girls is obtained, and each child is given a standardized verbal abilities test.  The data for this experiment are as follows: Girls Boys n 1  = 10   = 37 SS 1  = 150 n 2  = 10   = 31 SS 2  = 210
STEP 1:  get mean difference Illustration Girls Boys n 1  = 10   = 37 SS 1  = 150 n 2  = 10   = 31 SS 2  = 210
STEP 2:  Compute Pooled Variance Illustration Girls Boys n 1  = 10   = 37 SS 1  = 150 n 2  = 10   = 31 SS 2  = 210
STEP 3: Compute Standard Error Illustration Girls Boys n 1  = 10   = 37 SS 1  = 150 n 2  = 10   = 31 SS 2  = 210
STEP 4: Compute T statistic and df d.f. = (n 1  - 1) + (n 2  - 1) =  (10-1) + (10-1) = 18 Illustration Girls Boys n 1  = 10   = 37 SS 1  = 150 n 2  = 10   = 31 SS 2  = 210
STEP 5: Use table E.6 T = 3 with 18 degrees of freedom For alpha = .01, critical value of t is 2.878 Our T is more extreme, so we reject the null There is a significant difference between boys and girls Illustration Girls Boys n 1  = 10   = 37 SS 1  = 150 n 2  = 10   = 31 SS 2  = 210
T-Test for Independent Samples t-statistic Independent samples  t-statistic Single sample  t-statistic Estimated Standard Error Sample Variance Hypothesized Population Parameter Sample Data
Confidence Intervals for Independent Samples One Sample t   X     t (s x ) General formula X     t (SE) Independent Sample t   (X 1 -X 2 )     t (s x1-x2 )
Effect Size for Independent Samples One Sample d Independent Samples d
Exercise Subjects are asked to memorize 40 noun pairs.  Ten subjects are given a heuristic to help them memorize the list, the remaining ten subjects serve as the control and are given no help.  The ten experimental subjects have a X-bar = 21 and a SS = 100.  The ten control subjects have a X-bar = 19 and a SS = 120.  Test the hypothesis that the experimental group differs from the control group. Give a 95% confidence interval for the difference between groups Give the effect size
Exercise T-test Experimental Control n 1  = 10   = 21 SS 1  = 100 n 2  = 10   = 19 SS 2  = 120
Exercise d.f. = (n 1  - 1) + (n 2  - 1) =  (10-1) + (10-1) = 18 T-test Experimental Control n 1  = 10   = 21 SS 1  = 100 n 2  = 10   = 19 SS 2  = 120
Exercise Confidence Interval Experimental Control n 1  = 10   = 21 SS 1  = 100 n 2  = 10   = 19 SS 2  = 120
Exercise Effect Size Experimental Control n 1  = 10   = 21 SS 1  = 100 n 2  = 10   = 19 SS 2  = 120
Summary Hypothesis Tests Confidence Intervals Effect Sizes 1 Sample 2 Paired Samples 2 Independent Samples
Review
Independent samples  t-statistic t-statistic Paired samples t-statistic One sample  t-statistic Estimated Standard Error Sample Variance Hypothesized Population Parameter Sample Data
Confidence Intervals Paired Samples t   D     t (s D ) One Sample t X     t (SE) Independent Sample t   (X 1 -X 2 )     t (s x1-x2 )
Effect Sizes Paired Samples d One Sample d Independent Samples d

Más contenido relacionado

La actualidad más candente

Nonparametric statistics
Nonparametric statisticsNonparametric statistics
Nonparametric statistics
Tarun Gehlot
 
F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)
Marianne Maluyo
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
shoffma5
 

La actualidad más candente (19)

Correlation
CorrelationCorrelation
Correlation
 
Z And T Tests
Z And T TestsZ And T Tests
Z And T Tests
 
Nonparametric statistics
Nonparametric statisticsNonparametric statistics
Nonparametric statistics
 
Anova (Analysis of variation)
Anova (Analysis of variation)Anova (Analysis of variation)
Anova (Analysis of variation)
 
Repeated Measures t-test
Repeated Measures t-testRepeated Measures t-test
Repeated Measures t-test
 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
 
Non parametrics tests
Non parametrics testsNon parametrics tests
Non parametrics tests
 
117 chap8 slides
117 chap8 slides117 chap8 slides
117 chap8 slides
 
T test
T testT test
T test
 
Nonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec domsNonparametric statistics ppt @ bec doms
Nonparametric statistics ppt @ bec doms
 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
 
T-Test
T-TestT-Test
T-Test
 
F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)F test Analysis of Variance (ANOVA)
F test Analysis of Variance (ANOVA)
 
The t Test for Two Related Samples
The t Test for Two Related SamplesThe t Test for Two Related Samples
The t Test for Two Related Samples
 
Lesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing dataLesson 27 using statistical techniques in analyzing data
Lesson 27 using statistical techniques in analyzing data
 
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate TestStudent's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
 
Anova (1)
Anova (1)Anova (1)
Anova (1)
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
Wilcoxon Rank-Sum Test
Wilcoxon Rank-Sum TestWilcoxon Rank-Sum Test
Wilcoxon Rank-Sum Test
 

Destacado

Sample size
Sample sizeSample size
Sample size
zubis
 
Power Analysis and Sample Size Determination
Power Analysis and Sample Size DeterminationPower Analysis and Sample Size Determination
Power Analysis and Sample Size Determination
Ajay Dhamija
 

Destacado (20)

CORE: May the “Power” (Statistical) - Be with You!
CORE: May the “Power” (Statistical) - Be with You!CORE: May the “Power” (Statistical) - Be with You!
CORE: May the “Power” (Statistical) - Be with You!
 
Estimating sample size through simulations
Estimating sample size through simulationsEstimating sample size through simulations
Estimating sample size through simulations
 
Sample size
Sample sizeSample size
Sample size
 
Determining the Sample Size
Determining the Sample SizeDetermining the Sample Size
Determining the Sample Size
 
Power Analysis and Sample Size Determination
Power Analysis and Sample Size DeterminationPower Analysis and Sample Size Determination
Power Analysis and Sample Size Determination
 
Two sample t-test
Two sample t-testTwo sample t-test
Two sample t-test
 
HFS3283 paired t tes-t and anova
HFS3283 paired t tes-t and anovaHFS3283 paired t tes-t and anova
HFS3283 paired t tes-t and anova
 
Sampling Design in Applied Marketing Research
Sampling Design in Applied Marketing ResearchSampling Design in Applied Marketing Research
Sampling Design in Applied Marketing Research
 
What is a paired samples t test
What is a paired samples t testWhat is a paired samples t test
What is a paired samples t test
 
Chapter8
Chapter8Chapter8
Chapter8
 
Sampling and Inference_Political_Science
Sampling and Inference_Political_ScienceSampling and Inference_Political_Science
Sampling and Inference_Political_Science
 
1.Why do we need to calculate samplesize?
1.Why do we need to calculate samplesize?1.Why do we need to calculate samplesize?
1.Why do we need to calculate samplesize?
 
3. Calculate samplesize for prevalence studies
3. Calculate samplesize for prevalence studies3. Calculate samplesize for prevalence studies
3. Calculate samplesize for prevalence studies
 
Sample size calculation
Sample size calculationSample size calculation
Sample size calculation
 
2. Tools to calculate samplesize
2. Tools to calculate samplesize2. Tools to calculate samplesize
2. Tools to calculate samplesize
 
Sample size calculation
Sample  size calculationSample  size calculation
Sample size calculation
 
Sample size calculation - a brief overview
Sample size calculation - a brief overviewSample size calculation - a brief overview
Sample size calculation - a brief overview
 
What is an independent samples-t test?
What is an independent samples-t test?What is an independent samples-t test?
What is an independent samples-t test?
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
Basic Statistical Concepts and Methods
Basic Statistical Concepts and MethodsBasic Statistical Concepts and Methods
Basic Statistical Concepts and Methods
 

Similar a Two Sample Tests

Lesson06_new
Lesson06_newLesson06_new
Lesson06_new
shengvn
 
Descriptive Statistics Formula Sheet Sample Populatio.docx
Descriptive Statistics Formula Sheet    Sample Populatio.docxDescriptive Statistics Formula Sheet    Sample Populatio.docx
Descriptive Statistics Formula Sheet Sample Populatio.docx
simonithomas47935
 
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
novabroom
 
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
hyacinthshackley2629
 

Similar a Two Sample Tests (20)

The T-test
The T-testThe T-test
The T-test
 
Unit-5.-t-test.ppt
Unit-5.-t-test.pptUnit-5.-t-test.ppt
Unit-5.-t-test.ppt
 
The t test
The t testThe t test
The t test
 
t Test- Thiyagu
t Test- Thiyagut Test- Thiyagu
t Test- Thiyagu
 
Lesson06_new
Lesson06_newLesson06_new
Lesson06_new
 
Independent samples t-test
Independent samples t-testIndependent samples t-test
Independent samples t-test
 
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
 
Medical statistics2
Medical statistics2Medical statistics2
Medical statistics2
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 
Ttest
TtestTtest
Ttest
 
Descriptive Statistics Formula Sheet Sample Populatio.docx
Descriptive Statistics Formula Sheet    Sample Populatio.docxDescriptive Statistics Formula Sheet    Sample Populatio.docx
Descriptive Statistics Formula Sheet Sample Populatio.docx
 
Testing hypothesis (methods of testing the statement of organizations)
Testing hypothesis (methods of testing the statement of organizations)Testing hypothesis (methods of testing the statement of organizations)
Testing hypothesis (methods of testing the statement of organizations)
 
tps5e_Ch10_2.ppt
tps5e_Ch10_2.ppttps5e_Ch10_2.ppt
tps5e_Ch10_2.ppt
 
inferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdfinferentialstatistics-210411214248.pdf
inferentialstatistics-210411214248.pdf
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
 
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
11 T(EA) FOR TWO TESTS BETWEEN THE MEANS OF DIFFERENT GROUPS11 .docx
 
Data analysis
Data analysisData analysis
Data analysis
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
 

Two Sample Tests

  • 1.
  • 2.
  • 3. Comparing Two Populations Until this point, all the inferential statistics we have considered involve using one sample as the basis for drawing conclusion about one population. Although these single sample techniques are used occasionally in real research, most research studies aim to compare of two (or more) sets of data in order to make inferences about the differences between two (or more) populations. What do we do when our research question concerns a mean difference between two sets of data?
  • 4.
  • 5.
  • 6. Paired T-Test for Within-Subjects Designs Our hypotheses: H o :  D = 0 H A :  D  0 To test the null hypothesis, we’ll again compute a t statistic and look it up in the t table. Paired Samples t t = D -  D s D = s D
  • 7.
  • 8. Confidence Intervals for Paired Samples Paired Samples t D  t (s D ) General formula X  t (SE)
  • 9. Effect Size for Dependent Samples Paired Samples d One Sample d
  • 10. Exercise In Everitt’s study (1994), 17 girls being treated for anorexia were weighed before and after treatment. Difference scores were calculated for each participant. Test the null hypothesis that there was no change in weight. Compute a 95% confidence interval for the mean difference. Calculate the effect size Change in Weight n = 17 = 7.26 s D = 7.16
  • 11. Exercise T-test Change in Weight n = 17 = 7.26 s D = 7.16
  • 12. Exercise Confidence Interval Change in Weight n = 17 = 7.26 s D = 7.16
  • 13. Exercise Effect Size Change in Weight n = 17 = 7.26 s D = 7.16
  • 14.
  • 15. T-Test for Independent Samples The goal of a between-subjects research study is to evaluate the mean difference between two populations (or between two treatment conditions). H o :  1 =  2 H A :  1   2 We can’t compute difference scores, so …
  • 16. T-Test for Independent Samples We can re-write these hypotheses as follows: H o :  1 -  2 = 0 H A :  1 -  2  0 To test the null hypothesis, we’ll again compute a t statistic and look it up in the t table.
  • 17. T-Test for Independent Samples General t formula t = sample statistic - hypothesized population parameter estimated standard error Independent samples t One Sample t
  • 18. T-Test for Independent Samples Standard Error for a Difference in Means The single-sample standard error ( s x ) measures how much error expected between X and  . The independent-samples standard error (s x1-x2 ) measures how much error is expected when you are using a sample mean difference (X 1 – X 2 ) to represent a population mean difference.
  • 19. T-Test for Independent Samples Standard Error for a Difference in Means Each of the two sample means represents its own population mean, but in each case there is some error. The amount of error associated with each sample mean can be measured by computing the standard errors. To calculate the total amount of error involved in using two sample means to approximate two population means, we will find the error from each sample separately and then add the two errors together.
  • 20. T-Test for Independent Samples Standard Error for a Difference in Means But… This formula only works when n 1 = n 2 . When the two samples are different sizes, this formula is biased . This comes from the fact that the formula above treats the two sample variances equally. But we know that the statistics obtained from large samples are better estimates, so we need to give larger sample more weight in our estimated standard error.
  • 21. T-Test for Independent Samples Standard Error for a Difference in Means We are going to change the formula slightly so that we use the pooled sample variance instead of the individual sample variances. This pooled variance is going to be a weighted estimate of the variance derived from the two samples.
  • 22.
  • 23.
  • 24. Illustration A developmental psychologist would like to examine the difference in verbal skills for 8-year-old boys versus 8-year-old girls. A sample of 10 boys and 10 girls is obtained, and each child is given a standardized verbal abilities test. The data for this experiment are as follows: Girls Boys n 1 = 10 = 37 SS 1 = 150 n 2 = 10 = 31 SS 2 = 210
  • 25. STEP 1: get mean difference Illustration Girls Boys n 1 = 10 = 37 SS 1 = 150 n 2 = 10 = 31 SS 2 = 210
  • 26. STEP 2: Compute Pooled Variance Illustration Girls Boys n 1 = 10 = 37 SS 1 = 150 n 2 = 10 = 31 SS 2 = 210
  • 27. STEP 3: Compute Standard Error Illustration Girls Boys n 1 = 10 = 37 SS 1 = 150 n 2 = 10 = 31 SS 2 = 210
  • 28. STEP 4: Compute T statistic and df d.f. = (n 1 - 1) + (n 2 - 1) = (10-1) + (10-1) = 18 Illustration Girls Boys n 1 = 10 = 37 SS 1 = 150 n 2 = 10 = 31 SS 2 = 210
  • 29. STEP 5: Use table E.6 T = 3 with 18 degrees of freedom For alpha = .01, critical value of t is 2.878 Our T is more extreme, so we reject the null There is a significant difference between boys and girls Illustration Girls Boys n 1 = 10 = 37 SS 1 = 150 n 2 = 10 = 31 SS 2 = 210
  • 30. T-Test for Independent Samples t-statistic Independent samples t-statistic Single sample t-statistic Estimated Standard Error Sample Variance Hypothesized Population Parameter Sample Data
  • 31. Confidence Intervals for Independent Samples One Sample t X  t (s x ) General formula X  t (SE) Independent Sample t (X 1 -X 2 )  t (s x1-x2 )
  • 32. Effect Size for Independent Samples One Sample d Independent Samples d
  • 33. Exercise Subjects are asked to memorize 40 noun pairs. Ten subjects are given a heuristic to help them memorize the list, the remaining ten subjects serve as the control and are given no help. The ten experimental subjects have a X-bar = 21 and a SS = 100. The ten control subjects have a X-bar = 19 and a SS = 120. Test the hypothesis that the experimental group differs from the control group. Give a 95% confidence interval for the difference between groups Give the effect size
  • 34. Exercise T-test Experimental Control n 1 = 10 = 21 SS 1 = 100 n 2 = 10 = 19 SS 2 = 120
  • 35. Exercise d.f. = (n 1 - 1) + (n 2 - 1) = (10-1) + (10-1) = 18 T-test Experimental Control n 1 = 10 = 21 SS 1 = 100 n 2 = 10 = 19 SS 2 = 120
  • 36. Exercise Confidence Interval Experimental Control n 1 = 10 = 21 SS 1 = 100 n 2 = 10 = 19 SS 2 = 120
  • 37. Exercise Effect Size Experimental Control n 1 = 10 = 21 SS 1 = 100 n 2 = 10 = 19 SS 2 = 120
  • 38. Summary Hypothesis Tests Confidence Intervals Effect Sizes 1 Sample 2 Paired Samples 2 Independent Samples
  • 40. Independent samples t-statistic t-statistic Paired samples t-statistic One sample t-statistic Estimated Standard Error Sample Variance Hypothesized Population Parameter Sample Data
  • 41. Confidence Intervals Paired Samples t D  t (s D ) One Sample t X  t (SE) Independent Sample t (X 1 -X 2 )  t (s x1-x2 )
  • 42. Effect Sizes Paired Samples d One Sample d Independent Samples d