Goodness of Fit Test
Goodness of Fit Test
There are multiple methods for determining goodness-of-fit. Some of the most popular
methods used in statistics include the following:
Chi-square Anderson-Darling test
Kolmogorov-Smirnov test Shipiro-Wilk test.
KEY TAKEAWAYS
Goodness-of-fit tests are statistical tests aiming to determine whether a set of
observed values match those expected under the applicable model.
There are multiple types of goodness-of-fit tests, but the most common is the chi-
square test.
These tests can show you whether your sample data fit an expected set of data
from a population with normal distribution.
Since the frequencies for each flavour were obtained from a sample, these actual
frequencies are called Observed Frequencies.
The frequencies obtained by calculation (as if there were no preference) are
called the Expected Frequencies.
Solution:
STEP 1: State the hypothesis and define the claim.
Ho – Consumers show no preference for flavors (claim)
Ha – Consumers show a preference
Step 2: Find the critical value.
df = number of categories – 1
df = 5 – 1
df = 4
df = 4, and a = 0.05, hence, the critical value from the chi-square distribution table is
9.488.
X2 = (32 – 20) 2 + (28 – 20) 2 + (16 – 20) 2 + (14 – 20) 2 + (10 – 20) 2
20 20 20 20 20
2 2 2 2 2
X = (12) + (8) + (- 4) + (-6) + (-10)2
20 20 20 20 20
2
X = 144 + 64 + 16 + 36 + 100
20 20 20 20 20
2
X = 7.2 + 3.2 + 0.8 + 1.8 + 1.5
X2 = 18