Docsity

Análisis Estatístico: Pruebas de Homoscedasticidad y ANOVA - Prof. Chacón Moscoso, Diapositivas de Psicología

Toggle sidebar
bg1
23/10/2013
1
2.RELATIONSHIPBETWEENA
QUALITATIVE AND A
QUALITATIVE
AND
A
QUANTITATIVEVARIABLE
DesignandDataAnalysisinPsychologyII
1
SusanaSanduveteChaves
SalvadorChacónMoscoso
1.INTRODUCTION
•Youmayexaminegenderdifferencesin
lil( hit bl k)
averagesa
l
aryorrac
i
a
l
(
w
hit
eversus
bl
ac
k)
differencesinaverageannualincome.
•Thevariable(salary)tobetestedshouldbe
intervalorratio(quantitative),whereasthe
g
enderorracevariableshouldbebinar
y
g y
(qualitative).
2
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35

Vista previa parcial del texto

¡Descarga Análisis Estatístico: Pruebas de Homoscedasticidad y ANOVA - Prof. Chacón Moscoso y más Diapositivas en PDF de Psicología solo en Docsity!

2. RELATIONSHIP BETWEEN A

QUALITATIVE AND AQUALITATIVE AND A

QUANTITATIVE VARIABLE

Design and Data Analysis in Psychology II

1

Susana Sanduvete Chaves SalvadorChacón Moscoso

1. INTRODUCTION

  • You may examine gender differences in average salary l or raciali l ( ( whitehit versus blbl ack)k) differences in average annual income.
  • The variable (salary) to be tested should be interval or ratio (quantitative), whereas the ggender or race variable should be binaryy (qualitative).

2

1. INTRODUCTION

  • These analyses are used to compare group means (i d(independent d t or dd ependentd t groups).)
  • The term independent is used because groups are conformed randomly (independent samples) Two separate sets of independentsamples). Two separate sets of independent and identically distributed samples are obtained.

3

1. INTRODUCTION

  • The term dependent is used because groups are paired i d withith respectt t to some measure (dependent samples). Dependent samples (or "paired") comparison consist of a sample of matched pairs of similar units, or one group of units that has been tested twice.

4

2. STEP 1. TESTING ASSUMPTIONS

  • Quantitative variable : Interval or ratio variable.
  • Normal distribution : the populations from which the samples are selected must be normal (Tests for Normality: Kolmogorov‐ SS mirnovi ‘D’‘D’ + HiHi stogram off predicteddi d ‘Z’ ‘Z’ scores).

7

2. STEP 1. TESTING ASSUMPTIONS

The Central Limit Theorem says,y , however,, that the distributions of y 1 and y 2 are approximately normal when N is large.

In practice, when n 1 + n 2 ≥ 30, you do not need to worry too much about the normality assumption.

8

2. STEP 1. TESTING ASSUMPTIONS

  • Independence : the observations within each sample must be independent (Durbin‐Watson ‘D’ + scatter plot X‐e).
  • Homoscedasticity (homogeneity of variance): the populations from which the samples are selected must have equal variances. In this kind of studies it is the most importantkind of studies, it is the most important assumption to take into account (Levene’s test, F Max’ + scatter plot y’‐absolute errors).

9

2. STEP 1. TESTING ASSUMPTIONS

  • To test homoscedasticity: ‐ LL evene’s’ t t estt (SPSS) (SPSS). ‐ F‐Max test: - F ≤ F(α, k, n – 1) Null hypothesis is accepted. The homogeneity of variance assumption has been satisfied.

( )

Fmax ( arg )

S

S 2

2 smallest

l est

  • F > F(α, k, n – 1) Null hypothesis is rejected. The homogeneity of variance assumption has been violated. * k = number of groups (number of variances) n = number of participants in each group (same size is assumed) 10

2. STEP 1. TESTING ASSUMPTIONS:

EXAMPLE

S^2 ( l^ t )^3291. 778

  1. 85

  2. 29 ( )

Fmax ( arg )

S

 S 2  

smallest

l est

F(α, k, n – 1) = F(0.05, 2, 10 – 1) = 4. F ≤ F(α, k, n – 1) 1.778 ≤ 4.43  Null hypothesis is accepted. The homogeneity of variance assumption

13

has been satisfied.

3. Step 2. Statistical Tests of

Significance

3 1 Step 2 Non3.1. Step 2. Non‐‐parametricparametric

Tests of Significance:

assumptions are rejected

3.2. Step2. Parametric tests of

significance: assumptions are

accepted 14

3.1. STEP 2:

NON‐PARAMETRIC TESTS

3.1.1. Wilcoxon T test.

‐ When the population cannot be assumed to be normally distributed.

‐ Quantitative dependent variable.

‐ Two paired groups.

‐ Formula:

 the smallest of these two rank sums 15

T

T R

T R i

i

3.1.1. Wilcoxon T test

  • Conclusions:
    • T ≥ T (^) (α, N) → The null hypothesis is accepted. The variables are not related. There are not differences between groups.
    • T < T (^) (α, N) → The null hypothesis is rejected. The variables are related. There are differences b tbetween groups.
  • N = number of pairs removing those which difference is 0.

16

3.1.1. Wilcoxon T test: example

9

36  

T R

T i 9

9 

T

T Ri

T (^) (α, N) = T (^) (0.05, 9) = 5 T > T (^) (α, N) → 9 > 5 → The null hypothesis is accepted. The variables are not related. There are not statistical differences betweengroups in social skills.

19

3.1.2. Mann‐Whitney U

‐ Quantitative or ordinal dependent variable.

‐ Two independent groups.

‐ Calculation:

   

   

1 2 2 2 2

1 2 1 1 1 ( 1 )

2

( 1 )

U nn n^ n R

U nn n n R

U chosen = the smallest one n 1 = smallest sample; n 2 = largest sample 20

3.1.2. Mann‐Whitney U

  • Conclusions:
    • U ≥ U (^) (α, n2, n1) → The null hypothesis is accepted. The variables are not related. There are not statistical differences between groups.
    • U < U (^) ((αα, n2, n1), n2, n1) → The null hypothesis is rejected. The variables are related. There are statistical differences between groups.

21

3.1.2. Mann‐Whitney U: example

We want to study if two different reading methods th d ii mplyl diffdifferent t resultslt ii n readingdi qualifications (α=0.05).

Type of method Qualifications Traditional (a 1 ) 80 85 25 70 90 New (a ) 95 100 93 110 45

22

New (a 2 ) 95 100 93 110 45

3.1.3. Kruskal Wallis H

‐ Quantitative or ordinal dependent variable.

‐ k independent groups.

‐ Formula:

3 ( 1 ) ( 1 )

12 1

2   

N n

R N N

H

k j (^) j

j

25

j (^) j

3.1.3. Kruskal Wallis H

  • Conclusions:
    • H ≤ H(α, k, n1, n2, n3) → The null hypothesis is accepted. The variables are not related. There are not statistical differences between groups.
    • H > H((αα, k, n1, n2, n3), k, n1, n2, n3) → The null hypothesis is rejected. The variables are related. There are statistical differences between groups.

26

3.1.3. Kruskal Wallis H: example

Do exist statistical differences in levels of authoritarianism th it i i b tbetween tt eachersh ff rom ththree different types of schools? (α=0.05)

State school (a 1 ) Private school (a 2 ) State‐subsidized school (a 3 ) 96 82 115 128 124 149

27

8 4 49 83 132 166 61 135 147 101 109

3.1.3. Kruskal Wallis H: example

State school (a 1 ) Private school (a 2 ) State‐subsidized school (a 3 ) 96 (4) 82 (2) 115 (7)

*Values into brackets = ranks (orders)

( ) ( ) ( ) 128 (9) 124 (8) 149 (13) 83 (3) 132 (10) 166 (14) 61 (1) 135 (11) 147 (12) 101 (5) 109 (6) ΣR 1 = 22 ΣR 2 = 37 ΣR 3 = 46 *Values into brackets = ranks (orders)

28

3.2.2. T‐tests

‐ Two groups.

‐ Quantitative dependent variable (Interval or ratio variable).) ‐ Different situations:

  • Independent two‐sample t‐test.
    • Equal sample sizes, equal variances in the distribution.
  • Equal sample sizes, unequal variances in the distributiondistribution.
    • Unequal sample sizes, equal variances in the distribution.
  • Unequal sample sizes, unequal variances in the distribution.
  • Dependent t‐test for paired samples. 31

3.2.2. T‐tests: significance in all cases

  •  Null hypothesis is rejected. The model is valid The slope is statistically different

tt ( theoretical ) model is valid. The slope is statistically different from 0. There is, therefore, relationship between variables.

  •  Null hypothesis is accepted. The model is not valid The slope is statistically equal

tt ( theoretical )

32

model is not valid. The slope is statistically equal to 0. There is not, therefore, relationship between variables.

32

3.2.2. T‐tests:

two independent samples

Equal sample sizes, equal variances

Where the grand standard deviation or pooled standard deviation is

S n

t X X X X

2 1 2

^1 ^2

SX^21 (^) SX^22 S

The degrees of freedom for this test is N − 2.

2 S (^) X 1 X 2 ^12

33

3.2.2. T‐tests:

two independent samples

Equal sample sizes, equal variances: example

A researcher wants to study the effect of depriving rats of water, and the time they spend in covering a labyrinth. 60 rats were assigned randomly to 12-hour deprivation group (sample A) and 24-hour deprivation group (sample B). The 30 rats in group A spent a mean of 5.9 minutes in covering the labyrinth, whereasthe 30 rats in group B spent a mean of 6.4 minutes. The standard deviation were 0.29 and 0.3 respectively. Assuming that the two distributions have the same variance, did statistical differences between groups exist? (α=0.05)

34

3.2.2. T‐tests:

two independent samples

Equal sample sizes, unequal variances: example

If in the previous example about rats, we assume that the variances of the two distributions were unequal, would statistical differences between variances exist? (α=0.05)

37

3.2.2. T‐tests:

two independent samples

Equal sample sizes, unequal variances: example

6579 2

.. ( / )/( / 1 ) ( // )/( 1 ) ( 0. 29 / 30 )^0.^29 /( 30 /^301 )^0 ( 0.^3. 3 /^30 / 30 ) /( 30 1 ) 57. 933

  1. 579 2 2 2 2

2 2 2 12 12 1 22 22 2

12 1 22 22

    

        

t t t t

S n n S n n df S n S n

t

tt ( , d. f .) tt ( 0. 05 , 58 ) 6. 579  2

Null hypothesis is rejected. There were statistical differences between groups 38

3.2.2. T‐tests

(two independent samples)

Unequal sample sizes, equal variances

where

1 2

1 2 1 1 S (^1 2) n n

t X X X X

 

Sn^1 ^1 ^ SX^21 ^ n^2 ^1  SX^22

The degrees of freedom for this test is n 1 + n 2 − 2

1 2 2 1 2 1 2 S (^) XX  (^) nn

39

3.2.2. T‐tests

(two independent samples)

Unequal sample sizes, equal variances: example A researcher wanted to study the level of relax and the flexibility. 9 gymnasts were assigned randomly to two groups. The first group(experimental) participated in a 14-week training program with relax and flexibility exercises; the second group (control) participated in the same program, but without relax exercises. The measures in flexibility obtained were the following: E:E: 130130 127127 142142 145145 135135 C: 110 125 120 115 Variances are 58.7 in E and 41.67 in C. Populations present equalvariances. Are there statistical differences between groups? (α=0.05)

40