Docsity

Prueba de independencia entre dos variables categóricas: Análisis de Pearson's χ² - Prof. , Apuntes de Estadística

Vista previa parcial del texto

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

STATISTICS

Degree in Psychology

Academic year 2013 – 2014

UNIT 8

INDEPENDENCE TEST BETWEEN TWO

CATEGORICAL VARIABLES.

TEST

Chapter 7 of the book: Peró, M., Leiva, D., Guàrdia, J., & Solanas, A. (coord.) ( 2012 ). Estadística

aplicada a las ciencias sociales mediante R y R-Commander. Madrid: Garceta Grupo Editorial.

Chapter 7 of the book: Guàrdia, J., Freixa, M., Peró, M., & Turbany, J. (2008). Análisis de datos en

psicología. 2ª edición. Madrid: DELTA Publicaciones.

Pearson’sDistribution

Gamma distributions

x e

2 (n/2)

f(X) = 2

x

- 1 - 2

n

2

n

X e dX
2 (n/2)
F(x)= P( x)= 2

X

- 1 - 2

n x

0

2

n

2

For  > 30

approaches to a

N[  ; (2  )

2

]

= Z
=Z +Z + +Z

2 i

i=

2 2 2

2 1

2 i

 (^)  ......... 

= (^) Z

(^22)

( =1)

 

Goal:

Determine if there is relationship

between two qualitative variables

Pearson’sas a independence test

Pearson’s 

: Statistical Assumptions

Contingency table greater than 2 x 2:

  • If fe ij
 5: Pearson’s 

2

  • If fe ij
< 5: recategorice

Contingency table 2 x 2:

• If fe

ij

 5: Pearson’s 

2

  • If 3  fe ij
< 5: Yates’ continuity correction for 

2

  • If fe ij
< 3: Fisher’s exact test

i k

i

j l

j (^) ij

ij ij

o

fe

fo fe

1 1

2

2

Pearson’s: Example

Treatment 1 st relapse Treatment 1 st 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

relationship between type

of treatment used in a ex-

addicts group and the fact

to suffer a first relapse.

Treatment:

1 - cognitive-behavioral

2- pharmacological

1st relapse:

1 - yes

2 - no

Pearson’s: R output

Pearson’s: R output