Lecture 13-14-15 Chi - Square Test
Lecture 13-14-15 Chi - Square Test
Data
1. Goodness-of-Fit Test
Many experiments result in measurements that are
qualitative or categorical rather than quantitative.
◦ People classified by ethnic origin
◦ Cars classified by color
These data sets have the characteristics of a
multinomial experiment.
m m m
The Multinomial m
m m
Experiment
1. The experiment consists of n identical trials.
2. Each trial results in one of k categories.
3. The probability that the outcome falls into a
particular category i on a single trial is pi and
remains constant from trial to trial. The sum of
all k probabilities, p1+p2 +…+ pk = 1.
4. The trials are independent.
5. We are interested in the number of outcomes in
each category, O1, O2 ,… Ok with O1 + O2 +… +
Ok = n.
The Binomial Experiment
A special case of the multinomial experiment with k = 2.
Categories 1 and 2 : success and failure
p1 and p2 : p and q
O1 and O2: : x and n-x
We made inferences about p (and q = 1 - p)
Upper Face 1 2 3 4 5 6
Number of times 50 39 45 62 61 43
Ei 50 50 50 50 50 50
Do the data present sufficient evidence to indicate that the fraction of voters
favoring candidate A differs in the four wards?
Ward 1 2 3 4
Favor A 76/200=.38 53/200 = .27 59/200 = .30 48/200 = .24