Professional Documents
Culture Documents
Chi Square
Chi Square
TESTS
When to use:
Nonparametric or distribution-free
statistics which does not identify or specify
the distribution of the population from
which the sample were drawn. A
nonparametric tests is a statistical
procedure in which no hypothesis is made
about a specific values of the population
parameters.
Advantages and Disadvantages
• It is positively skewed
• It is non-negative
• There is a family of chi-square distributions
Let f0 and fe be the observed and
expected frequencies respectively.
H1: There is a H0: There is no
difference between the difference between the
observed and the observed and
expected frequencies. expected frequencies.
The test statistic fo fe
2
is:
2
fe
The critical value is a chi-square value with (k-1)
degrees of freedom, where k isGoodness-of-
the number of
categories
Fit Test: Equal
Expected
Example 1
The following
information shows
Day of Week Number Absent
the number of
employees absent Monday 120
by day of the week Tuesday 45
at a large a Wednesday 60
manufacturing plant. Thursday 90
At the .01 level of Friday 130
significance, is there
Total 445
a difference in the
absence rate by day
of the week?
Compute the value of chi-square and make a
Example
decision. 1 continued
Male 60 20 10 90
Female 20 30 10 60
Total 80 50 20 150
Chi-square
• When to use it?
– When you want to know if there is an association between
two categorical (nominal) variables (i.e., between an
exposure and outcome)
• Ex) Smoking (yes/no) and lung cancer (yes/no)
• Ex) Obesity (yes/no) and diabetes (yes/no)
Total 16.667
Chi-square
• What do the results look like?
– Chi-square test statistics = X2
Tip: Chi square requires that there be 5 or more in each cell of a 2x2 table and 5 or more
in 80% of cells in larger tables. No cells can have a zero count.
Chi-Square (2) Test