Categorical Data Flashcards
what is x^2 (chi squared)
the test to determine how often observations fall into a particular category based on what we would expect
categorical data
how would you calculate chi squared by hand
1 - create a contingency table to record the frequency of each category (mutually exclusive and exhaustive)
2 - calculate the frequencies expected by chance
3 - calculate chi squared test statistic from the observed and expected frequencies
4 - compare it against critical values from a table
what is degrees of freedom for chi squared
number of categories -1
how do you calculate the expected value for chi squared with multiple IVs
grand total
what are degrees of freedom for chi squared with multiple IVs
(rows-1) x (columns-1)
how do you do a single Iv chi squared in spss
analyze
non parametric tests
chi squared
how do you do a multiple IV chi squared in SPSS
analyze descriptive statistics crosstabs then press statistics on window check chi squared box
what does chi squared assume
random sample
expected frequencies must be at least 1
no more than 20% can have a frequency of less than 5
how do you deal with low frequencies in chi squared
put categories together
discard small categories and run test on remaining data
what is the binomial test
used for data that can only have two values - eg yes/no heads/tails
compares if the frequency these two occur compiles with an expected ratio
how do you do a binomial test in SPSS
analyze
nonparametric tests
binomial test