jmaths
IB Mathematics: Applications and Interpretation HL · 13.4: Hypothesis Testing · 13.4.2
Name Date
Chi-squared goodness of fit Problem set A
State the hypotheses, the degrees of freedom and the expected frequencies. Use the calculator for χ² and p, and write each conclusion in context.
Difficulty: first skills applying them stretch
Skills
-
A coffee shop says its sales of small, medium and large cups are in the ratio 5 : 3 : 2. You test this with a goodness of fit test. Write \(H_0\) and \(H_1\).
-
State the degrees of freedom of a goodness of fit test for each table.
- (a) The days of the week, Monday to Sunday.
- (b) Data grouped into 5 classes.
- (c) A table with 9 groups.
-
A bag of 200 beads is said to contain red, blue, green and yellow beads in the proportions 0.45, 0.30, 0.15 and 0.10. Find the expected frequency of each colour.
-
A supermarket records 135 complaints over the five days Monday to Friday. Assuming that a complaint is equally likely on each day, find the expected frequency for each day.
-
A goodness of fit test is used to check that a five-sided spinner is fair. In 100 spins the observed frequencies are 12, 25, 18, 21, 24.
- (a) State the degrees of freedom and the expected frequency of each number.
- (b) Use the calculator to find \(\chi^2\) and the p-value.
In context
-
A music service says that 40% of the plays on its app are pop, 30% rock, 20% hip hop and 10% other. In a sample of 400 plays, 148, 112, 90 and 50 are pop, rock, hip hop and other. Test the service's claim at the 5% significance level.
- (a) Write \(H_0\) and \(H_1\).
- (b) State the degrees of freedom and find the expected frequencies.
- (c) Use the calculator to find \(\chi^2\) and the p-value.
- (d) Write the conclusion in context.
-
A school election has four candidates who are thought to be equally popular. In a sample of 200 votes 30, 58, 55 and 57 votes go to the four candidates. Test, at the 5% level, whether the four are equally popular. The critical value of \(\chi^2\) with df = 3 at the 5% level is 7.815.
- (a) Write \(H_0\) and \(H_1\), and state the expected frequency.
- (b) Find \(\chi^2\) on the calculator.
- (c) Compare with the critical value and write the conclusion in context.
-
A die is rolled 120 times. The bar chart shows the number of times each face came up. The dashed line shows the expected frequency for a fair die.
- (a) Find the expected frequency of each number.
- (b) Before any test, do the results look consistent with a fair die? Give a reason.
Stretch
-
A bakery counts its 600 customers from Monday to Saturday in one week. If customers were equally likely on each day the expected frequency would be 100 for each day. The table shows the observed frequencies.
- (a) Find \(\chi^2\) and the p-value from the calculator.
- (b) Write the conclusion at the 5% level.
- (c) Suggest a reason, from the context, for the result.
-
A student rolls a die 120 times for a project. The table shows the observed frequencies. The \(\chi^2\) test for a fair die gives a p-value very close to 1.
- (a) Find \(\chi^2\) and the p-value from the calculator.
- (b) What does such a large p-value say about the observed frequencies compared with the expected frequencies?
- (c) Suggest a reason for it.
jmaths.xyz · AI HL · 13.4.2 Chi-squared goodness of fit