Additional Exercise - Test of Independence
Additional Exercise - Test of Independence
1 Marie Claire asked 50 of her friends which flavour of ice cream (vanilla, chocolate or
strawberry) they preferred. Her results are in the table below.
Male 15 3 7
Female 6 13 6
Marie Claire decided to perform a chi-squared test at the 5% significance level to find out if
favourite flavour was independent of gender or not.
2 Akiko was interested to find out if there was a relationship between gender and favourite colour
of car. She sent out a survey to her friends and collected the following data.
Male 15 7 21 12
Female 18 19 6 10
She decides to perform a chi-squared test at the 5% significance level to find out if favourite
colour of car was independent of gender.
c Show that the expected value for a female liking red the best is 13.25.
e If the critical value is 7.815, write down the conclusion for this test.
3 Noah looked at the games of 30 left-hand tennis players and 30 right-hand tennis players. He
counted the number of times that the first serve was in during the first game. The table shows
his results.
LH 16 8 4 12 5 9 11 10 18 8 16 17 11 10 16
LH 12 11 8 9 17 6 15 15 17 10 11 9 10 7 20
RH 15 12 8 11 19 10 7 15 17 19 20 13 8 9 12
RH 11 10 7 18 17 6 12 10 9 18 4 17 12 16 15
a Find the mean and standard deviation of all the above data.
Noah plans to test if the number of first serves in is independent of whether the player is left-
handed or right-handed. He will use a chi-squared test at the 1% significance level.
Left-handed
Right-handed
Totals
d Show that the expected number of right-handed players who get less than 10 first serves in
is 9.
Answers
b 2
25 × 16
c =8
50
e 0.00615 < 0.05 so she will reject the null hypothesis. Favourite flavour of ice cream is not
independent of gender.
b 3 degrees of freedom
53 × 27
c = 13.25
108
e 14.3 > 7.815 so do not accept the null hypothesis. Or 0.00253 < 0.05, so do not accept the
null hypothesis. Favourite colour of car is not independent of gender.
Left-handed 10 10 10 30
Right-handed 8 10 12 30
Totals 18 20 22 60
c H0: the number of first serves in is independent of whether the player is left-handed or
right-handed.
H1: the number of first serves in is not independent of whether the player is left-handed or
right-handed.
30 × 18
d =9
60
e 2 degrees of freedom
g 0.404 < 9.21 so you accept the null hypothesis or 0.817 > 0.01 so you accept the null
hypothesis. the number of first serves in is independent of whether the player is left-handed
or right-handed.