k sample problems and non-parametric tests. two-sample t-test (unpaired)
Post on 19-Dec-2015
246 views
TRANSCRIPT
![Page 1: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/1.jpg)
K sample problemsand non-parametric tests
K sample problemsand non-parametric tests
![Page 2: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/2.jpg)
Two-Sample T-test (unpaired)
![Page 3: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/3.jpg)
K-Sample
![Page 4: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/4.jpg)
Equal variances?
If NOT!!!
![Page 5: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/5.jpg)
K-Sample Output Descriptives
Embarasing Measurement
10 4,0100 1,69801 ,53696 2,7953 5,2247 1,10 6,50
10 5,4900 1,10599 ,34975 4,6988 6,2812 3,70 7,30
20 4,7500 1,58795 ,35508 4,0068 5,4932 1,10 7,30
Before
After
Total
N Mean Std. Deviation Std. Error Lower Bound Upper Bound
95% Confidence Interval forMean
Minimum Maximum
Test of Homogeneity of Variances
Embarasing Measurement
1,597 1 18 ,222
LeveneStatistic df1 df2 Sig.
ANOVA
Embarasing Measurement
10,952 1 10,952 5,334 ,033
36,958 18 2,053
47,910 19
Between Groups
Within Groups
Total
Sum ofSquares df Mean Square F Sig.
P-value
![Page 6: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/6.jpg)
A Small Trick (Post Hoc)
Warnings
Post hoc tests are not performed for Embarasing Measurement because there arefewer than three groups.
![Page 7: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/7.jpg)
OK OK, I’ll use another data set
1 2 3
Specno
9
10
11
12
13
14
15
95%
CI A
ng
le
Multiple Comparisons
Dependent Variable: Angle
Bonferroni
-,195 ,285 1,000 -,89 ,50
4,004* ,307 ,000 3,25 4,76
,195 ,285 1,000 -,50 ,89
4,199* ,281 ,000 3,51 4,89
-4,004* ,307 ,000 -4,76 -3,25
-4,199* ,281 ,000 -4,89 -3,51
(J) Specno2
3
1
3
1
2
(I) Specno1
2
3
MeanDifference
(I-J) Std. Error Sig. Lower Bound Upper Bound
95% Confidence Interval
The mean difference is significant at the .05 level.*.
![Page 8: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/8.jpg)
Normal data?
• How do I check the assumption of normality?
• You already know Q-Q plots
• Kolmogorov-Smirnov (K-S) test
![Page 9: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/9.jpg)
Normal distributed?
![Page 10: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/10.jpg)
OutputOne-Sample Kolmogorov-Smirnov Test
64
39,83
33,751
,173
,173
-,165
1,382
,044
N
Mean
Std. Deviation
Normal Parameters a,b
Absolute
Positive
Negative
Most ExtremeDifferences
Kolmogorov-Smirnov Z
Asymp. Sig. (2-tailed)
TimeintervalbetweenKiama
Blowholeeruptions
Test distribution is Normal.a.
Calculated from data.b.
Data are
not normal
But QQ-plots are better!!
But QQ-plots are better!!
![Page 11: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/11.jpg)
Non-Normal Data
1,00 1,50 2,00 2,50 3,00 3,50 4,00 4,50 5,00
0 5 10 15 20
Observations
Ranks
![Page 12: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/12.jpg)
Statistics on Ranks
Rank
1 4
2 6
3 7
5 10
8 12
9 13
11 16
14 17
15 19
18 20
Mean Ranks should be close
if the two distributions are located similarly
Mean Ranks should be close
if the two distributions are located similarly
8.6 12.4
![Page 13: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/13.jpg)
How to do it in SPSS
![Page 14: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/14.jpg)
![Page 15: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/15.jpg)
Output
Descriptive Statistics
210 3,2366 1,11176 1,10 4,50 2,0000 3,6000 4,2000
210 1,59 ,493 1 2 1,00 2,00 2,00
Observation
City
N Mean Std. Deviation Minimum Maximum 25th 50th (Median) 75th
Percentiles
Ranks
86 93,31 8025,00
124 113,95 14130,00
210
CityAalborg
Århus
Total
ObservationN Mean Rank Sum of Ranks
Test Statisticsa
4284,000
8025,000
-2,426
,015
Mann-Whitney U
Wilcoxon W
Z
Asymp. Sig. (2-tailed)
Observation
Grouping Variable: Citya.
Mann-Whitney Test
![Page 16: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/16.jpg)
K-samples test
![Page 17: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/17.jpg)
Output
Ranks
86 85,87
124 119,11
115 268,00
325
CityAalborg
Århus
Randers
Total
NumberN Mean Rank
Kruskal-Wallis Test
Test Statisticsa,b
229,298
2
,000
Chi-Square
df
Asymp. Sig.
Number
Kruskal Wallis Testa.
Grouping Variable: Cityb.
![Page 18: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/18.jpg)
Overview (normal samples)
One sampleOne sample
Two samples (paired)Two samples (paired)
K samplesK samples
Two samples (unpaired)Two samples (unpaired)
![Page 19: K sample problems and non-parametric tests. Two-Sample T-test (unpaired)](https://reader036.vdocuments.mx/reader036/viewer/2022062300/56649d395503460f94a139bb/html5/thumbnails/19.jpg)
Overview (non normal samples)
One sampleOne sample
Two samples (paired)Two samples (paired)
K samplesK samples
Two samples (unpaired)Two samples (unpaired)