Lecture 26- HT Chisq Flashcards

1
Q

Fill in the expected contingency table based on the example on slide 493 and go through the method for hypothesis testing using Chi-Squared test…

A

Answers in sides

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

What is a Chi-squared test used to determine?

A

-The χ2-Test is used with two-way contingency tables to compare the
data we observed with what we would have expected to see under the null hypothesis of no association between the two variables.

-May be used in contingency tables that are larger than 2 × 2

-It uses the same hypothesis testing framework as the other hypothesis
tests we’ve seen.

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

How do you work out an expected cell count?

A

Times the associated row total by the column total and divide by n (the total number of trials/ patients)

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

How do you work out degrees of freedom?

A

ν = (number of rows - 1) × (number of columns - 1)

This determines the shape of the chi distribution we are using.

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

What is the chi distribution showing and what does a large test statistic therefore mean?

A
  • Distribution shows what would expect to see if H naught was true
  • Therefore the larger the value (test statistic) the more we would reject H naught (cause far in tail)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do we use to quantify how big a value needs to be before the null is rejected?

A

-Calculate a P-value using: pchisq(9.70,1,lower.tail = FALSE) in r.
(test statistic and degrees of freedom will obviously vary depending on situation).

-As per usual the significance level for P is at 0.05 or 5% so at values less than this there is no association between the variables we reject the null (which says they are the same) and support the alternative hypothesis.

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

Carry out a hypothesis test using the alternative (correlation) method for the example on slide 507…

A

Answers in slide

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

How is maximum power achieved in this method?

A

If there is equal numbers in each ‘exposure’ group. This is often not possible to achieve in observational studies

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

When is the chi squared method unreliable?

A

If counts are small, in particular if any of the expected cell counts are less than 5.

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

Do we round expected cell counts?

A

No

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