• Sonuç bulunamadı

COMPARING TWO MEANS: THE STUDENT T TEST

N/A
N/A
Protected

Academic year: 2021

Share "COMPARING TWO MEANS: THE STUDENT T TEST"

Copied!
17
0
0

Yükleniyor.... (view fulltext now)

Tam metin

(1)

COMPARING TWO MEANS: THE STUDENT T TEST

WEEK 9

(2)

• Simplest scenario: Comparing two means.. Data Collection Different groups of people take part in each experimental condition Between group, independent design Same participants take part in each experimental condition Within-subjects design, repeated measures

Student t test (Two-sample t test)

(Independent sample t test) Paired sample t test Mann Whitney U test Wilcoxon testi

Parametric test assumptions met: Parametric test assumptions violated:

(3)

ASSUMPTIONS OF TWO SAMPLE T TEST

The two samples must be independent

(Ideally) Observations should be chosen by random selection

The variable of interest should be approximately Normally distributed in each population from which the samples are taken. • The variability of the observations in each group, as measured by

the two variances, should be approximately equal

Parametric test assumptions

Dr. Doğukan ÖZEN

(4)
(5)

Equal

variances

variances

Unequal

\ = M,U − M,& -m& !U + -m U !& \ = M,U − M,& -U& ! + -& U ! -n& = !U − 1 -U & + (!

& − 1)-&&

!U + !& − 2

Test statistic formula =>

Calculating test statistic for two sample t test:

(6)

EXAMPLE:

(7)

SOLUTION

• Step 1: Establish your hypothesis • H0= Body weight gains for two groups are equalH1= Body weight gain for two groups are unequal • Step 2= Calculate the test statistics \ = M,U − M,& -m& !U + -m U !&

-n& = !U − 1 -U& + (!& − 1)-&& !U + !& − 2 t= 2,869 • Step 3: Obtain the P value referring the calculated test statistic • Refer to 2,869 with 198 degrees of freedom; P value is between= 0.01- 0.001 • Step 4: Make a decision whether or not to reject the null hypothesis

Considering the P value is <0.05; the null hypothesis, that there is no difference in the mean body weight gains in the two groups, is unlikely to be true. We therefore reject the null hypothesis in favour of the alternative hypothesis that there is a difference in body weight gains.

(8)

EXAMPLE

9.04.2018 Dr. Doğukan ÖZEN 119

Ø Suppose that a researcher wants to evaluate the effect of

type of birth on weight gain of sheeps at the end of shearing season?

H0: No difference in weight of sheeps according to type of birth

HA: There is a difference in weight of sheeps according to type of birth

(9)

Step 1: Testing the assumptions…

§ Analyze > Descriptive Statistics > Explore

9.04.2018 Dr. Doğukan ÖZEN 120

Weight

(10)

Dr. Doğukan ÖZEN 121

Testing the assumptions: a)Normality & b) Homogeneity of variances

Tests of Normality

Group StatisticKolmogorov-Smirnovdf Sig. Statistic Shapiro-Wilkdf Sig. Weight singletwin 0,1210,191 1212 ,200*,200* 0,9650,949 1212 0,8520,621

Test of Homogeneity of Variance Levene

Statistic df1 df2 Sig. Weight

Based on Mean 0,782 1 22 0,386

Based on Median 0,299 1 22 0,59

Based on Median and with

adjusted df 0,299 1 20,194 0,59

Based on trimmed mean 0,792 1 22 0,383

a)Normality assumption:

H0= The data follow a normal distribution

H1= The data do not follow a normal distribution

P>0.05

H0 is accepted

b) Homogeneity of variances assumption:

H0= The population variances are equal

H1= The population variances are not equal

P>0.05

(11)

Data analysis: Student t test

Dr. Doğukan ÖZEN 122

Analyze > Compare Means > Independent Samples t test

Weight

(12)

Results

9.04.2018 Dr. Doğukan ÖZEN 123

Group n Mean DeviationStd. Std. Error Mean Weight Single birthTwin birth 1212 4047 11,0299,293 2,6833,184

Levene's Test for Equality of Variances t-test for Equality of Means

F Sig. t df (2-tailed)Sig. DifferenceMean DifferenceStd. Error 95% ConfidenceInterval of the Difference

Lower Upper Weight

Equal variances

assumed 0,782 0,386 -1,681 22 0,107 -7 4,163 -15,634 1,634 Equal variances not

(13)

Reporting the results of the analysis

Variable Group n Mean ± SEM P

Weight SingleTwin 1212 40 ± 2,68347 ± 3,184 0,107

Dr. Doğukan ÖZEN 124

RESULTS

Although mean weight was higher in single births, this difference was not statistically significant (P>0.05). è H0 is accepted.

HEADLINE

H0: No difference in weight of sheeps according to type of birth

(14)

What if the parametric test assumptions are violated?

Data Collection

Different groups of people take part in each

experimental condition

Between group, independent design

Same participants take part in each

experimental condition Within-subjects design,

repeated measures

Student t test (Two-sample t test)

(Independent sample t test) Paired sample t test

Mann Whitney U test Wilcoxon testi

Parametric test assumptions met:

Parametric test assumptions violated:

Dr. Doğukan ÖZEN

(15)

Let’s use the same dataset and assume that the assumptions are violated

§ Analyze > Non-Parametric Tests > Legacy Dialogs > 2 Independent Samples

9.04.2018 Dr. Doğukan ÖZEN 126

Mann Whitney U testi

Weight

(16)

RESULT

Dr. Doğukan ÖZEN 127

INTERPRETATION?

Why do you think the p value obtained from student t test is different from the one we

(17)

How should we report the results of a non parametric test?

9.04.2018 Dr. Doğukan ÖZEN 128

Single birth Twin Birth

Referanslar

Benzer Belgeler

Bu çalışmada kriz dönemlerinde beş yıldızlı otel işletmelerinde uygulanan tasarruf stratejilerinin ve etkilerinin Bulanık DEMATEL (The Decision Making Trial and

Since each of the factors is geared toward action, this may be considered a strong test of the democratic peace hypothesis: Does the other’s regime type infl uence decisions

Kendi gibi çağdaş bir altyapıya sahip olan bu genç çocuğun da Cengiz gibi öğretmeninin kaçış sürecini uzatmaktan gocunmadığı kurduğu şu cümleden de

Görevi kötüye kullanma ve görevi ihmal suçları ile memurlar ve diğer kamu görevlilerinin yargılanmaları alanında her iki alanı kapsayan eserlerin fazla olmayışı;

Sequential Monte Carlo methods for multitarget filtering with random finite sets. IEEE Transactions on Aerospace and Electronic Systems,

Data Collection Different groups of people take part in each experimental condition Between group, independent design Same participants take part in each experimental

Medicine x 28 48 76 Medicine y 24 38 62 TOTAL 52 86 138 An example of 2*2 Contingency table Cell • 2 x 2 Contingency table • Table has 4 cells.. ASSUMPTIONS OF CHI SQUARE TEST

Yapısal değişimleri dikkate alan ve kalıntıların normal dağılmadığı durumlarda güçlü sonuçlar veren RALS-FSURADF panel birim kök testi sonucuna göre Belçika,