Docsity

Statistics ch.13 pdf, Lecture notes of Statistics

Toggle sidebar
bg1
Quantitative Methods BMTH 2001 Week#11
Winter 2025 Page #1
Chapter 13A– Goodness of Fit Tests and Contingency Analysis
Goodness-of-fit test is a statistical technique that is used to find whether the actual data from a
process fit a particular probability distribution. For example, this test can be used to know
whether technical support calls equal across all days of the week. If the sample data, closely
match what would be expected from a population having the hypothesized distribution, the
hypothesis is supported. The Chi-square test statistic is used for this purpose. It is calculated
using the following formula.
Where
oi = observed value for the ith category.
ei = expected value of the ith category
k = number of categories.
Sample size should be large enough so that all ei values are > 5. Categories should be combined
to generate large enough expected category values if sample size can’t be increased
Exercise 1: Use a chi-square goodness of fit test to determine whether the observed frequencies
are distributed the same as the expected frequencies. (α = 0.05)
Category
Observed (oi)
Expected (ei)
Oi - Ei
(Oi – Ei)^2
(Oi – Ei)^2 / Ei
1
53
68
-15
225
3.309
2
37
42
-5
25
0.595
3
32
33
-1
1
0.030
4
28
22
6
36
1.636
5
18
10
8
64
6.400
6
15
8
7
49
6.125
Totals →
183
183
18.095
= 18.095
2
2
1
()
kii
ii
oe
e
=
−
=
2
2
1
()
kii
ii
oe
e
=
−
=
pf3
pf4
pf5

Partial preview of the text

Download Statistics ch.13 pdf and more Lecture notes Statistics in PDF only on Docsity!

Chapter 13A – Goodness of Fit Tests and Contingency Analysis Goodness-of-fit test is a statistical technique that is used to find whether the actual data from a process fit a particular probability distribution. For example, this test can be used to know whether technical support calls equal across all days of the week. If the sample data, closely match what would be expected from a population having the hypothesized distribution, the hypothesis is supported. The Chi-square test statistic is used for this purpose. It is calculated using the following formula. Where

oi = observed value for the ith category.

ei = expected value of the ith category

k = number of categories.

Sample size should be large enough so that all e i values are > 5. Categories should be combined to generate large enough expected category values if sample size can’t be increased Exercise 1: Use a chi-square goodness of fit test to determine whether the observed frequencies are distributed the same as the expected frequencies. (α = 0.05) Category Observed (oi) Expected (ei) Oi - Ei (Oi – Ei)^2 (Oi^ –^ Ei)^2^ / Ei 1 53 68 - 15 225 3. 309 2 37 42 - 5 25 0. 3 32 33 - 1 1 0. 4 28 22 6 36 1. 5 18 10 8 64 6. 6 15 8 7 49 6. Totals → 183 183 18. = 18. 2 2 1 ( ) k i i i (^) i o e e

= −

2 2 1 ( ) k i i i (^) i o e e  = −

Critical χ²: Alpha = 0.05, d.f. = k - 1 = 6-1 = 5 Critical χ² = 11.0705 (chi square table) Hypothesis:

  • Ho: The observed distribution is the same as the expected distribution
  • Ha: The observed distribution is not the same as the expected distribution Conclusion:
  • Since the observed χ² = 18.095 is more than the critical χ² = 11.0705, we reject the null hypothesis. Observed frequencies are not distributed the same way as the expected frequencies. Exercise 2 Use the following data and α= 0.01 to determine whether the observed frequencies represent a uniform distribution. Category Observed (oi) Expected (ei) Oi - Ei (Oi – Ei)^2 (Oi^ –^ Ei)^2 / Ei 1 19 18 1 1 0. 2 17 18 - 1 1 0. 3 14 18 - 4 16 0. 4 18 18 0 0 0. 5 19 18 1 1 0. 6 21 18 3 9 0. 7 18 18 0 0 0. 8 18 18 0 0 0. Totals → 144 144 1. Expected values: 144 / 8 = 18 (if expected values are not given) Hypothesis: Ho: The observed frequencies are uniformly distributed Ha: The observed frequencies are not uniformly distributed

Conclusion:

  • Since χ² = 35.725 > Critical χ² =11.0705, we reject the null hypothesis Exercise 4 Based on the sample data in the following frequency distribution, conduct a test to determine whether the population from which the sample data were selected is Poisson distributed with mean equal to 6. Test using α = 0.05. x Frequency (oi) Poisson Probabilities^ Ei 2 or less 7 0.062 31. 3 29 0.0892 44. 4 26 0.1339 66. 5 52 0.1606 80. 6 77 0.1606 80. 7 77 0.1377 68. 8 72 0.1033 51. 9 53 0.0688 34. 10 35 0.0413 20. 11 28 0.0225 11. 12 18 0.0113 5. 13 13 0.0052 2. 14 or more 13 0.0036 1. Total 500 1 500 Poisson Probabilities: Use Poisson distribution table at 6
  • 2 or less: 0.0025 + 0.0149 + 0.0446 = 0.062 (add up the values that correspond with the needed x values and the 6.0 column)
  • 3 = 0.0892 (align x value = 3 and Poisson = 6.0 on chart) Expected values (ei): multiply Poisson values by total of frequency (500). Ho: The population from which the sample is taken is poisson distributed with a mean of 6 Ha: The population from which the sample is taken is not poisson distributed with a mean of 6

Combine 12, 13, and 14 or more because the ei for 13 and 14 or more are less than 5: x Frequency Poisson Probabilities^ Ei 2 or less 7 0.062 31. 3 29 0.0892 44. 4 26 0.1339 66. 5 52 0.1606 80. 6 77 0.1606 80. 7 77 0.1377 68. 8 72 0.1033 51. 9 53 0.0688 34. 10 35 0.0413 20. 11 28 0.0225 11. 12 or more 44 0.0201 10. Poisson Probabilities

  • 12 or more: 0.0113 + 0.0052 + 0.0036 = 0.0201 (add up the values of 12 or more from previous table, same with frequency and ei) x Frequency Ei Oi - Ei (Oi – Ei)^2 (Oi^ –^ Ei)^2 / Ei 2 or less 7 31.00 -^24 576 18. 3 29 44.60^ - 15.6^ 243.36^ 5. 4 26 66.95^ - 40.95^ 1676.90^ 25. 5 52 80.30^ - 28.30^ 800.^89 9. 6 77 80.30 - 3.30^ 10.89^ 0. 7 77 68.85 8.15^ 66.42^ 0. 8 72 51.65^ 20.35^ 414.12^ 8. 9 53 34.40^ 18.60^ 345.96^ 10. 10 35 20.65 14.^35 205.92^ 9. 11 28 11.25 16.75^ 280.56^ 24. 12 or more

33.95 1152.60 114.6 8657