It is a statistical hypothesis test used to assess the association between two binary variables using a contingency table.
Contingency table shows distribution of one variable in rows and another in columns. It is used to study the correlation between variables.
Fisher’s exact test uses contingency table to calculate the probability of observing the data as it is, considering all possible arrangements of observed data. As the variables in this test are binary variables, the contingency table is 2 2 in size.
This test is useful when working with small sized samples. It is a non parametric test (means that it assumes no distribution of data).
Assumptions of Fisher’s exact test
- Both varibles are categorical and binary
- Data should be randongly selected from independent samples
- groups should have no relation among them
- observations can only fall into one category at a time
- One or more value in contingency table is small (less than 5)
Hypothesis of Fisher’s exact test
Null hypothesis : there is no association between two variables
Alternate hypothesis : there is an association between two variables (in any direction)