Chi squared tests Flashcards

1
Q

Definition of chi squared test

A

Tests for associations between 2 categorical discrete variables

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

What is a chi squared test
What distribution is it based on
What values can you get from this calculation

A

Tests for associations between 2 categorical variables that are discrete

Based on x2 distribution with n degrees
n degrees of freedom = (rows -1) x (columns -1)

p value given but no direct estimates or CU for estimates

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

What is the null hypothesis for the chi squared test

A

There is no association between the 2 variables in the population

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

What do we calculate in the X2 test

A

Calculates expected frequencies if null is true
Compares observed frequencies with expected values
If observed values are v different to expected => association
X2 distribution => p value

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

How do you interpret the p value

A

p < 0.05 => reject null

p ≥ 0.05 => can’t reject null

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

What are the 3 assumptions

A

80% of expected frequencies > 5

If nos are small => collapse table if there are multiple categories

Or use FIsher’s exact test
Sample size must be large

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

How do you calculate the p value

A

Degrees of freedom = (rows -1) x (columns - 1)

Use table for p values to find p value and compare to p=0.05

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

What are the 2 ways that you can summarize the size of an effect

A

Risk difference calculation

Relative risk calculation

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

How do you calculate the risk difference

A
p1 = exposed and diseased/total no exposed
p2 = not exposed and diseases/total no not exposed

p1 - p2 = difference in proportion => 95% CI of risk difference

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

How do you calculate the relative risk

A
p1 = exposed and diseased/total no exposed
p2 = unexposed and diseased/total no not exposed

p1/p2 = ratio of proportions => 95% CI of relative risk

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

How do you interpret the risk difference

A

Gives you the % difference between groups

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

How do you interpret the relative risk

A

Gives you the % difference of the event happening in each condition

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