<< Chapter < Page Chapter >> Page >
This module is the complementary teacher's guide for the "The Chi-Square Distribution" chapter of the Collaborative Statistics collection (col10522) by Barbara Illowsky and Susan Dean.

This chapter is concerned with three chi-square applications: goodness-of-fit; independence; and single variance. We rely on technology to do the calculations, especially for goodness-of-fit and for independence. However, the first example in the chapter (the number of absences in the days of the week) has the student calculate the chi-square statistic in steps. The same could be done for the chi-square statistic in a test of independence.

The chi-square distribution generally is skewed to the right. There is a different chi-square curve for each df. When the df's are 90 or more, the chi-square distribution is a very good approximation to the normal. For the chi-square distribution, μ = the number of df's and σ = the square root of twice the number of df's.

Goodness-of-fit test

A goodness-of-fit hypothesis test is used to determine whether or not data "fit" a particular distribution.

In a past issue of the magazine GEICO Direct , there was an article concerning the percentage of teenage motor vehicle deaths and time of day. The following percentages were given from a sample.

Time of day percentage of motor vehicle deaths
Time of Day Death Rate
12 a.m. to 3 a.m. 17%
3 a.m. to 6 a.m. 8%
6 a.m. to 9 a.m. 8%
9 a.m. to 12 noon 6%
12 noon to 3 p.m. 10%
3 p.m. to 6 p.m. 16%
6 p.m. to 9 p.m. 15%
9 p.m. to 12 a.m. 19%

For the purpose of this example, suppose another sample of 100 produced the same percentages. We hypothesize that the data from this new sample fits a uniform distribution. The level of significance is 1% ( α = 0 . 01 size 12{a=0 "." "01"} {} ).

  • H o size 12{H rSub { size 8{o} } } {} : The number of teenage motor vehicle deaths fits a uniform distribution.
  • H a size 12{H rSub { size 8{a} } } {} : The number of teenage motor vehicle deaths does not fit a uniform distribution.

The distribution for the hypothesis test is X 7 2 size 12{X rSub { size 8{7} } rSup { size 8{2} } } {}

The table contains the observed percentages. For the sample of 100, the observed (O) numbers are 17, 8, 8, 6, 10, 16, 15 and 19. The expected (E) numbers are each 12.5 for a uniform distribution (100 divided by 8 cells). The chi-square test statistic is calculated using

8 ( 0 E ) 2 E size 12{ Sum rSub { size 8{8} } { { { \( 0 - E \) rSup { size 8{2} } } over {E} } } } {}

= ( 17 12 . 5 ) 2 12 . 5 + ( 8 12 . 5 ) 2 12 . 5 + ( 8 12 . 5 ) 2 12 . 5 + ( 6 12 . 5 ) 2 12 . 5 + ( 10 12 . 5 ) 2 12 . 5 + ( 16 12 . 5 ) 2 12 . 5 + ( 15 12 . 5 ) 2 12 . 5 + ( 19 12 . 5 ) 2 12 . 5 size 12{ {}= { { \( "17" - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( 8 - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( 8 - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( 6 - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( "10" - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( "16" - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( "15" - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } + { { \( "19" - "12" "." 5 \) rSup { size 8{2} } } over {"12" "." 5} } } {}

= 13 . 6 size 12{ {}="13" "." 6} {}

If you are using the TI-84 series graphing calculators, ON SOME OF THEM there is a function in STAT TESTS called x 2 size 12{x rSup { size 8{2} } } {} GOF-Test that does the goodness-of-fit test. You first have to enter the observed numbers in one list (enter as whole numbers) and the expected numbers (uniform implies they are each 12.5) in a second list (enter 12.5 for each entry: 100 divided by 8 = 12.5). Then do the test by going to x 2 size 12{x rSup { size 8{2} } } {} GOF-Test.

If you are using the TI-83 series, enter the observed numbers in list1 and the expected numbers in list2 and in list3 (go to the list name), enter (list1-list2)^2/list2. Press enter. Add the values in list3 (this is the test statistic). Then go to 2nd DISTR x 2 size 12{x rSup { size 8{2} } } {} cdf. Enter the test statistic (13.6) and the upper value of the area (10^99) and the degrees of freedom (7).

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Collaborative statistics teacher's guide. OpenStax CNX. Oct 01, 2008 Download for free at http://cnx.org/content/col10547/1.5
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Collaborative statistics teacher's guide' conversation and receive update notifications?

Ask