Chi-Square-Tests

  • The Chi-Square Distribution
  • Chi-square goodness of fit tests
  • A chi-square test for independence

Chi-Square Tests

  • Test of Multinomial Experiment
    • General Test
    • Test for homogeneity
    • Test for normal distribution
  • Test for independence

The Chi-Square Distribution

The chi-square distribution depends on the number of degrees of freedom.

  • There is a family of chi-square distributions.
  • It is skewed to the right.
  • It is non-negative.

Test of Multinomial Experiment

  1. H0: multinomial probabilities are p1, p2, … , pk
    Ha: at least one of the probabilities differs from p1, p2,…, pk
  2. Choose
  3. Multinomial Experiment
    Assumption: The excepted cell frequencies are >5
  4. Critical value is , with k-1 degrees of freedom
  5. Test statistic:
  1. Reject H0 if >

General Test Example

Marital status



Test for homogeneity Example

Support calls




Chi-Square Test for Independence

Chi-square test of independence is used to determine if there is a significant relationship between two qualitative (categorical) variables.

A contingency table is used to investigate whether two traits or characteristics are related.

  1. H0: X and Y are independent
    Ha: X and Y are dependent

  2. Assumption: The excepted cell frequencies are > 5

  3. Set the level of significance

  1. Critical value is , with degrees of freedom (r-1)(c-1)
  2. Test statistic:

where:
= observed frequency in cell
= expected frequency in cell
= number of rows
= number of columns
6. Reject H0 if

Chi-Square Test for Independence Example

Summary

Chi-squared test of goodness of fit:

d.f. = k - 1

Chi-squared test of independence in a contingency table:

d.f. = (r - 1)(c - 1)

These formulas and degrees of freedom calculations are fundamental to performing chi-squared tests in statistics.