Fisher’s Exact Test – Learn It 3

  • Check the conditions for Fisher’s Exact Test
  • Explain the relationship of two qualitative binary variables using Fisher’s Exact Test

How Fisher’s Exact Test works:

Unlike the chi-square test, Fisher’s Exact Test doesn’t rely on an approximation — it calculates the exact probability of observing a table as extreme as (or more extreme than) the one we got, assuming the row and column totals are fixed and the two variables are independent. This exact probability comes from the hypergeometric distribution, which gives the probability of each possible 2×2 table with those same margins. The p-value is the sum of the probabilities of all tables at least as extreme as the observed one. Because this involves summing probabilities across possible tables rather than comparing to a reference distribution (like chi-square does), Fisher’s Exact Test is typically calculated using software or a tool rather than by hand — but the result is still an exact p-value, not an approximation.

Steps for Fisher’s Exact Test of Independence Hypothesis Test:

  1. Write out the null and alternative hypotheses.
    • [latex]H_0[/latex]: The two variables are independent.
    • [latex]H_A[/latex]: The two variables are not independent.
  2. Check the conditions for the hypothesis test.
    • Independence/Randomness Condition: The sample from our population should be independent, random sample or independent sample that can be considered representative of the population.
    • 2×2 contingency table: The variables for our study need to be categorical and binary, giving us two categories by two categories of data
    • Small Expected Counts Condition: One or more expected cell counts in the 2×2 table is less than 5 (this is what makes Fisher’s Exact Test appropriate instead of the chi-square test for independence).
  3. Calculate the test statistic.
  4. Calculate a [latex]P[/latex]-value.
  5. Compare the [latex]P[/latex]-value to the significance level, [latex]\alpha[/latex], to make a decision.
  6. Write a conclusion in context (e.g., we do/do not have convincing evidence…).

Now suppose that, instead of comparing black helmets to other colors, the researchers wanted to compare red helmets to other colors.




[Trouble viewing? Click to open in a new tab.]