Chi-squared Flashcards
What are the steps of analysis?
Obtain Data, from which we calculate…
. . .
A test statistic that represents the relationship of interest, which we compare to…
. . .
The distribution of that test statistic under the null hypothesis to get…
. . .
The probability p of getting a test statistic as large as the one we have (or larger) if the null hypothesis is true so that we can…
. . .
Evaluate our competing hypotheses using a previously decided 𝛼 level.
What are we calculating when we calculate a test statistic?
How different are the observed counts from the expected counts?
Define the term “Observed counts”
The number of occurrences in each category observed in the sample
Define the term “Expected counts”
The number of occurrences in each category expected under the null hypothesis
What is the 𝜒^2 distribution?
The sum of squared normal distributions
What two things do degrees of freedom determine?
The distribution’s shape and proportions
What does 𝜒^2 quantify?
How different a set of observed frequencies are from expected frequencies
What is a Goodness of Fit Test?
Tests whether a sample of frequency data came from a population with a specific, known distribution
What is continuous data?
Represent some measurement or score on a scale
Examples = Reaction time to press a button, mean anxiety score
Answers the question: how much?
What is categorical data?
Represent membership in a particular group or condition
Examples = control vs experimental group, year of uni
Answers the question: which one?
What is a statistical assumption?
A precondition that must be true in order for a statistical test to work as expected. If these assumptions are violated (i.e.not true), then the test may give inaccurate or misleading estimates or results.
What is an assumption of the chi-squared test?
What test do we use instead if this assumption is not met?
One of the assumptions of 𝜒^2 is that all expected frequencies are greater than 5
Otherwise this test can give you a drastically wrong answer
In this case, use Fisher’s exact test (fisher.test()) instead