Test For Goodness of Fit
Test For Goodness of Fit
interval. The result defines the regions of rejection. This requires determining the the
24 degrees of freedom (n = 25, df =n- 1), the -value is 2.064. The critical yalueconoftdet.ncFore
values are
5
Lower limit = u - S, = 20 -
2.06425)
=20 - 2.064(1)
= 17.936
5
Upper limit = pt s, = 20 + 2.064|
= 20 + 2.064(1)
= 22.064
Finally,the researcher makes the statistical decision by determining whether the samal.
between the critical limits. For the pizza store sample, X = 22. The sample mean is mean falk
in the region of rejection. Even though the sample result is only slightly less than the not incuded
at the upper limit, the null hypothesis cannot be rejected. In other words, the pizzacritical value
ager's assumption appears to be correct. store man-
As with the Z-test, there is an alternative way to test a hypothesis with the
by using the formula t-statistic. This is
obs
S
obs
=
22201
We can see that the observed t-value is less than the critical
=2
t-value of 2.064 at the 0,05 level wha
there are 25 - 1 = 24 degrees of freedom. As a result, the
p-value is greater than 0.05 and the
hypothesis is not supported. We cannot conclude with 95 percent confidence that the mean is
not 20.
Location
One-Way Frequency Table
Stand-Alone 60 stores
Shopping Center 40 stores
Total 100 stores
Chapter21: Unival| alysis
= 4
RESE ARCHSNA P H O T
computed as shown
Interested in Retirement? It Often Depends on Your The y' value can be
Age below:
Chi-square tests are used often in business research. Consider
a business that sponsors a program to educate employees on
retirement issues. They need to plan the number and types of
activities that should be the focus of the training and develop
ment seminars. One question is whether or not an equal number
of younger versus older employees will come to the sessions. Expected Observed O-E (0- EY (0- EYIE
They decide to observe the relative frequencies of younger ver -22 484
sus older employees based upon the number of sign-ups they Younger 100 78 48A
122 22 484 484
receive in the first week since the program was announced, with Older 100
a cut-off set at 200. The results are shown in the bar chart below: 968
120
The HR managers want to be sure a difference exists before inyect.
100 ing resources into activities designed for younger or older employ.
80 ees only. Therefore, the acceptable levelof Type l error is set at 0.01
Rather than referring to acritical value table, the p-value associated
60 Younger with ay²value and the associated degrees of freedom can be found
D
Older Internet
40 on any one of several statistical calculators found on the
In this case, the researcher uses the calculator found at http://facuty
20 vassar.edu/lowry/tabs.html#csq. By simply plugging in the observed
0
value of 96.8 and the number of degrees of freedom as indicated. 1
Expected Observed in this case, the calculator returns a p-value. In this case, the p-value
OFLIRT/JUPITER
IMAGES returned is less than 0.0001. Therefore, since the p-value is less than
the acceptable levelof risk, the researcher reaches the conclusion
that the older workers are much more likely to attend the retirement
seminar. They can design the seminar to meet the needs associated
with the number and type of attendees.
Location:
(0, E)
(0,E
Stand-Alone 60 50 10 100/50 = 2.0
Shopping Center 40 50
-10 100/50 = 2.0
Like many other probability distributions, the x² distribution is not a single probability
but a family of curves. These curves vary slightly with the degrees of cunc
degrees of freedom can be computed as
freedom. In this case, i
df= k- 1
where
k= number of cells associated with
column or row data.
Thus, the degrees of freedom equal 1 (df =2-1= 1).
Now the computed y' value needs to be compared with the critical chi-square values associ-
ated with the 0.05 probability level with 1 degree of freedom. In Table A.4 of the appetl-
dix the critical x' value is 3.84. Since the calculated y² is larger than the tabular chi-square,
the conclusion is that the observed values do not equal the expected values. Therefore, the
hypothesis is supported. More Papa John's restaurants are located in stand-alone locations.
We discuss the chi-square test further in Chapter 20 as it is also frequently Used to analyzecon-
tingency tables.
554