analysing categorical data Flashcards

(11 cards)

1
Q

how can you analyse categorical data?

A

create a contingency table

perform a chi-square test (do people fall into a category more often than we expect them too?)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are contingency tables?

A

a table for frequencies for how often an observation occurs in a category

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what must categories be in a contingency table?

A

mutually exclusive

exhaustive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a chi-square test?

A

devised by Karl Pearson in 1900, also known as Pearson’s chi-square

calculates how often a particular observation falls into a category based on how many were expected by chance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the null hypothesis in a chi-square test?

A

the frequencies observed were expected by chance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the alternative hypothesis in a chi-square test?

A

the frequencies observed reflect real differences in categories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what are the assumptions in a chi-square test?

A

independence - each person can only contribute to one cell of a contingency table

expected frequencies - all expected counts should be greater than 1 and no more than 20% of expected counts should be less than 5 - if violated, power reduced

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what are the options if expected frequencies assumption violated?

A

use an “exact” test instead (e.g. Fisher’s or MLR)

collapse/remove data across one variable

collapse levels of one variable

collect more data

accept the loss of power

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are the steps of chi-square by hand with one IV?

A

calculate expected frequencies

calculate chi-square value based on observed and expected frequencies

compared chi-square value against critical values table

to interpret table, need to know degrees of freedom (number of categories - 1) and our desired alpha value

reject H- when X2observed > X2critical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how is chi-square with two IVs calculated?

A

with two IVs, difference will be in calculating the expected values in each case

to calculate expected frequencies for two IVs, need to calculate expected frequencies of specific cells

degrees of freedom = (number of rows - 1) x (number of cells - 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is a binomial test?

A

compares observed and expected frequencies for variable with only two levels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly