Chi Squared tests Flashcards

1
Q

how do you make the chi squared statsitic?

A
  1. take totals of each row and colum together and the total of columns and row (should be the same number)
  2. assume that the variables are independant
  3. calculate the expected frequency table, tottals should be the exact same
  4. make a contributions table (no totals included)
  5. calculate the chi squared statstic by summing all the contributions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

hypotehsis testing for chi squared tests

A
  1. null hypothesis: There is no assocoiation between x and y (in context)
  2. alternate hypothesis: There is an association between x and y ( in context)
  3. calculate chi squared statistic ( observed–> expected–> contributions–> sum
  4. look at degrees of freedom and significance level to find the critical value
  5. compare to chi square statistic, find if signifucant or not, suffenct/ insufficent evidence to reject H0
  6. conclulsion in context
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the degrees of freedom?

A

v (nu) how many variables (numbers) you need to calculate the total

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

what are the degrees of freedom formula?

A

(number of row- 1) x (number of columns - 1)

eg for a 3x3 nof= 4

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

what do the contrinutions suggest?

A

how much more was actually observed than expected
* the closer the contrinution to 0 the more similar the observed value was to the expected

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

what is classified as a small expected frequnecy?

A

being under 5
* makes contributions larger than should be, infulncing th chi squared value

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

what do you do when there is a small expected frequency?

A

combine rows or column dependning on context (gotta redo the whole thing)

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

what is goodness of fit?

A

using chi sqaure to see if results can be modelled as different distributions ( poisson/ uniform/binomial)

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

how do you test for uniform distribution?

A
  • the expected frequencies will be the same for each outcome
  • for H0: P=1/n (assumption that it is fair)
  • H1: P≠ 1/n (assumption that it is not fair)
  • for one row v= n-1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

how do you test for poisson distribution?

A
  • finding λ (Σx/n)
  • use this to find Expected frequencies, using calculator
  • find the contribution and chi squares value
  • for degrees of freedom, -1 additional for estimated value of λ, (-2)
  • H0: x can be modelled by a poisson distribution (in contexet)
  • H1: x cannot be modelled by a poisson distribution (in context)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

how do you do goodness of fit test for binomial distribution?

A
  • calculate probability using x̄/n
  • value of n is the last value of header or column
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how do you do chi square left hand tail?

A

fit too good, so may have been manipulated to not reject H0 or not all values in sample taken randomly

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