A statistical test that allows one to determine whether observed quantities of a specific characteristic differed from the expected value purely by chance.