CHAPTER 11
CHI-SQUARE TESTS
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Opening Example
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
THE CHI-SQUARE DISTRIBUTION
 Definition
 The chi-square distribution has only one parameter called
the degrees of freedom. The shape of a chi-squared
distribution curve is skewed to the right for small df and
becomes symmetric for large df. The entire chi-square
distribution curve lies to the right of the vertical axis. The chi-
square distribution assumes nonnegative values only, and
these are denoted by the symbol χ2
(read as “chi-square”).
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.1 Three chi-square distribution curves.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-1
 Find the value of χ² for 7 degrees of freedom and an area of
.10 in the right tail of the chi-square distribution curve.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.1 χ2
for df = 7 and .10 Area in the Right Tail
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.2
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-2
 Find the value of χ² for 12 degrees of freedom and an area
of .05 in the left tail of the chi-square distribution curve.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-2: Solution
 Area in the right tail
 = 1 – Area in the left tail
 = 1 – .05 = .95
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.2 χ2
for df = 12 and .95 Area in the Right Tail
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.3
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A GOODNESS-OF-FIT TEST
Definition
An experiment with the following characteristics is called a
multinomial experiment.
1. It consists of n identical trials (repetitions).
2. Each trial results in one of k possible outcomes (or
categories), where k > 2.
3. The trials are independent.
4. The probabilities of the various outcomes remain
constant for each trial.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A GOODNESS-OF-FIT TEST
 Definition
 The frequencies obtained from the performance of an
experiment are called the observed frequencies and are
denoted by O. The expected frequencies, denoted by E,
are the frequencies that we expect to obtain if the null
hypothesis is true. The expected frequency for a category is
obtained as
 E = np
 where n is the sample size and p is the probability that an
element belongs to that category if the null hypothesis is
true.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A GOODNESS-OF-FIT TEST
 Degrees of Freedom for a Goodness-of-Fit Test
 In a goodness-of-fit test, the degrees of freedom are
 df = k – 1
 where k denotes the number of possible outcomes (or
categories) for the experiment.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Test Statistic for a Goodness-of-Fit Test
 The test statistic for a goodness-of-fit test is χ2
and its
value is calculated as
 where
 O = observed frequency for a category
 E = expected frequency for a category = np
 Remember that a chi-square goodness-of-fit test is always
right-tailed.
2
2 ( )
O E
E



Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3
 A bank has an ATM installed inside the bank, and it is
available to its customers only from 7 AM to 6 PM Monday
through Friday. The manager of the bank wanted to
investigate if the percentage of transactions made on this
ATM is the same for each of the 5 days (Monday through
Friday) of the week. She randomly selected one week and
counted the number of transactions made on this ATM on
each of the 5 days during this week. The information she
obtained is given in the following table, where the number
of users represents the number of transactions on this ATM
on these days. For convenience, we will refer to these
transactions as “people” or “users.”
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3
At the 1% level of significance, can we reject the null
hypothesis that the number of people who use this ATM
each of the 5 days of the week is the same? Assume that
this week is typical of all weeks in regard to the use of this
ATM.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3: Solution
Step 1:
H0 : p1 = p2 = p3 = p4 = p5 = .20
H1 : At least two of the five proportions are not equal to .20
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3: Solution
Step 2:
There are 5 categories
 5 days on which the ATM is used
 Multinomial experiment
We use the chi-square distribution to make this test.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3: Solution
Step 3:
Area in the right tail = α = .01
k = number of categories = 5
df = k – 1 = 5 – 1 = 4
The critical value of χ2
= 13.277
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.4
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.3 Calculating the Value of the Test Statistic
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3: Solution
Step 4:
All the required calculations to find the value of the test
statistic χ2
are shown in Table 11.3.
2
2 ( )
23.184
O E
E


 

Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-3: Solution
Step 5:
The value of the test statistic χ2
= 23.184 is larger than the
critical value of χ2
= 13.277.
 It falls in the rejection region
Hence, we reject the null hypothesis.
We state that the number of persons who use this ATM is not
the same for the 5 days of the week.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4
 In a 2011 Time/Money Magazine survey, Americans age 18
years and older were asked if “we are less sure that our
children will achieve the American dream.” Of the
respondents, 65% said yes, 29% said no, and 6% said that
they did not know (Time, October 10, 2011). Assume that
these percentages hold true for the 2011 population of
Americans age 18 years and older. Recently 1000 randomly
selected Americans age 18 years and older were asked the
same question. The following table lists the number of
Americans in this sample who made the respective
response.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4
Test at a 2.5% level of significance whether the current
distribution of opinions is different from that for 2011.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4: Solution
Step 1:
H0 : The current percentage distribution of opinions is the
same as for 2011.
H1 : The current percentage distribution of opinions is
different from that for 2011.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4: Solution
Step 2:
There are 3 categories
 Multinomial experiment
We use the chi-square distribution to make this test.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4: Solution
Step 3:
Area in the right tail = α = .025
k = number of categories = 3
df = k – 1 = 3 – 1 = 2
The critical value of χ2
= 7.378
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.5
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.4 Calculating the Value of the Test Statistic
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4: Solution
Step 4:
All the required calculations to find the value of the test
statistic χ2
are shown in Table 11.4.
𝝌𝟐
=∑
(𝑶− 𝑬)𝟐
𝑬
=𝟑.𝟓𝟗𝟎
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-4: Solution
Step 5:
The value of the test statistic χ2
= 3.590 is smaller than the
critical value of χ2
= 7.378
 It falls in the nonrejection region
Hence, we fail to reject the null hypothesis.
We state that the current percentage distribution of opinions
is the same as for 2011.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Case Study 11-1 Are People on Wall Street Honest and
Moral?
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A TEST OF INDEPENDENCE OR
HOMOGENEITY
 Often we have information on more than one variable for
each element. Such information can be summarized and
presented using a two-way classification table, which is
called a contingency table or cross-tabulation.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A TEST OF INDEPENDENCE OR
HOMOGENEITY
 A Test of Independence
 A Test of Homogeneity
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A Test of Independence
 Definition
 A test of independence involves a test of the null hypothesis
that two attributes of a population are not related. The
degrees of freedom for a test of independence are
 df = (R – 1)(C – 1)
 where R and C are the number of rows and the number of
columns, respectively, in the given contingency table.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
 Test Statistic for a Test of Independence
 The value of the test statistic χ2
for a test of
independence is calculated as
 where O and E are the observed and expected frequencies,
respectively, for a cell.
A Test of Independence
2
2 ( )
O E
E



Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-5
 Violence and lack of discipline have become major problems
in schools in the United States. A random sample of 300
adults was selected, and these adults were asked if they
favor giving more freedom to schoolteachers to punish
students for violence and lack of discipline. The two-way
classification of the responses of these adults is represented
in the following table.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
 Calculate the expected frequencies for this table, assuming
that the two attributes, gender and opinions on the issue,
are independent.
Example 11-5
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-5: Solution
Table 11.6 Observed Frequencies
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Expected Frequencies for a Test of Independence
 The expected frequency E for a cell is calculated as
(Row total)(Column total)
sample size
E 
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-5: Solution
Table 11.7 Observed and Expected Frequencies
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-6
 Reconsider the two-way classification table given in Example
11-5. In that example, a random sample of 300 adults was
selected, and they were asked if they favor giving more
freedom to schoolteachers to punish students for violence
and lack of discipline. Based on the results of the survey, a
two-way classification table was prepared and presented in
Example 11-5. Does the sample provide sufficient information
to conclude that the two attributes, gender and opinions of
adults, are dependent? Use a 1% significance level.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-6: Solution
Step 1:
H0: Gender and opinions of adults are independent
H1: Gender and opinions of adults are dependent
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-6: Solution
Step 2:
We use the chi-square distribution to make a test of
independence for a contingency table.
Step 3:
α = .01
df = (R – 1)(C – 1) = (2 – 1)(3 – 1) = 2
The critical value of χ2
= 9.210
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.6
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.8 Observed and Expected Frequencies
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-6: Solution
     
     
2
2
2 2 2
2 2 2
( )
93 105.00 70 59.50 12 10.50
105.00 59.50 10.50
87 75.00 32 42.50 6 7.50
75.00 42.50 7.50
1.371 1.853 .214 1.920 2.594 .300 8.252
O E
E



  
  
  
  
      

Step 4:
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-6: Solution
Step 5:
The value of the test statistic χ2
= 8.252
 It is less than the critical value of χ2
= 9.210
 It falls in the nonrejection region
Hence, we fail to reject the null hypothesis.
We state that there is not enough evidence from the sample
to conclude that the two characteristics, gender and opinions
of adults, are dependent for this issue.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-7
 A researcher wanted to study the relationship between
gender and owning cell phones. She took a sample of 2000
adults and obtained the information given in the following
table.
 At the 5% level of significance, can you conclude that gender
and owning cell phones are related for all adults?
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-7: Solution
Step 1:
H0: Gender and owning a cell phone are not related
H1: Gender and owning a cell phone are related
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-7: Solution
Step 2:
We are performing a test of independence
We use the chi-square distribution
Step 3:
α = .05.
df = (R – 1)(C – 1) = (2 – 1)(2 – 1) = 1
The critical value of χ2
= 3.841
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.7
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.9 Observed and Expected Frequencies
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-7: Solution
   
   
2
2
2 2
2 2
( )
640 588.60 450 501.40
588.60 501.40
440 491.40 470 418.60
491.40 481.60
4.489 5.269 5.376 6.311 21.445
O E
E



 
 
 
 
    

Step 4:
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-7: Solution
Step 5:
The value of the test statistic χ2
= 21.445
 It is larger than the critical value of χ2
= 3.841
 It falls in the rejection region
Hence, we reject the null hypothesis.
We state that there is strong evidence from the sample to
conclude that the two characteristics, gender and owning
cell phones, are related for all adults.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
A Test of Homogeneity
 Definition
 A test of homogeneity involves testing the null hypothesis
that the proportions of elements with certain characteristics in
two or more different populations are the same against the
alternative hypothesis that these proportions are not the
same.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-8
 Consider the data on income distributions for households in
California and Wisconsin given in Table 11.10. Using the 2.5%
significance level, test the null hypothesis that the distribution
of households with regard to income levels is similar
(homogeneous) for the two states.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-8
 Table 11.10 Observed Frequencies
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-8: Solution
Step 1:
H0: The proportions of households that belong to different
income groups are the same in both states
H1: The proportions of households that belong to different
income groups are not the same in both states
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-8: Solution
Step 2:
We use the chi-square distribution to make a homogeneity
test.
Step 3:
α = .025
df = (R – 1)(C – 1) = (3 – 1)(2 – 1) = 2
The critical value of χ2
= 7.378
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.8
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Table 11.11 Observed and Expected Frequencies
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-8: Solution
     
     
2
2
2 2 2
2 2 2
( )
70 65 34 39 80 75
65 39 75
40 45 100 110 76 66
45 110 66
.385 .641 .333 .566 .909 1.515 4.339
O E
E



  
  
  
  
      

Step 4:
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-8: Solution
Step 5:
The value of the test statistic χ2
= 4.339
 It is less than the critical value of χ2
 It falls in the nonrejection region
Hence, we fail to reject the null hypothesis.
We state that the distribution of households with regard to
income appears to be similar (homogeneous) in California and
Wisconsin.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
INFERENCES ABOUT THE POPULATION
VARIANCE
 Estimation of the Population Variance
 Hypothesis Tests About the Population Variance
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
INFERENCES ABOUT THE POPULATION
VARIANCE
 Sampling Distribution of (n – 1)s2
/ σ2
 If the population from which the sample is selected is
(approximately) normally distributed, then
 has a chi-square distribution with n – 1 degrees of freedom.
2
2
( 1)
n s


Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Estimation of the Population Variance
 Confidence interval for the population variance σ2
 Assuming that the population from which the sample is
selected is (approximately) normally distributed, we obtain
the (1 – α)100% confidence interval for the population
variance σ2
as
1 / 2
2 2
2 2
/ 2
( 1) ( 1)
to
n s n s


  
 
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Estimation of the Population Variance
 where and are obtained from the chi-square
distribution for α /2 and 1- α /2 areas in the right tail of
the chi-square distribution curve, respectively, and for n-1
degrees of freedom. The confidence interval for the
population standard deviation can be obtained by simply
taking the positive square roots of the two limits of the
confidence interval for the population variance.
2
/ 2

 2
1 / 2

 
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-9
 One type of cookie manufactured by Haddad Food Company is
Cocoa Cookies. The machine that fills packages of these
cookies is set up in such a way that the average net weight of
these packages is 32 ounces with a variance of .015 square
ounce. From time to time the quality control inspector at the
company selects a sample of a few such packages, calculates
the variance of the net weights of these packages, and
constructs a 95% confidence interval for the population
variance. If either both or one of the two limits of this
confidence interval is not in the interval .008 to .030, the
machine is stopped and adjusted. A recently taken random
sample of 25 packages from the production line gave a sample
variance of .029 square ounce. Based on this sample
information, do you think the machine needs an adjustment?
Assume that the net weights of cookies in all packages are
normally distributed.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-9: Solution
Step 1:
n = 25 and s2
= .029
Step 2:
α = 1 - .95 = .05
α/2 = .05/2 = .025
1 – α/2 = 1 – .025 = .975
df = n – 1 = 25 – 1 = 24
χ2
for 24 df and .025 area in the right tail = 39.364
χ2
for 24 df and .975 area in the right tail = 12.401
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.9
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-9: Solution
1 / 2
2 2
2 2
/ 2
( 1) ( 1)
to
(25 1)(.029) (25 1)(.029)
to
39.364 12.401
.0177 to .0561
n s n s


  
 
 
Step 3:
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-9: Solution
 Thus, with 95% confidence, we can state that the variance
for all packages of Cocoa Cookies lies between .0177
and .0561 square ounce.
 We can obtain the confidence interval for the population
standard deviation σ by taking the positive square roots of
the two limits of the above confidence interval for the
population variance. Thus, a 95% confidence interval for the
population standard deviation is .133 to .237.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Hypothesis Tests About the Population Variance
 Test statistic for a Test of Hypothesis About σ2
 The value of the test statistic χ2
is calculated as
 where s2
is the sample variance, σ2
is the hypothesized value
of the population variance, and n – 1 represents the degrees
of freedom. The population from which the sample is selected
is assumed to be (approximately) normally distributed.
2
2
2
( 1)
n s




Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-10
 One type of cookie manufactured by Haddad Food Company
is Cocoa Cookies. The machine that fills packages of these
cookies is set up in such a way that the average net weight of
these packages is 32 ounces with a variance of .015 square
ounce. From time to time the quality control inspector at the
company selects a sample of a few such packages, calculates
the variance of the net weights of these packages, and makes
a test of hypothesis about the population variance. She
always uses α = .01. The acceptable value of the population
variance is .015 square ounce or less.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-10
 If the conclusion from the test of hypothesis is that the
population variance is not within the acceptable limit, the
machine is stopped and adjusted. A recently taken random
sample of 25 packages from the production line gave a
sample variance of .029 square ounce. Based on this
sample information, do you think the machine needs an
adjustment? Assume that the net weights of cookies in all
packages are normally distributed.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-10: Solution
Step 1:
H0 :σ2
≤ .015
(The population variance is within the acceptable limit)
H1: σ2
>.015
(The population variance exceeds the acceptable limit)
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-10: Solution
Step 2:
We use the chi-square distribution to test a hypothesis
about σ2
Step 3:
α = .01.
df = n – 1 = 25 – 1 = 24
The critical value of χ2
= 42.980
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.10
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-10: Solution
2
2
2
( 1) (25 1)(.029)
46.400
.015
n s


 
  
From H0
Step 4:
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-10: Solution
Step 5:
The value of the test statistic χ2
= 46.400
 It is greater than the critical value of χ 2
 It falls in the rejection region
Hence, we reject the null hypothesis H0
We conclude that the population variance is not within the
acceptable limit. The machine should be stopped and
adjusted.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-11
 The variance of scores on a standardized mathematics test
for all high school seniors was 150 in 2011. A sample of
scores for 20 high school seniors who took this test this year
gave a variance of 170. Test at the 5% significance level if
the variance of current scores of all high school seniors on
this test is different from 150. Assume that the scores of all
high school seniors on this test are (approximately) normally
distributed.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-11: Solution
Step 1:
H0: σ2
= 150
(The population variance is not different from 150)
H1: σ2
≠ 150
(The population variance is different from 150)
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-11: Solution
Step 2:
We use the chi-square distribution to test a hypothesis
about σ2
Step 3:
α = .05
Area in each tail = .025
df = n – 1 = 20 – 1 = 19
The critical values of χ2
= 32.852 and 8.907
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Figure 11.11
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-11: Solution
2
2
2
( 1) (20 1)(170)
21.533
150
n s


 
  
From H0
Step 4:
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Example 11-11: Solution
Step 5:
The value of the test statistic χ2
= 21.533
 It is between the two critical values of χ2
 It falls in the nonrejection region
Consequently, we fail to reject H0.
We conclude that the population variance of the current
scores of high school seniors on this standardized
mathematics test does not appear to be different from 150.
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
TI-84
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
TI-84
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
TI-84
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
TI-84
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
TI-84
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
TI-84
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Minitab
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Excel
Prem Mann, Introductory Statistics, 8/E
Copyright © 2013 John Wiley & Sons. All rights reserved.
Uji keselarasan fungsi
(goodness-of-fit test)
Soal uji keselarasan fungsi
Mikroprosesor “P”, “D” dan “C” selama ini
masing-masing menguasai 50%, 30%,
dan 20% mikroprosesor untuk keperluan
pribadi (personal komputer). Pembuat
mikroprosesor “C” baru saja meluncurkan
produk seri terbaru mikroprosesornya dan
ingin mengetahui perkiraan tanggapan
pasar atas produk baru tersebut.
Uji keselarasan fungsi
(goodness-of-fit test)
Perusahaan tersebut mengadakan survey
dengan mengambil sampel acak sebanyak
200 pengguna komputer pribadi yang
familier dengan produk seri baru “C” dan
juga mikroprosesor pesaing yang lainnya.
Perusahaan ini ingin mengetahui apakah
produk barunya ini akan mengubah
persentase pangsa pasar mikroprosesor.
Data survey adalah sebagai berikut: 74
memilih mikroprosesor “P”, 62 memilih
“D” dan 64 memilih “C” seri baru.
Ujilah dengan α = 5% hipotesa untuk kasus
diatas !
Uji Tabel Kontingensi
Soal Uji tabel kontingensi
Untuk merencanakan arah pengembanngan
kurikulum pendidikan teknik berikutnya,
perhimpunan badan pengembanngan pendidikan
teknik antar universitas mengadakan survey
untuk mengetahui kebutuhan sarjana teknik di
bidang industri di tiga daerah. Tujuan penelitian
ini untuk mengetahui ketergantungan kebutuhan
sarjana teknik pada daerah dan bidang-bidang
tertentu yang diutamakan. Hasil survey dengan
menanyakan secara acak 310 perusahaan
industri di ke 3 kota memberikan data
sebagaimana yang diberikan dalam tabel
kontingensi berikut :
Uji Tabel Kontingensi
Daerah Indst
per-
tanian
Indust
manu-
faktur
Indust
per-tam-
bangan
Jum-
lah
baris
A 50 40 35 125
B 30 45 25 100
C 20 45 20 85
Jumlah
kolom
100 130 80 Jumlah
total =
310
Uji Tabel Kontingensi
Pertanyaan:
Ujilah hipotesa dengan α = 5% untuk kasus
diatas !

dkagfkjshflhsafaskjdfhsdakljfkdajdshfdasf

  • 1.
    CHAPTER 11 CHI-SQUARE TESTS PremMann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 2.
    Opening Example Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 3.
    THE CHI-SQUARE DISTRIBUTION Definition  The chi-square distribution has only one parameter called the degrees of freedom. The shape of a chi-squared distribution curve is skewed to the right for small df and becomes symmetric for large df. The entire chi-square distribution curve lies to the right of the vertical axis. The chi- square distribution assumes nonnegative values only, and these are denoted by the symbol χ2 (read as “chi-square”). Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 4.
    Figure 11.1 Threechi-square distribution curves. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 5.
    Example 11-1  Findthe value of χ² for 7 degrees of freedom and an area of .10 in the right tail of the chi-square distribution curve. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 6.
    Table 11.1 χ2 fordf = 7 and .10 Area in the Right Tail Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 7.
    Figure 11.2 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 8.
    Example 11-2  Findthe value of χ² for 12 degrees of freedom and an area of .05 in the left tail of the chi-square distribution curve. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 9.
    Example 11-2: Solution Area in the right tail  = 1 – Area in the left tail  = 1 – .05 = .95 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 10.
    Table 11.2 χ2 fordf = 12 and .95 Area in the Right Tail Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 11.
    Figure 11.3 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 12.
    A GOODNESS-OF-FIT TEST Definition Anexperiment with the following characteristics is called a multinomial experiment. 1. It consists of n identical trials (repetitions). 2. Each trial results in one of k possible outcomes (or categories), where k > 2. 3. The trials are independent. 4. The probabilities of the various outcomes remain constant for each trial. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 13.
    A GOODNESS-OF-FIT TEST Definition  The frequencies obtained from the performance of an experiment are called the observed frequencies and are denoted by O. The expected frequencies, denoted by E, are the frequencies that we expect to obtain if the null hypothesis is true. The expected frequency for a category is obtained as  E = np  where n is the sample size and p is the probability that an element belongs to that category if the null hypothesis is true. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 14.
    A GOODNESS-OF-FIT TEST Degrees of Freedom for a Goodness-of-Fit Test  In a goodness-of-fit test, the degrees of freedom are  df = k – 1  where k denotes the number of possible outcomes (or categories) for the experiment. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 15.
    Test Statistic fora Goodness-of-Fit Test  The test statistic for a goodness-of-fit test is χ2 and its value is calculated as  where  O = observed frequency for a category  E = expected frequency for a category = np  Remember that a chi-square goodness-of-fit test is always right-tailed. 2 2 ( ) O E E    Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 16.
    Example 11-3  Abank has an ATM installed inside the bank, and it is available to its customers only from 7 AM to 6 PM Monday through Friday. The manager of the bank wanted to investigate if the percentage of transactions made on this ATM is the same for each of the 5 days (Monday through Friday) of the week. She randomly selected one week and counted the number of transactions made on this ATM on each of the 5 days during this week. The information she obtained is given in the following table, where the number of users represents the number of transactions on this ATM on these days. For convenience, we will refer to these transactions as “people” or “users.” Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 17.
    Example 11-3 At the1% level of significance, can we reject the null hypothesis that the number of people who use this ATM each of the 5 days of the week is the same? Assume that this week is typical of all weeks in regard to the use of this ATM. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 18.
    Example 11-3: Solution Step1: H0 : p1 = p2 = p3 = p4 = p5 = .20 H1 : At least two of the five proportions are not equal to .20 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 19.
    Example 11-3: Solution Step2: There are 5 categories  5 days on which the ATM is used  Multinomial experiment We use the chi-square distribution to make this test. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 20.
    Example 11-3: Solution Step3: Area in the right tail = α = .01 k = number of categories = 5 df = k – 1 = 5 – 1 = 4 The critical value of χ2 = 13.277 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 21.
    Figure 11.4 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 22.
    Table 11.3 Calculatingthe Value of the Test Statistic Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 23.
    Example 11-3: Solution Step4: All the required calculations to find the value of the test statistic χ2 are shown in Table 11.3. 2 2 ( ) 23.184 O E E      Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 24.
    Example 11-3: Solution Step5: The value of the test statistic χ2 = 23.184 is larger than the critical value of χ2 = 13.277.  It falls in the rejection region Hence, we reject the null hypothesis. We state that the number of persons who use this ATM is not the same for the 5 days of the week. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 25.
    Example 11-4  Ina 2011 Time/Money Magazine survey, Americans age 18 years and older were asked if “we are less sure that our children will achieve the American dream.” Of the respondents, 65% said yes, 29% said no, and 6% said that they did not know (Time, October 10, 2011). Assume that these percentages hold true for the 2011 population of Americans age 18 years and older. Recently 1000 randomly selected Americans age 18 years and older were asked the same question. The following table lists the number of Americans in this sample who made the respective response. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 26.
    Example 11-4 Test ata 2.5% level of significance whether the current distribution of opinions is different from that for 2011. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 27.
    Example 11-4: Solution Step1: H0 : The current percentage distribution of opinions is the same as for 2011. H1 : The current percentage distribution of opinions is different from that for 2011. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 28.
    Example 11-4: Solution Step2: There are 3 categories  Multinomial experiment We use the chi-square distribution to make this test. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 29.
    Example 11-4: Solution Step3: Area in the right tail = α = .025 k = number of categories = 3 df = k – 1 = 3 – 1 = 2 The critical value of χ2 = 7.378 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 30.
    Figure 11.5 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 31.
    Table 11.4 Calculatingthe Value of the Test Statistic Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 32.
    Example 11-4: Solution Step4: All the required calculations to find the value of the test statistic χ2 are shown in Table 11.4. 𝝌𝟐 =∑ (𝑶− 𝑬)𝟐 𝑬 =𝟑.𝟓𝟗𝟎 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 33.
    Example 11-4: Solution Step5: The value of the test statistic χ2 = 3.590 is smaller than the critical value of χ2 = 7.378  It falls in the nonrejection region Hence, we fail to reject the null hypothesis. We state that the current percentage distribution of opinions is the same as for 2011. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 34.
    Case Study 11-1Are People on Wall Street Honest and Moral? Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 35.
    A TEST OFINDEPENDENCE OR HOMOGENEITY  Often we have information on more than one variable for each element. Such information can be summarized and presented using a two-way classification table, which is called a contingency table or cross-tabulation. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 36.
    A TEST OFINDEPENDENCE OR HOMOGENEITY  A Test of Independence  A Test of Homogeneity Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 37.
    A Test ofIndependence  Definition  A test of independence involves a test of the null hypothesis that two attributes of a population are not related. The degrees of freedom for a test of independence are  df = (R – 1)(C – 1)  where R and C are the number of rows and the number of columns, respectively, in the given contingency table. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 38.
     Test Statisticfor a Test of Independence  The value of the test statistic χ2 for a test of independence is calculated as  where O and E are the observed and expected frequencies, respectively, for a cell. A Test of Independence 2 2 ( ) O E E    Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 39.
    Example 11-5  Violenceand lack of discipline have become major problems in schools in the United States. A random sample of 300 adults was selected, and these adults were asked if they favor giving more freedom to schoolteachers to punish students for violence and lack of discipline. The two-way classification of the responses of these adults is represented in the following table. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 40.
     Calculate theexpected frequencies for this table, assuming that the two attributes, gender and opinions on the issue, are independent. Example 11-5 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 41.
    Example 11-5: Solution Table11.6 Observed Frequencies Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 42.
    Expected Frequencies fora Test of Independence  The expected frequency E for a cell is calculated as (Row total)(Column total) sample size E  Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 43.
    Example 11-5: Solution Table11.7 Observed and Expected Frequencies Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 44.
    Example 11-6  Reconsiderthe two-way classification table given in Example 11-5. In that example, a random sample of 300 adults was selected, and they were asked if they favor giving more freedom to schoolteachers to punish students for violence and lack of discipline. Based on the results of the survey, a two-way classification table was prepared and presented in Example 11-5. Does the sample provide sufficient information to conclude that the two attributes, gender and opinions of adults, are dependent? Use a 1% significance level. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 45.
    Example 11-6: Solution Step1: H0: Gender and opinions of adults are independent H1: Gender and opinions of adults are dependent Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 46.
    Example 11-6: Solution Step2: We use the chi-square distribution to make a test of independence for a contingency table. Step 3: α = .01 df = (R – 1)(C – 1) = (2 – 1)(3 – 1) = 2 The critical value of χ2 = 9.210 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 47.
    Figure 11.6 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 48.
    Table 11.8 Observedand Expected Frequencies Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 49.
    Example 11-6: Solution            2 2 2 2 2 2 2 2 ( ) 93 105.00 70 59.50 12 10.50 105.00 59.50 10.50 87 75.00 32 42.50 6 7.50 75.00 42.50 7.50 1.371 1.853 .214 1.920 2.594 .300 8.252 O E E                        Step 4: Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 50.
    Example 11-6: Solution Step5: The value of the test statistic χ2 = 8.252  It is less than the critical value of χ2 = 9.210  It falls in the nonrejection region Hence, we fail to reject the null hypothesis. We state that there is not enough evidence from the sample to conclude that the two characteristics, gender and opinions of adults, are dependent for this issue. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 51.
    Example 11-7  Aresearcher wanted to study the relationship between gender and owning cell phones. She took a sample of 2000 adults and obtained the information given in the following table.  At the 5% level of significance, can you conclude that gender and owning cell phones are related for all adults? Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 52.
    Example 11-7: Solution Step1: H0: Gender and owning a cell phone are not related H1: Gender and owning a cell phone are related Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 53.
    Example 11-7: Solution Step2: We are performing a test of independence We use the chi-square distribution Step 3: α = .05. df = (R – 1)(C – 1) = (2 – 1)(2 – 1) = 1 The critical value of χ2 = 3.841 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 54.
    Figure 11.7 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 55.
    Table 11.9 Observedand Expected Frequencies Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 56.
    Example 11-7: Solution        2 2 2 2 2 2 ( ) 640 588.60 450 501.40 588.60 501.40 440 491.40 470 418.60 491.40 481.60 4.489 5.269 5.376 6.311 21.445 O E E                  Step 4: Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 57.
    Example 11-7: Solution Step5: The value of the test statistic χ2 = 21.445  It is larger than the critical value of χ2 = 3.841  It falls in the rejection region Hence, we reject the null hypothesis. We state that there is strong evidence from the sample to conclude that the two characteristics, gender and owning cell phones, are related for all adults. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 58.
    A Test ofHomogeneity  Definition  A test of homogeneity involves testing the null hypothesis that the proportions of elements with certain characteristics in two or more different populations are the same against the alternative hypothesis that these proportions are not the same. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 59.
    Example 11-8  Considerthe data on income distributions for households in California and Wisconsin given in Table 11.10. Using the 2.5% significance level, test the null hypothesis that the distribution of households with regard to income levels is similar (homogeneous) for the two states. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 60.
    Example 11-8  Table11.10 Observed Frequencies Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 61.
    Example 11-8: Solution Step1: H0: The proportions of households that belong to different income groups are the same in both states H1: The proportions of households that belong to different income groups are not the same in both states Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 62.
    Example 11-8: Solution Step2: We use the chi-square distribution to make a homogeneity test. Step 3: α = .025 df = (R – 1)(C – 1) = (3 – 1)(2 – 1) = 2 The critical value of χ2 = 7.378 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 63.
    Figure 11.8 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 64.
    Table 11.11 Observedand Expected Frequencies Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 65.
    Example 11-8: Solution            2 2 2 2 2 2 2 2 ( ) 70 65 34 39 80 75 65 39 75 40 45 100 110 76 66 45 110 66 .385 .641 .333 .566 .909 1.515 4.339 O E E                        Step 4: Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 66.
    Example 11-8: Solution Step5: The value of the test statistic χ2 = 4.339  It is less than the critical value of χ2  It falls in the nonrejection region Hence, we fail to reject the null hypothesis. We state that the distribution of households with regard to income appears to be similar (homogeneous) in California and Wisconsin. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 67.
    INFERENCES ABOUT THEPOPULATION VARIANCE  Estimation of the Population Variance  Hypothesis Tests About the Population Variance Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 68.
    INFERENCES ABOUT THEPOPULATION VARIANCE  Sampling Distribution of (n – 1)s2 / σ2  If the population from which the sample is selected is (approximately) normally distributed, then  has a chi-square distribution with n – 1 degrees of freedom. 2 2 ( 1) n s   Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 69.
    Estimation of thePopulation Variance  Confidence interval for the population variance σ2  Assuming that the population from which the sample is selected is (approximately) normally distributed, we obtain the (1 – α)100% confidence interval for the population variance σ2 as 1 / 2 2 2 2 2 / 2 ( 1) ( 1) to n s n s        Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 70.
    Estimation of thePopulation Variance  where and are obtained from the chi-square distribution for α /2 and 1- α /2 areas in the right tail of the chi-square distribution curve, respectively, and for n-1 degrees of freedom. The confidence interval for the population standard deviation can be obtained by simply taking the positive square roots of the two limits of the confidence interval for the population variance. 2 / 2   2 1 / 2    Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 71.
    Example 11-9  Onetype of cookie manufactured by Haddad Food Company is Cocoa Cookies. The machine that fills packages of these cookies is set up in such a way that the average net weight of these packages is 32 ounces with a variance of .015 square ounce. From time to time the quality control inspector at the company selects a sample of a few such packages, calculates the variance of the net weights of these packages, and constructs a 95% confidence interval for the population variance. If either both or one of the two limits of this confidence interval is not in the interval .008 to .030, the machine is stopped and adjusted. A recently taken random sample of 25 packages from the production line gave a sample variance of .029 square ounce. Based on this sample information, do you think the machine needs an adjustment? Assume that the net weights of cookies in all packages are normally distributed. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 72.
    Example 11-9: Solution Step1: n = 25 and s2 = .029 Step 2: α = 1 - .95 = .05 α/2 = .05/2 = .025 1 – α/2 = 1 – .025 = .975 df = n – 1 = 25 – 1 = 24 χ2 for 24 df and .025 area in the right tail = 39.364 χ2 for 24 df and .975 area in the right tail = 12.401 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 73.
    Figure 11.9 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 74.
    Example 11-9: Solution 1/ 2 2 2 2 2 / 2 ( 1) ( 1) to (25 1)(.029) (25 1)(.029) to 39.364 12.401 .0177 to .0561 n s n s          Step 3: Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 75.
    Example 11-9: Solution Thus, with 95% confidence, we can state that the variance for all packages of Cocoa Cookies lies between .0177 and .0561 square ounce.  We can obtain the confidence interval for the population standard deviation σ by taking the positive square roots of the two limits of the above confidence interval for the population variance. Thus, a 95% confidence interval for the population standard deviation is .133 to .237. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 76.
    Hypothesis Tests Aboutthe Population Variance  Test statistic for a Test of Hypothesis About σ2  The value of the test statistic χ2 is calculated as  where s2 is the sample variance, σ2 is the hypothesized value of the population variance, and n – 1 represents the degrees of freedom. The population from which the sample is selected is assumed to be (approximately) normally distributed. 2 2 2 ( 1) n s     Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 77.
    Example 11-10  Onetype of cookie manufactured by Haddad Food Company is Cocoa Cookies. The machine that fills packages of these cookies is set up in such a way that the average net weight of these packages is 32 ounces with a variance of .015 square ounce. From time to time the quality control inspector at the company selects a sample of a few such packages, calculates the variance of the net weights of these packages, and makes a test of hypothesis about the population variance. She always uses α = .01. The acceptable value of the population variance is .015 square ounce or less. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 78.
    Example 11-10  Ifthe conclusion from the test of hypothesis is that the population variance is not within the acceptable limit, the machine is stopped and adjusted. A recently taken random sample of 25 packages from the production line gave a sample variance of .029 square ounce. Based on this sample information, do you think the machine needs an adjustment? Assume that the net weights of cookies in all packages are normally distributed. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 79.
    Example 11-10: Solution Step1: H0 :σ2 ≤ .015 (The population variance is within the acceptable limit) H1: σ2 >.015 (The population variance exceeds the acceptable limit) Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 80.
    Example 11-10: Solution Step2: We use the chi-square distribution to test a hypothesis about σ2 Step 3: α = .01. df = n – 1 = 25 – 1 = 24 The critical value of χ2 = 42.980 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 81.
    Figure 11.10 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 82.
    Example 11-10: Solution 2 2 2 (1) (25 1)(.029) 46.400 .015 n s        From H0 Step 4: Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 83.
    Example 11-10: Solution Step5: The value of the test statistic χ2 = 46.400  It is greater than the critical value of χ 2  It falls in the rejection region Hence, we reject the null hypothesis H0 We conclude that the population variance is not within the acceptable limit. The machine should be stopped and adjusted. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 84.
    Example 11-11  Thevariance of scores on a standardized mathematics test for all high school seniors was 150 in 2011. A sample of scores for 20 high school seniors who took this test this year gave a variance of 170. Test at the 5% significance level if the variance of current scores of all high school seniors on this test is different from 150. Assume that the scores of all high school seniors on this test are (approximately) normally distributed. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 85.
    Example 11-11: Solution Step1: H0: σ2 = 150 (The population variance is not different from 150) H1: σ2 ≠ 150 (The population variance is different from 150) Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 86.
    Example 11-11: Solution Step2: We use the chi-square distribution to test a hypothesis about σ2 Step 3: α = .05 Area in each tail = .025 df = n – 1 = 20 – 1 = 19 The critical values of χ2 = 32.852 and 8.907 Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 87.
    Figure 11.11 Prem Mann,Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 88.
    Example 11-11: Solution 2 2 2 (1) (20 1)(170) 21.533 150 n s        From H0 Step 4: Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 89.
    Example 11-11: Solution Step5: The value of the test statistic χ2 = 21.533  It is between the two critical values of χ2  It falls in the nonrejection region Consequently, we fail to reject H0. We conclude that the population variance of the current scores of high school seniors on this standardized mathematics test does not appear to be different from 150. Prem Mann, Introductory Statistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 90.
    TI-84 Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 91.
    TI-84 Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 92.
    TI-84 Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 93.
    TI-84 Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 94.
    TI-84 Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 95.
    TI-84 Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 96.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 97.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 98.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 99.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 100.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 101.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 102.
    Minitab Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 103.
    Excel Prem Mann, IntroductoryStatistics, 8/E Copyright © 2013 John Wiley & Sons. All rights reserved.
  • 104.
    Uji keselarasan fungsi (goodness-of-fittest) Soal uji keselarasan fungsi Mikroprosesor “P”, “D” dan “C” selama ini masing-masing menguasai 50%, 30%, dan 20% mikroprosesor untuk keperluan pribadi (personal komputer). Pembuat mikroprosesor “C” baru saja meluncurkan produk seri terbaru mikroprosesornya dan ingin mengetahui perkiraan tanggapan pasar atas produk baru tersebut.
  • 105.
    Uji keselarasan fungsi (goodness-of-fittest) Perusahaan tersebut mengadakan survey dengan mengambil sampel acak sebanyak 200 pengguna komputer pribadi yang familier dengan produk seri baru “C” dan juga mikroprosesor pesaing yang lainnya. Perusahaan ini ingin mengetahui apakah produk barunya ini akan mengubah persentase pangsa pasar mikroprosesor. Data survey adalah sebagai berikut: 74 memilih mikroprosesor “P”, 62 memilih “D” dan 64 memilih “C” seri baru. Ujilah dengan α = 5% hipotesa untuk kasus diatas !
  • 106.
    Uji Tabel Kontingensi SoalUji tabel kontingensi Untuk merencanakan arah pengembanngan kurikulum pendidikan teknik berikutnya, perhimpunan badan pengembanngan pendidikan teknik antar universitas mengadakan survey untuk mengetahui kebutuhan sarjana teknik di bidang industri di tiga daerah. Tujuan penelitian ini untuk mengetahui ketergantungan kebutuhan sarjana teknik pada daerah dan bidang-bidang tertentu yang diutamakan. Hasil survey dengan menanyakan secara acak 310 perusahaan industri di ke 3 kota memberikan data sebagaimana yang diberikan dalam tabel kontingensi berikut :
  • 107.
    Uji Tabel Kontingensi DaerahIndst per- tanian Indust manu- faktur Indust per-tam- bangan Jum- lah baris A 50 40 35 125 B 30 45 25 100 C 20 45 20 85 Jumlah kolom 100 130 80 Jumlah total = 310
  • 108.
    Uji Tabel Kontingensi Pertanyaan: Ujilahhipotesa dengan α = 5% untuk kasus diatas !