result | actual frequency |
---|---|
1 | 8 |
2 | 9 |
3 | 5 |
4 | 9 |
5 | 10 |
6 | 19 |
(a) Write down the null hypothesis.
(b) Add a column of frequencies expected in an ideal situation.
(c) Use the χ2 GOF test on your GDC to calculate the p-value.
(d) Using the p-value verify the validity of the null hypothesis.
Solutions: (a) \(H_0\): "The die is fair." (c) p-value \(=0.0476\); (d) The null hypothesis must be rejected. The alternative hypothesis is valid: \(H_\mathrm{a}\): "The die is not fair."result | actual frequency | expected frequency |
---|---|---|
1 | 8 | 10 |
2 | 9 | 10 |
3 | 5 | 10 |
4 | 9 | 10 |
5 | 10 | 10 |
6 | 19 | 10 |
result | actual frequency |
---|---|
1 | 7 |
2 | 9 |
3 | 5 |
4 | 10 |
5 | 11 |
6 | 18 |
(a) Write down the null hypothesis.
(b) Add the column of expected frequencies.
(c) Calculate the p-value.
(d) Using the p-value verify the validity of the null hypothesis.
Solutions: (a) \(H_0\): "The die is fair." (c) p-value \(=0.0752\); (d) The null hypothesis is valid: the die is fair.result | actual frequency | expected frequency |
---|---|---|
1 | 7 | 10 |
2 | 9 | 10 |
3 | 5 | 10 |
4 | 10 | 10 |
5 | 11 | 10 |
6 | 18 | 10 |
result | actual frequency |
---|---|
A | 13 |
B | 15 |
C | 27 |
D | 24 |
E | 21 |
(a) Calculate the p-value using the χ2 GOF test.
(b) Using the p-value verify the validity of the null hypothesis.
Solutions: (a) p-value \(=0.136\); (b) The null hypothesis can not be rejected. This wheel of fortune is fair.female | 44 |
male | 56 |
female | 15 |
male | 25 |
female | 31 |
male | 39 |
(a) Calculate the p-value and verify the null hypothesis for department A.
(b) Calculate the p-value and verify the null hypothesis for department B.
(c) Calculate the p-value and verify the null hypothesis for department C.
(d) Calculate the p-value and verify the null hypothesis for the entire company.
Solutions: (a) p-value \(=0.230\), (b) p-value \(=0.114\), (c) p-value \(=0.339\), (d) p-value \(=0.0384\). Null hypothesis cannot be rejected for any department (A, B or C). But: null hypothesis is rejected for the entire company. This company is unfair to women.town | representatives |
---|---|
town A | 4 |
town B | 3 |
town C | 13 |
(a) Write down the null hypothesis.
(b) Calculate the p-value.
(c) Using the p-value verify the validity of the null hypothesis at significance level \(\alpha=10\%\).
Solutions: (a) \(H_0\): "The process of selection was random/fair."; (b) p-value \(=0.0942=9.42\%\); (c) At given significance level, the null hypothesis must be rejected. The process of selecting the representatives was not random..female | male | |
horror movies | 20 | 25 |
action movies | 15 | 45 |
romances | 50 | 35 |
melodramas | 45 | 15 |
(a) Use the χ2 two-way test of independence to calculate the p-value.
(b) Hence, verify the validity of the null hypothesis.
Solutions: (a) p-value \(=0.000000346\); (b) The null hypothesis must be rejected. Preferred genre depends on viewer's sex.town A | town B | |
grade 1 | 5 | 1 |
grade 2 | 4 | 3 |
grade 3 | 7 | 2 |
grade 4 | 10 | 6 |
grade 5 | 15 | 8 |
grade 6 | 27 | 10 |
grade 7 | 12 | 11 |
(a) Write the null hypothesis.
(b) Use the χ2 two-way test of independence to calculate the p-value.
(c) Hence, verify the validity of the null hypothesis.
Solutions: (a) \(H_0\): "Grades are independent from the town of student's provenance." (b) p-value \(=0.614\); (c) The null hypothesis can not be rejected. Grades are independent from the student's provenance.English | Russian | Chinese | |
illiterate persons | 25 | 24 | 21 |
low level of literacy | 86 | 53 | 99 |
high level of literacy | 89 | 83 | 80 |
(a) Write the null hypothesis.
(b) Use the χ2 two-way test of independence to calculate the p-value.
(c) Hence, verify the validity of the null hypothesis.
Solutions: (a) \(H_0\): "Level of literacy is independent on the writing system." (b) p-value \(=0.0427\); (c) The null hypothesis is rejected. Level of literacy is dependent on the writing system.new technique | 180, 185, 165, 178, 190, 188 |
old technique | 173, 180, 178, 160, 169, 173, 181, 163 |
(a) Use the two-sample t test to calculate the p-value.
(b) Hence, verify the validity of the null hypothesis.
Solutions: (a) p-value \(\approx0.0357\); (b) The null hypothesis must be rejected. The new technique is better.town A | 105, 128, 95, 119, 89, 113, 99, 110 |
town B | 100, 121, 118, 85, 91, 103, 97, 91 |
(a) Write down the null hypothesis and the alternate hypothesis.
(b) Use the two-sample t test to calculate the p-value.
(c) Hence, verify the validity of the null hypothesis.
Solutions: (a) \(H_0\!:~ \mu_1=\mu_2\), \(H_\mathrm{a}\!:~ \mu_1\ne\mu_2\); (b) p-value \(\approx0.331\); (c) The null hypothesis cannot be rejected. Inhabitants of both towns have equal mean IQ. (More precise answer: We don't have enough data to claim that the IQ is different.)town C | 105, 106, 101, 117, 97, 113, 114, 105 |
town D | 100, 107, 104, 95, 97, 99, 103, 101 |
(a) Write down the null hypothesis and the alternate hypothesis.
(b) Use the two-sample t test to calculate the p-value.
(c) Hence, verify the validity of the null hypothesis.
Solutions: (a) \(H_0\!:~ \mu_1=\mu_2\), \(H_\mathrm{a}\!:~ \mu_1\ne\mu_2\); (b) p-value \(\approx 0.0351\); (c) The null hypothesis must be rejected. Sample mean of C is much higher \((\overline{x}_1\gt\overline{x}_2)\), so we can conclude: Inhabitants of town C have a higher mean IQ.yields now | 7.1 | 8.2 | 7.6 | 7.8 | 8.3 | 8.1 | 7.3 | 7.2 |
yields 20 years ago | 7.3 | 7.5 | 8.0 | 8.6 | 7.9 | 8.3 | 7.7 |
(a) Write down the null hypothesis and the alternate hypothesis.
(b) Use the two-sample t test.
(c) Write down the sample means \(\overline{x}_1\) and \(\overline{x}_2\).
(d) Use the p-value to verify the validity of the null hypothesis.
Solutions: (a) \(H_0\!:~ \mu_1=\mu_2\), \(H_\mathrm{a}\!:~ \mu_1\lt\mu_2\); (c) \(\overline{x}_1=7.7\), \(\overline{x}_2=7.9\); (d) p-value \(\approx 0.209\), so the null hypothesis cannot be rejected. (The new sample mean is lower but we don't have enough data to claim that the new population mean is lower too. We cannot claim that the mean yields have lowered significantly.)