<< Chapter < Page Chapter >> Page >

Probability Statement: P ( x 2 > 13 . 6 ) = 0 . 0588 size 12{P \( x rSup { size 8{2} }>"13" "." 6 \) =0 "." "0588"} {}

(Always a right-tailed test)

A skewed distribution graph with bottom right corner shaded
p size 12{p} {} -value = 0 . 0588 size 12{ {}=0 "." "0588"} {}

Since α < p size 12{a<p} {} -value ( 0 . 01 < 0 . 0588 ) size 12{ \( 0 "." "01"<0 "." "0588" \) } {} , we do not reject H o size 12{H rSub { size 8{o} } } {} .

We conclude that there is not sufficient evidence to reject the null hypothesis. It appears that the number of teenage motor vehicle deaths fits a uniform distribution. It does not matter what time of the day or night it is. Teenagers die from motor vehicle accidents equally at any time of the day or night. However, if the level of significance were 10%, we would reject the null hypothesis and conclude that the distribution of deaths does not fit a uniform distribution.

A test of independence compares two factors to determine if they are independent (i.e. one factor does not affect the happening of a second factor).

The following table shows a random sample of 100 hikers and the area of hiking preferred.

The two factors are gender and preferred hiking area.
Hiking preference area
Gender The Coastline Near Lakes and Streams On Mountain Peaks
Female 18 16 11
Male 16 25 14
  • H o size 12{H rSub { size 8{o} } } {} : Gender and preferred hiking area are independent.
  • H a size 12{H rSub { size 8{a} } } {} : Gender and preferred hiking area are not independent

The distribution for the hypothesis test is x 2 2 size 12{x rSub { size 8{2} } rSup { size 8{2} } } {} .

The df's are equal to: ( rows - 1 ) ( columns - 1 ) = ( 2 - 1 ) ( 3 - 1 ) = 2

The chi-square statistic is calculated using ( 2 3 ) ( 0 E ) 2 E size 12{ Sum rSub { size 8{ \( 2 - 3 \) } } { { { \( 0 - E \) rSup { size 8{2} } } over {E} } } } {}

Each expected (E) value is calculated using ( rowtotal ) ( columntotal ) totalsurveyed size 12{ { { \( ital "rowtotal" \) \( ital "columntotal" \) } over { ital "totalsurveyed"} } } {}

The first expected value (female, the coastline) is 45 34 100 = 15 . 3 size 12{ { {"45" cdot "34"} over {"100"} } ="15" "." 3} {}

The expected values are: 15.3, 18.45, 11.25, 18.7, 22.55, 13.75

The chi-square statistic is:

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

( 18 15 . 3 ) 2 15 . 3 + ( 16 18 . 45 ) 2 18 . 45 + ( 11 11 . 15 ) 2 11 . 25 + ( 16 18 . 7 ) 2 18 . 7 + ( 25 22 . 55 ) 2 22 . 55 + ( 14 13 . 75 ) 2 13 . 75 size 12{ { { \( "18" - "15" "." 3 \) rSup { size 8{2} } } over {"15" "." 3} } + { { \( "16" - "18" "." "45" \) rSup { size 8{2} } } over {"18" "." "45"} } + { { \( "11" - "11" "." "15" \) rSup { size 8{2} } } over {"11" "." "25"} } + { { \( "16" - "18" "." 7 \) rSup { size 8{2} } } over {"18" "." 7} } + { { \( "25" - "22" "." "55" \) rSup { size 8{2} } } over {"22" "." "55"} } + { { \( "14" - "13" "." "75" \) rSup { size 8{2} } } over {"13" "." "75"} } } {}

= 1 . 47 size 12{ {}=1 "." "47"} {}

Calculator instructions

The TI-83/84 series have the function x 2 size 12{x rSup { size 8{2} } } {} -Test in STAT TESTS to preform this test. First, you have to enter the observed values in the table into a matrix by using 2nd MATRIX and EDIT [A]. Enter the values and go to x 2 size 12{x rSup { size 8{2} } } {} -Test. Matrix [B] is calculated automatically when you run the test.

Probability Statement: p size 12{p} {} -value = 0 . 4800 size 12{ {}=0 "." "4800"} {} (A right-tailed test)

A slightly right skewed distribution graph showing 1.47 as the mean and all values to the right shaded
p size 12{p} {} -value = 0 . 4800 size 12{ {}=0 "." "4800"} {}

Since α size 12{a} {} is less than 0.05, we do not reject the null.

There is not sufficient evidence to conclude that gender and hiking preference are not independent.

Sometimes you might be interested in how something varies. A test of a single variance is the type of hypothesis test you could run in order to determine variability.

A vending machine company which produces coffee vending machines claims that its machine pours an 8 ounce cup of coffee, on the average, with a standard deviation of 0.3 ounces. A college that uses the vending machines claims that the standard deviation is more than 0.3 ounces causing the coffee to spill out of a cup. The college sampled 30 cups of coffee and found that the standard deviation was 1 ounce. At the 1% level of significance, test the claim made by the vending machine company.

H o : σ 2 = ( 0 . 3 ) 2 size 12{H rSub { size 8{o} } :σ rSup { size 8{2} } = \( 0 "." 3 \) rSup { size 8{2} } } {} H a : σ 2 > ( 0 . 3 ) 2 size 12{H rSub { size 8{a} } :σ rSup { size 8{2} }>\( 0 "." 3 \) rSup { size 8{2} } } {}

The distribution for the hypothesis test is x 29 2 size 12{x rSub { size 8{"29"} } rSup { size 8{2} } } {} where df = 30 1 = 29 size 12{ ital "df"="30" - 1="29"} {} .

The test statistic x 2 = ( n 1 ) s 2 σ 2 = ( 30 1 ) 1 2 0 . 3 2 = 322 . 22 size 12{x rSup { size 8{2} } = { { \( n - 1 \) cdot s rSup { size 8{2} } } over {σ rSup { size 8{2} } } } = { { \( "30" - 1 \) cdot 1 rSup { size 8{2} } } over {0 "." 3 rSup { size 8{2} } } } ="322" "." "22"} {}

Probability Statement: P ( x 2 > 322 . 22 ) = 0 size 12{P \( x rSup { size 8{2} }>"322" "." "22" \) =0} {}

A distribution graph with what appears to be a asymptote near the horizontal axis
p size 12{p} {} -value = 0 size 12{ {}=0} {}

Since a > p size 12{a>p} {} -value ( 0 . 01 > 0 ) size 12{ \( 0 "." "01">0 \) } {} , reject H o size 12{H rSub { size 8{o} } } {} .

There is sufficient evidence to conclude that the standard deviation is more than 0.3 ounces of coffee. The vending machine company needs to adjust their machines to prevent spillage.

Assign practice

Have the students do the Practice 1 , Practice 2 , and Practice 3 in class collaboratively.

Assign homework

Assign Homework . Suggested homework: 3, 5, 7 (GOF), 9, 13, 15 (Test of Indep.), 17, 19, 23 (Variance), 24 - 37 (General)

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