Hypothesis Testing using the Chi-squared Distribution (DP IB Applications & Interpretation (AI): HL): Exam Questions

4 hours24 questions
1a
2 marks

A χ2 test for independence is carried out to test whether eye colour (blue, green or brown) and hair colour (blond, red, brown or black) are independent. The test is carried out at the 10% significance level.

State the null and alternative hypotheses.

1b
2 marks

Find the number of degrees of freedom for this test.

1c
2 marks

The p-value for this test is 0.0726.

State the conclusion of the test. Give a reason for your answer.

1a
2 marks

A school in Copenhagen wants to find out whether students' favourite music genre is independent of whether they play a musical instrument. 400 students were asked whether they play a musical instrument and to choose their favourite genre from four options. The results are shown in the table below.

Pop

Rock

Classical

Rap

Plays an instrument

58

63

17

44

Does not play an instrument

23

96

12

87

A χ2 test for independence is carried out at the 5% significance level. The critical value for this test is 7.815.

State the null and alternative hypotheses for this test.

1b
1 mark

Write down the number of degrees of freedom for this test.

1c
2 marks

Find the χ2 statistic for this data.

1d
2 marks

State the conclusion of the test. Give a reason for your answer.

2a
1 mark

A carpet salesman is interested in how his sales are distributed over the months of the year. He records the number of carpets he sells in each of six months. The data are shown in the table.

Month

January

February

March

April

May

June

Number of carpets sold

16

12

14

20

15

19

A χ2 goodness of fit test is carried out at the 5% significance level to test whether the data fit a uniform distribution.

Write down the expected number of carpets sold in each month if the data fit a uniform distribution.

2b
2 marks

State the null and alternative hypotheses.

2c
1 mark

Write down the number of degrees of freedom for this test.

2d
2 marks

Find the p-value for this test.

2e
2 marks

State the conclusion of the test. Give a reason for your answer.

3a
1 mark

A supermarket is interested in how applications for its loyalty scheme are spread over the working week. The numbers of applications received on each day of one week are recorded in the table.

Day

Monday

Tuesday

Wednesday

Thursday

Friday

Number of applications

473

405

512

467

503

The supermarket expects the applications to follow a uniform distribution. A χ2 goodness of fit test is carried out at the 10% significance level. The critical value for this test is 7.779.

Write down the expected number of applications on each day.

3b
2 marks

State the null and alternative hypotheses.

3c
3 marks

Write down

(i) the χ2 statistic

(ii) the p-value.

3d
2 marks

State whether the data fit a uniform distribution. Give a reason for your answer.

4a
3 marks

A survey was carried out to find out whether favourite colour is independent of age group. A group of 239 children, teenagers and adults were each asked to choose their favourite colour from red, yellow, blue and green.

The observed frequencies are recorded in the table below.

Red

Yellow

Blue

Green

Total

Children

20

11

18

8

57

Teenagers

22

14

23

20

79

Adults

26

21

30

26

103

Total

68

46

71

54

239

A χ2 test for independence is carried out at the 5% significance level. The critical value for this test is 12.592.

Complete the table of expected frequencies below. Give each value correct to one decimal place.

Red

Yellow

Blue

Green

Total

Children

57

Teenagers

79

Adults

103

Total

68

46

71

54

239

4b
2 marks

State the null and alternative hypotheses.

4c
1 mark

Write down the number of degrees of freedom for this test.

4d
2 marks

Find the χ2 statistic for this data.

4e
2 marks

State the conclusion of the test in the context of the question. Give a reason for your answer.

5a
2 marks

Juan is investigating reaction times for his Mathematics IA. He wants to find out whether a student's reaction time is independent of whether the student plays video games regularly. He selects 60 students at random from his year group, asks each student whether they play video games regularly, and records the mean time, R milliseconds, that the student takes to complete a reaction test.

Juan decides to carry out a χ2 test for independence on the data. The results are shown in the table below.

Quick
300≤R<450

Moderate
450≤R<600

Slow
600≤R<750

Very slow
750≤R<900

Total

Plays video games regularly

6

11

13

9

39

Does not play video games regularly

2

6

7

6

21

Total

8

17

20

15

60

State the null and alternative hypotheses.

5b
2 marks

Calculate the expected frequency for the number of students who do not play video games regularly and have a "Quick" reaction time.

5c
1 mark

Explain why a χ2 test carried out on the data as it is currently organised would not be valid.

5d
1 mark

Suggest how Juan could reorganise the data so that the χ2 test is valid.

6a
2 marks

An international school of 294 students in Ho Chi Minh City holds a mock election alongside the UK general election. The age, a years, of each voter is recorded on their ballot paper, along with their vote for the Conservative, Labour or Liberal party. The results are shown in the table below.

Conservative

Labour

Liberal

Total

a≤12

5

8

9

22

12<a≤14

13

33

45

91

14<a≤16

17

21

71

109

16<a≤18

11

31

30

72

Total

46

93

155

294

A χ2 test for independence is to be carried out on the data at the 10% significance level.

State the null and alternative hypotheses.

6b
3 marks

The table below shows the expected frequencies for the data.

Conservative

Labour

Liberal

Total

a≤12

3.4

7.0

11.6

22

12<a≤14

14.2

28.8

48.0

91

14<a≤16

17.1

34.5

57.5

109

16<a≤18

11.3

22.8

38.0

72

Total

46

93

155

294

(i) Explain why the table of observed frequencies should be redrawn before the test is carried out.

(ii) Redraw the table of observed frequencies by combining the results for a≤12 with those for 12<a≤14.

6c
4 marks

Use the redrawn table from part (b) to find the p-value for the test, and state the conclusion of the test. Give a reason for your answer.

7a
2 marks

126 people are surveyed as part of an investigation into whether a person's preferred sport to watch is independent of their age group. Each person is asked to choose their preferred sport to watch from football, tennis, gymnastics and swimming.

The results of the survey are shown in the table below.

Football

Tennis

Gymnastics

Swimming

Adults

23

15

18

20

Teenagers

30

12

1

7

A χ2 test for independence is carried out on the data at the 5% significance level.

State the null and alternative hypotheses.

7b
1 mark

Use the table of critical values for a significance level of 5%, given below, to write down the critical value for this test.

Degrees of freedom

Critical value

1

3.841

2

5.991

3

7.815

4

9.488

5

11.070

7c
2 marks

Find the χ2 statistic.

7d
2 marks

State the conclusion of the test. Give a reason for your answer.

8a
2 marks

A student is investigating the relationship between a country's GDP and its literacy rate for his IA. He has classified 140 countries as having low, medium or high GDP, and low, medium or high literacy rates. His results are shown in the table below.

Low literacy

Medium literacy

High literacy

Low GDP

26

15

3

Medium GDP

13

21

14

High GDP

1

11

36

He carries out a χ2 test for independence at the 5% significance level. The critical value for this test is 9.488.

State the null and alternative hypotheses.

8b
1 mark

Write down the number of degrees of freedom.

8c
6 marks

Find

(i) the χ2 statistic

(ii) the p-value.

(iii) State the conclusion of the test. Give a reason for your answer.

8d
2 marks

Describe one issue with the way the data are presented that could make the conclusion of the test difficult to interpret.

9a
1 mark

A lottery machine contains 12 coloured balls: three red, five yellow, two blue and two green. When a button is pressed, a ball is selected at random. After its colour is noted, the ball is returned to the machine.

Write down the probability that the machine selects a yellow ball.

9b
2 marks

The machine is tested for bias. A ball is selected 180 times, and the results are recorded in the table below.

Colour

Red

Yellow

Blue

Green

Observed frequency

41

72

29

38

Complete the table of expected frequencies below, if the machine is not biased.

Colour

Red

Yellow

Blue

Green

Expected frequency

9c
4 marks

A χ2 goodness of fit test is carried out at the 5% significance level.

Find the p-value for the test, and state whether the machine is biased. Give a reason for your answer.

10a
2 marks

A computer game has 5 levels. At the end of each level a magic star may appear, doubling the score for that level. A focus group plays through all 5 levels 200 times, and the number of magic stars that appear in each game is recorded. The results are shown in the table below.

Number of magic stars

0

1

2

3

4

5

Frequency

7

24

70

59

38

2

The game developer wants to investigate whether the number of magic stars in a game can be modelled by the binomial distribution B(5, 0.5). A χ2 goodness of fit test is carried out at the 10% significance level.

State the null and alternative hypotheses.

10b
3 marks

Complete the table of expected frequencies below.

Number of magic stars

0

1

2

3

4

5

Expected frequency

10c
2 marks

Write down the χ2 statistic.

10d
2 marks

The critical value for this test is 9.236.

State the conclusion of the test. Give a reason for your answer.

11a
2 marks

In healthy adults, systolic blood pressure is normally distributed with mean 112 mmHg and standard deviation 10 mmHg. A group of 200 patients take part in a clinical trial, and their systolic blood pressure, p mmHg, is measured. The results are shown below.

Systolic blood pressure (mmHg)

Frequency

p≤95

6

95<p≤105

59

105<p≤115

65

115<p≤125

63

p>125

7

A χ2 goodness of fit test is carried out at the 5% significance level to determine whether the blood pressures of the patients fit the distribution for healthy adults.

State the null and alternative hypotheses.

11b
3 marks

Complete the table of expected frequencies below. Give each frequency correct to four decimal places.

Systolic blood pressure (mmHg)

Expected frequency

p≤95

95<p≤105

39.4796

105<p≤115

75.1896

115<p≤125

p>125

11c
1 mark

Write down the number of degrees of freedom for this test.

11d
4 marks

Find the p-value for this test, and state the conclusion of the test. Give a reason for your answer.

12a
3 marks

The heights of giraffes are normally distributed with mean 3.8 m and standard deviation 0.7 m. As part of a conservation project in Kenya, the heights of 350 giraffes are measured. The results are shown in the table below.

Height, h (m)

Frequency

h<3

50

3≤h<4

160

4≤h<5

119

h≥5

21

A χ2 goodness of fit test is carried out at the 10% significance level to determine whether the heights of the surveyed giraffes fit this normal distribution.

Complete the table below. Give each probability correct to four decimal places and each expected frequency correct to two decimal places.

Height, h (m)

Probability

Expected frequency

h<3

3≤h<4

4≤h<5

h≥5

12b
2 marks

Write down the null and alternative hypotheses.

12c
1 mark

Write down the number of degrees of freedom for this test.

12d
2 marks

Find the p-value for this test.

12e
2 marks

State whether the results of the test support the null hypothesis. Give a reason for your answer.

13a
2 marks

A cat shelter looks after 328 cats. As part of the health check of each new cat, its weight, W pounds, is measured. The weights are summarised in the table below.

Weight, W (pounds)

Frequency

W<9

17

9≤W<10

91

10≤W<11

141

11≤W<12

72

W≥12

7

The weights of cats in the general cat population can be modelled by W~N(10.4, 0.92). The shelter wants to find out whether the weights of the cats in its care fit this distribution.

A χ2 goodness of fit test is carried out at the 10% significance level.

Write down the null and alternative hypotheses.

13b
4 marks

Complete the table of expected frequencies below, if the shelter's cats follow the weight distribution of the general cat population. Give each expected frequency correct to two decimal places.

Weight, W (pounds)

Expected frequency

W<9

9≤W<10

10≤W<11

11≤W<12

W≥12

13c
2 marks

Find the p-value for this test.

13d
2 marks

State the conclusion of the test. Give a reason for your answer.

1a
2 marks

A football coach wants to know whether the number of hours a team spends training in the week before a match affects the result of the match.

Data are collected for 100 matches. For each match, the number of hours spent training in the week before the match, h, is recorded with the result: win, lose or draw. Some of the data are shown in the table below.

Win

Lose

Draw

Total

0≤h<8

4

11

31

8≤h<16

19

12

16≤h<24

18

4

1

23

Total

37

39

100

Complete the table of observed data.

1b
1 mark

A χ2 test for independence is carried out at the 10% significance level.

State the null hypothesis.

1c
2 marks

Find the expected number of losses for a team that trains for at least 16 hours but fewer than 24 hours in the week before a match, if training time and match result are independent.

1d
2 marks

Find the number of degrees of freedom.

1e
2 marks

Find the χ2 statistic for this data.

1f
2 marks

The critical value for this test is 7.779.

State the conclusion of the test. Give a reason for your answer.

2a
1 mark

A spinner used on a game show is divided into 6 equal sections coloured red, yellow, green, blue, purple and orange. There are reports that the spinner is not fair, so an experiment is carried out: the spinner is spun 720 times.

Write down the number of times the spinner would be expected to land on red if it is fair.

2b
1 mark

The results of the experiment are shown in the table below.

Colour

Red

Yellow

Green

Blue

Purple

Orange

Number of spins

117

143

122

98

115

125

Write down the name of a statistical test that can be used to compare the observed results with the expected results, to determine whether the spinner is fair.

2c
2 marks

Write down the null and alternative hypotheses.

2d
2 marks

Carry out the test using your GDC, and find the p-value.

2e
2 marks

The test is carried out at the 1% significance level.

State the conclusion of the test. Give a reason for your answer.

2f
2 marks

Comment on the suitability of the 1% significance level for this test. Justify your answer.

2g
2 marks

A second spinner undergoes the same experiment, which gives a p-value of 0.082.

Explain how the two p-values can be used to compare the fairness of the two spinners.

3a
2 marks

The technology company Flooglesoft has recently lost some key employees to its main competitor. In response, the company wants to find out whether the monthly wages of its employees can be modelled by a normal distribution with standard deviation $400. The monthly wages, w dollars, of Flooglesoft's employees are summarised in the table below.

Monthly wage ($)

Frequency

w≤4800

1

4800<w≤5100

8

5100<w≤5400

28

5400<w≤5700

76

5700<w≤6000

99

6000<w≤6300

89

6300<w≤6600

44

w>6600

15

Given that ∑w=2124000, find the unbiased estimate of the population mean monthly wage.

3b
2 marks

A χ2 goodness of fit test is to be carried out at the 10% significance level to test whether the monthly wages can be modelled by a normal distribution with standard deviation $400.

State the null and alternative hypotheses.

3c
3 marks

The table below shows the expected frequencies for the data, using the mean found in part (a).

Monthly wage ($)

Expected frequency

w≤4800

a

4800<w≤5100

7.1173

5100<w≤5400

29.8439

5400<w≤5700

73.0396

5700<w≤6000

b

6000<w≤6300

87.3498

6300<w≤6600

c

w>6600

14.4213

Find the values of a, b and c. Give your answers correct to 4 decimal places.

3d
2 marks

Explain why the test has 5 degrees of freedom.

3e
4 marks

The critical value for the test is 9.236.

Find the χ2 statistic, and state the conclusion of the test. Give a reason for your answer.

4a
2 marks

Leander works for a manufacturing company. Each shift lasts four hours, and during each shift she records the number of times a machine breaks down. The data from 160 shifts are shown in the table below.

Number of breakdowns

Frequency

0

23

1

56

2

37

3

26

4

18

5 or more

0

Leander believes that the number of breakdowns during a four-hour shift can be modelled by a Poisson distribution. She decides to test her belief using a χ2 goodness of fit test at the 5% significance level.

Write down suitable null and alternative hypotheses to test Leander's belief.

4b
2 marks

Calculate an estimate of the mean number of breakdowns during a four-hour shift.

4c
3 marks

The table below shows the expected frequencies, using the mean found in part (b).

Number of breakdowns

Expected frequency

0

a

1

48.657

2

42.575

3

24.835

4

b

5 or more

c

Find the values of a, b and c. Give your answers correct to 3 decimal places.

4d
1 mark

Write down the number of degrees of freedom.

4e
4 marks

Find the p-value for the test, and determine whether the test supports Leander's belief. Justify your answer.

5a
1 mark

An IB student is investigating the study habits of students at her school. She wants to find out whether the time of day that a student prefers to study is independent of their year group. Years 12 and 13 at the school are the same size. She selects 20 students at random from Year 12 and 20 students at random from Year 13, and asks each of them to choose their preferred time of study: morning, afternoon or evening.

State the type of sampling used in her investigation.

5b
2 marks

She carries out a χ2 test for independence at the 5% significance level.

State the null and alternative hypotheses.

5c
2 marks

The results of the survey are listed below.

Year 12

morning, evening, evening, afternoon, morning, morning, afternoon, evening, afternoon, morning, morning, evening, afternoon, morning, evening, evening, morning, afternoon, morning, morning

Year 13

morning, afternoon, morning, evening, evening, evening, afternoon, morning, evening, evening, afternoon, evening, evening, afternoon, evening, morning, afternoon, evening, afternoon, evening

Complete the contingency table of observed frequencies below.

Morning

Afternoon

Evening

Year 12

Year 13

5d
2 marks

Show that, if preferred time of study and year group are independent, the expected number of Year 12 students who prefer to study in the morning is 6.5.

5e
4 marks

The critical value for the test is 5.991.

Find the χ2 statistic, and state the conclusion of the test in the context of the question. Give a reason for your answer.

6a
3 marks

A study has found that the top 20% of phone users spend more than 4.5 hours a day on their phones. A health charity wants to investigate whether phone usage is independent of age group. A survey of 85 people records each person's age group (child, teenager or adult) and the mean number of hours, h, that they spend on their phone each day.

The results are shown in the table below.

Low usage, 0≤h<2

Medium usage, 2≤h<4.5

High usage, h≥4.5

Total

Child

15

8

3

26

Teenager

6

18

8

32

Adult

9

12

6

27

Total

30

38

17

85

Complete the table of expected frequencies below. Give each value correct to two decimal places.

Low usage

Medium usage

High usage

Total

Child

26

Teenager

32

Adult

27

Total

30

38

17

85

6b
7 marks

A χ2 test for independence is carried out at the 5% significance level, using the critical value from the table below.

Degrees of freedom

Critical value (5%)

1

3.841

2

5.991

3

7.815

4

9.488

5

11.070

6

12.592

Carry out the test. You should state the null and alternative hypotheses, the number of degrees of freedom, the critical value and the χ2 statistic, and the conclusion of the test in context.

6c
2 marks

State two steps that could be taken to make the conclusion of the test more valid.

7a
6 marks

Melanie is playing an online game with two digital four-sided dice, each numbered 1 to 4. In each turn, the pair of dice is rolled together three times. High points are scored for rolling doubles, that is, when both dice land on the same number.

The table below shows the number of doubles scored in each turn when Melanie plays 400 turns.

Number of doubles

0

1

2

3

Frequency

148

174

66

12

Melanie suspects that the number of doubles in a turn can be modelled by a binomial distribution with the probability of rolling a double equal to 0.25. A χ2 goodness of fit test is carried out at the 5% significance level to test Melanie's suspicion.

Carry out the test to show that the number of doubles cannot be modelled by the binomial distribution B(3, 0.25).

7b
2 marks

Melanie still suspects that the number of doubles can be modelled by a binomial distribution, but with a different probability of rolling a double.

Assuming that the rolls of the dice are independent, use the table of results to estimate the probability of rolling a double.

7c
7 marks

Melanie now tests her new suspicion with a χ2 goodness of fit test at the 5% significance level, using the probability found in part (b).

(i) Write down the number of degrees of freedom for this test.

(ii) Carry out the test, and state the conclusion of the test. Give a reason for your answer.

1a
2 marks

About 1.6 million sets of twins are born each year worldwide. A doctor models the sexes of the two babies in a set of twins as independent, with each baby equally likely to be male or female.

Use this model to find the probability that both babies in a randomly chosen set of twins are male.

1b
2 marks

Using the doctor's model, complete the probability table for the number of male babies in a set of twins.

Number of male babies

0

1

2

Probability

1c
2 marks

In one hospital, 236 sets of twins are born in one year.

Complete the table of expected frequencies below.

Number of male babies

0

1

2

Expected frequency

1d
5 marks

The numbers of male babies in the sets of twins born in this hospital during the year are shown in the table below.

Number of male babies

0

1

2

Observed frequency

72

90

74

A χ2 goodness of fit test is carried out at the 5% significance level. The critical value for the test is 5.991.

Find the χ2 statistic, and state the conclusion of the test. Give a reason for your answer.

Suggest a reason why the doctor's model does not fit the data.

2a
3 marks

A class of 40 students take part in a science lesson on reaction times. A computer program measures the time taken, in milliseconds, for each student to press a button with their dominant hand after a green light is shown.

One student carries out a χ2 goodness of fit test at the 10% significance level, to test whether the class's reaction times follow a normal distribution. The p-value is 0.130.

State the conclusion of her test. Justify your answer.

2b
3 marks

A second class of 40 students repeats the experiment using their non-dominant hand. A χ2 goodness of fit test, also at the 10% significance level, gives a p-value of 0.0854.

Compare the results of the two tests. Justify your answer.

2c
3 marks

The mean reaction times of the two classes are then compared using a two-tailed, two-sample t-test at the 10% significance level. The p-value for this test is 0.0667.

Explain what can be concluded from this test.

3a
2 marks

Gordon takes the bus to work at the same time each day, and he records the time, t minutes, of each journey. His data are shown in the table below.

Time, t (minutes)

Frequency

10≤t<15

6

15≤t<20

11

20≤t<25

17

25≤t<30

21

30≤t<40

14

40≤t<60

1

Gordon wants to use a χ2 goodness of fit test at the 10% significance level to test whether the journey times can be modelled by a normal distribution.

State the null and alternative hypotheses.

3b
3 marks

The mean journey time of the sample is 25.3 minutes and the standard deviation of the sample is 7.38 minutes.

Write down the unbiased estimate of the population mean journey time, and find the unbiased estimate of the population variance.

3c
4 marks

Using the unbiased estimates from part (b), complete the table of expected frequencies below. Give each expected frequency correct to 3 decimal places.

Time, t (minutes)

Expected frequency

t<15

15≤t<20

10.850

20≤t<25

17.219

25≤t<30

17.675

30≤t<40

t≥40

1.679

3d
1 mark

Write down the number of degrees of freedom for the test.

3e
4 marks

The critical value for the test is 4.605.

Find the χ2 statistic, and state the conclusion of the test. Give a reason for your answer.