Test For Goodness of Fit
Test For Goodness of Fit
Test For Goodness of Fit
Fit
Section 14.1
A New Test
In the previous chapter, we learned how to compare two
population proportions. Sometimes, though, we want to
examine the distribution of proportions in a single
population.
The chi-square goodness-of-fit (GOF) test allows us to
determine whether a specified population distribution
seems valid.
We can compare two or more population proportions
using a chi-square test for homogeneity.
We can also determine whether the distribution of one
variable has been influenced by another variable using a
chi-square test of association/independence.
Some Examples
The methods of this chapter will help us
answer questions such as:
Are you more likely to have a car accident when
using a cell phone?
E
The larger the difference between the observed
and expected counts, the larger X2 will be, and the
more evidence there will be against H0.
The Chi-Square Distribution
The shape of the specific chi-square
distribution used to assess the evidence against
H0 is determined by the degrees of freedom. In
a chi-square GOF test, the df = (the number of
categories – 1).
Various Chi-Square Distributions
The Chi-Square GOF Test
1. Name of test: 2 GOF
5. Interpretation in context
Example: A Fair Die?
Suppose you roll a die 60 times and get 12 ones,
9 twos, 10 threes, 6 fours, 11 fives, and 12
sixes. Do you have evidence that the die is
unfair?
What Did You Expect?
Observed Expected
Outcome
Count, O Count, E
1 12 10
2 9 10
3 10 10
4 6 10
5 11 10
6 12 10
Total 60 60
Is It All in the Genes?
One of the most common applications of the chi-square
GOF test is in the field of genetics. Scientists want to
investigate the genetic characteristics of offspring that
result from mating parents with known genetic make-
ups. They use rules about dominant and recessive genes
to predict the ratio of offspring that will fall into each
possible genetic category. Then the researchers mate the
parents and classify the resulting offspring. The chi-
square GOF test helps the scientists assess the validity
of their hypothesized ratios.
Red-Eyed Fruit Flies
Biologists wish to mate two fruit flies having
genetic make-up RrSs (R = red eyed, r = white
eyed, S = straight-winged, and s = curly-
winged.)