You are on page 1of 3

CHI-SQUARE GOODNESS OF FIT

TEST

Example:Researcher have conducted a survey of 1,500 Soda drinkers asking how much soda they drinks
in order to confirm previous studies.have indicated that 72% of malasians drink soda. below are the
result of previous studies (left)and the survey (right) at 0.05 is there enough evidence to conclude that
the distribution are the same?

Response % of soda drinkers Response


2 Bottle per week 16% 2 Bottle per week
1 Bottle per week 14% 1 Bottle per week
1 Bottle per day 27% 1 Bottle per week
2+ Bottle per day 45% 2+ Bottle per day

Respones % of soda drinkers E O


2 Bottle per week 16% 0.16X1,500=240 200
1 Bottle per week 14% 0.14X1,500=210 199
1 Bottle per week 27% 0.27X1,500=405 471
2+ Bottle per day 45% 0.45X1,500=675 630

A.The null hypothesis Hₒ: The populationof frequency are not equal to the expected frequencies.
B.The alternative hypothesis is Hₐ: the null hypothesis is true.
C.a=0.05
D.The degrees of freedom :k-1=4-1=3
E.The test statistic can be calculated using the table below.
F.From a=0.05 and k-1=3 the critical values is 7.815
G.
ng how much soda they drinks
s drink soda. below are the
gh evidence to conclude that

Frequency
200
199
417
630

(O-E) (O-E)² (O-E)²/E


-40 1,600 6.67
-11 121 0.576
66 4,356 10.755
-45 2,025 3

cted frequencies.
CHI-SQUARE
INDEPENDENCE TEST

Example:Suppose that we have a 6 digit die.we assume that the die is


unbiased (upon the rolling the die, each outcome is equal likely) An
experiment is conducted in which the die is rolled 240 times. the
outcome in the table below. at a significance level of a=0.05 is there
enough evidence to support the hypothesis that the die is unbiased.

Outcome 1 2 3 4 5 6
Frequency 34 44 30 46 51 35

Face E 0 O-E (O-E)² (O-E)²/E


1 240/6=40 34 -6 36 0.9
2 240/6=41 44 4 16 0.4
3 240/6=42 30 -10 100 2.5
4 240/6=43 46 6 36 0.9
5 240/6=44 51 11 121 3.025
6 240/6=45 35 -5 25 0.625

A.The null hypothesis Hₒ: Eachface is equally likely to be outcome of asingle roll.
B.The alternative hypothesis is Hₐ: the null hypothesis is false.
C.a=0.05
D.The degrees of freedom :k-1=6=1=5
E.The test statistic can be calculated using the table below.
F.From a=0.05 and k-1=6, the critical values is 15.086.
G.is there enough evidence to reject Hₒ? since

You might also like