Docsity

Prueba de independencia entre dos variables categóricas: χ² de Pearson, Apuntes de Estadística

Vista previa parcial del texto

¡Descarga Prueba de independencia entre dos variables categóricas: χ² de Pearson y más Apuntes en PDF de Estadística solo en Docsity!

STATISTICS

Degree in Psychology

Academic year 2011 – 2012

UNIT 8

INDEPENDENCE TEST BETWEEN TWO

CATEGORICAL VARIABLES.

TEST

2

of Pearson Distribution

For

υυυυ

approaches to a

N[

υυυυ

υ υ

υ υ

2

]

Z

2

2

=1)

(

χ

ν

(

)

=

=

= =

k

i i

l

j j

ij

ij

ij

fe
fe
fo

1

1

2

2

χ

Goal:

Determine if there is relationship

between two qualitative variables

2

of Pearson as a independence test

2

of Pearson: Statistical Assumptions

Contingency table greater than 2 x 2:

  • If fe

ij

≥

5:

χ

2

of Pearson

  • If fe

ij

< 5: recategorice

Contingency table 2 x 2:

  • If

fe

ij

≥

5:

χ

2

of Pearson

  • If 3

≤

fe

ij

< 5:

χ

2

Yates continuity correction:

  • If fe

ij

< 3: Fisher’s exact test

=

=

= =

   

   

−

−

=

k

i

i

l

j j

ij

ij

ij

o

fe

fe

fo

1

1

2

2

5

.

0

χ

2

of Pearson: Example

Treatment

1st relapse

Treatment

1st relapse

1

1

1

1

1

1

1

2

1

1

1

2

1

1

2

1

1

1

2

1

1

1

1

2

1

2

2

2

1

2

2

2

1

2

1

1

1

2

2

1

1

2

2

2

1

2

2

1

2

1

2

2

2

1

2

2

2

1

2

1

2

2

2

2

2

1

Determine

if

there

is

a

relationship between thekind of treatment used ina ex-addicts group and theoccurrence

of

a

first

relapse

before

one

month. Treatment:

1 - cognitive-behavioral2- pharmacological

1st relapse:

1 - yes2 - no

2

of Pearson: table

g.ll = (2-1) · (2-1) = 1

α

= 0,

841

.

3

2

)

1

,

05

.

0

(

=

χ

H

0

2

of Pearson: SPSS output

2

of Pearson: SPSS output

Determine ifthere

is

relationshipbetweensufferagoraphobiaand

the

frequency ofleavinghome.

2

of Pearson: SPSS output

2

of Pearson: SPSS output

2

of Pearson: R output