Quantitative Skills 4 The ChiSquare Test
Quantitative Skills 4 The ChiSquare Test
“Goodness of Fit”
The Chi-Square (X2) Test is used to examine the
difference between an actual sample and a
hypothetical sample that would be expected
due to chance.
Possibly due to
Probably due to Probably not due to
chance
chance chance
Using Chi-Square, it is possible to discern
whether experimental results are valid, or
whether they are probably due to chance
alone.
The Chi-Square test compares two rival
hypotheses (the null hypothesis and an
alternative hypothesis) to see which
hypothesis is best supported by the data.
Establishing a null hypothesis (H0) and an
alternative hypothesis (HA)
• A null hypothesis states that there is no
relationship between two variables.
• The finding probably occurred by
chance.
X Ʃ
=
2 (o – e)2
e
X Ʃ
=
2 (o – e)2
e
(observed – expected )2
X 2
= (sum of all)
expected
Example: We flip a coin 200 times to
determine if a coin is fair.
Setting up this kind
of table is a VERY
good idea!
DF = 2 - 1 = 1
Accept or Reject the Null Hypothesis
• If the X 2 value is less than the critical value,
accept the null hypothesis. (The difference is not
statistically significant.)
• If the X 2 value is greater than or equal to the
critical value, reject the null hypothesis. (The
difference is statistically significant.)
In our example, the X 2 value we calculated was 1.28,
which is less than the critical value of 3.84. Therefore: