9. Contingency Analysis Flashcards

1
Q

contingency analysis

A

tests the independence of 2 categorical variables

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

With independence, relationship between Pr[X AND Y ] and Pr[X] and Pr[Y]

A

Pr[X AND ] = Pr[X] * Pr[Y]

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

Process of Contingency analysis

A
  1. Determine EXPECTED probability of each combined category
    (ex. Pr[X AND Y] Pr[X AND y] etc) by calculating Pr[X], Pr[Y]. Pr[x], Pr[y], and multiplying those probabilities to give probability of both.
  2. multiply proportions by total number of individuals to give expected count
  3. Calculate the chi squared value, (Observed - exp)^2/exp for each category
  4. Calculate degrees of freedom df = (# columns - 1) * (# rows - 1)
  5. determine critical value, and compare chi squared to that value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to calculate degrees of freedom for contingency analysis test

A

df = (# columns - 1) * (# rows - 1)

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

Assumptions of contingency test

A

same assumptions of chi squared

No expectations less than 1, and no more than 20% less than 5

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

Fisher’s exact test

A

used in a 2 X 2 contingency analysis, makes no assumptions about size of expectations

hard to do by hand, but can do through R

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

Odds

A

The probability of success divided by the probability of failure

when p = probability of success

O = p / (1 - p)

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

Odds ratio

A

the odds of success in one group divided by odds in another

OR = (odds in treatment group) / (odds in control group)

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