(a) A sample of 100 students has average IQ 105 with \(\sigma = 15\). Test \(H_0: \mu = 100\) at 5 %.
(b) City A: \(n_1 = 200,\ \bar X_1 = 28,\ \sigma_1 = 4\); City B: \(n_2 = 250,\ \bar X_2 = 26,\ \sigma_2 = 5\).
Test \(H_0: \mu_1 = \mu_2\).
To apply the large-sample (Z) test to a single mean and to the difference of two means.
Applying it:
Blank working table:
| Part | Z | Critical (±1.96) | p-value | Decision |
|---|---|---|---|---|
| (a) | ||||
| (b) |
(a) \(Z = (105 - 100)/(15/\sqrt{100}) = 5/1.5 = 3.33\); p \(= 2[1 - \Phi(3.33)] = 0.00087\).
(b) \(Z = (28 - 26)/\sqrt{16/200 + 25/250} = 2/\sqrt{0.18} = 4.71\); p \(< 0.0001\).
(a) \(|Z| = 3.33 > 1.96\) and p \(= 0.00087 < 0.05\) ⇒ reject \(H_0\); the mean IQ differs from 100. (b) \(|Z| = 4.71 > 1.96\), p \(< 0.0001\) ⇒ reject \(H_0\); the city means differ.
(a) 120 of 200 voters favour candidate A. Test \(H_0: p = 0.5\).
(b) Factory 1: 60 defective in 500; Factory 2: 40 in 400. Test \(H_0: p_1 = p_2\).
To apply the large-sample Z-test to a single proportion and to the difference of two proportions.
Applying it:
Blank working table:
| Part | Z | Critical (±1.96) | p-value | Decision |
|---|---|---|---|---|
| (a) | ||||
| (b) |
(a) \(\hat p = 120/200 = 0.6\); \(Z = (0.6 - 0.5)/\sqrt{0.5\cdot 0.5/200} = 0.1/0.03536 = 2.83\); p \(= 0.0047\).
(b) \(\hat p_1 = 0.12,\ \hat p_2 = 0.10\); pooled \(\hat p = 100/900 = 0.111\); \(Z = (0.12 - 0.10)/\sqrt{0.111\cdot 0.889(1/500 + 1/400)} = 0.02/0.0212 = 0.94\); p \(= 0.34\).
(a) \(|Z| = 2.83 > 1.96\), p \(= 0.0047 < 0.05\) ⇒ reject \(H_0\); A is favoured by more than half. (b) \(|Z| = 0.94 < 1.96\), p \(= 0.34 > 0.05\) ⇒ accept \(H_0\); the defective rates are equal.
(a) A sample of 100 has \(s = 14.2\). Test \(H_0: \sigma = 15\).
(b) \(n_1 = 144,\ s_1 = 8\); \(n_2 = 100,\ s_2 = 6\). Test \(H_0: \sigma_1 = \sigma_2\).
To apply the large-sample Z-test to a single standard deviation and to the difference of two SDs.
Applying it:
Blank working table:
| Part | Z | Critical (±1.96) | p-value | Decision |
|---|---|---|---|---|
| (a) | ||||
| (b) |
(a) \(Z = (14.2 - 15)/(15/\sqrt{200}) = -0.8/1.061 = -0.75\); p \(= 0.45\).
(b) \(Z = (8 - 6)/\sqrt{64/288 + 36/200} = 2/\sqrt{0.402} = 3.15\); p \(= 0.0016\).
(a) \(|Z| = 0.75 < 1.96\), p \(= 0.45 > 0.05\) ⇒ accept \(H_0\). (b) \(|Z| = 3.15 > 1.96\), p \(= 0.0016 < 0.05\) ⇒ reject \(H_0\); the SDs differ.
(a) \(r = 0.6,\ n = 50\). Test \(H_0: \rho = 0\).
(b) \(r = 0.7,\ n = 28\). Test \(H_0: \rho = 0.5\) using Fisher's Z-transformation.
To test a sample correlation coefficient against \(\rho = 0\) (t-test) and against a specified \(\rho_0\) (Fisher's Z).
Applying it:
Blank working table:
| Part | Statistic | Critical | Decision |
|---|---|---|---|
| (a) | |||
| (b) |
(a) \(t = 0.6\sqrt{48}/\sqrt{1 - 0.36} = 4.16/0.8 = 5.20\); df \(= 48\), \(t_{0.025} \approx 2.01\).
(b) \(Z' = \tfrac12\ln(1.7/0.3) = 0.867\), \(\zeta_0 = \tfrac12\ln(1.5/0.5) = 0.549\); \(Z = (0.867 - 0.549)\sqrt{25} = 1.59\).
(a) \(t = 5.20 > 2.01\) (p \(< 0.001\)) ⇒ reject \(H_0\); the correlation is significant. (b) \(|Z| = 1.59 < 1.96\) (p \(= 0.11\)) ⇒ accept \(H_0\); \(\rho\) is not significantly different from 0.5.
(a) A sample of 9 has \(\bar X = 47.5,\ s = 4\). Test \(H_0: \mu = 50\).
(b) \(n_1 = 10,\ \bar X_1 = 22,\ s_1 = 3\); \(n_2 = 12,\ \bar X_2 = 19,\ s_2 = 2.5\). Test \(H_0: \mu_1 = \mu_2\).
To apply the Student's t-test to a single mean and to the difference of two means (small samples).
Applying it:
Blank working table:
| Part | t | df | Critical \(t_{0.025}\) | Decision |
|---|---|---|---|---|
| (a) | ||||
| (b) |
(a) \(t = (47.5 - 50)/(4/3) = -1.875\); df \(= 8\), \(t_{0.025} = 2.306\).
(b) \(s_p^2 = (9\cdot 9 + 11\cdot 6.25)/20 = 7.49,\ s_p = 2.74\); \(t = 3/(2.74\sqrt{1/10 + 1/12}) = 3/1.171 = 2.56\); df \(= 20\), \(t_{0.025} = 2.086\).
(a) \(|t| = 1.875 < 2.306\) (p \(> 0.05\)) ⇒ accept \(H_0\). (b) \(|t| = 2.56 > 2.086\) (p \(< 0.05\)) ⇒ reject \(H_0\); the means differ.
For 18 pairs, \(r = 0.55\). Test \(H_0: \rho = 0\).
To test the significance of a correlation coefficient from a small sample using the t-test.
Applying it:
Blank working table:
| t | df | Critical \(t_{0.025}\) | Decision |
|---|---|---|---|
\(t = 0.55\sqrt{16}/\sqrt{1 - 0.3025} = 2.2/0.835 = 2.635\); df \(= 16\), \(t_{0.025} = 2.12\).
\(|t| = 2.635 > 2.12\) (p \(< 0.05\)) ⇒ reject \(H_0\); the correlation is significant.
Heart rate before and after a workout for 12 patients gives the differences \(d\): 5, 7, 4, 6, 8, 3, 5, 7, 6, 4, 5, 6. Test whether the workout changes the heart rate.
To test the mean of paired differences using the paired t-test.
Applying it:
Blank working table (fill in the deviation-squared column, then total):
| d | (d − d̄)² |
|---|---|
| 5 | |
| 7 | |
| … | |
| Σd | Σ(d − d̄)² |
\(\sum d = 66,\ \bar d = 5.5\); \(\sum (d - \bar d)^2 = 23\), so \(s_d = \sqrt{23/11} = 1.446\).
\(t = 5.5/(1.446/\sqrt{12}) = 5.5/0.4174 = 13.18\); df \(= 11\), \(t_{0.025} = 2.201\).
\(|t| = 13.18 \gg 2.201\) (p \(< 0.001\)) ⇒ reject \(H_0\); the workout changes the heart rate significantly.
(a) \(n = 20,\ s^2 = 12\). Test \(H_0: \sigma^2 = 9\) (two-tailed).
(b) \(n_1 = 21,\ s_1^2 = 20\); \(n_2 = 16,\ s_2^2 = 8\). Test \(H_0: \sigma_1^2 = \sigma_2^2\) against \(H_1: \sigma_1^2 > \sigma_2^2\).
To test a single variance using the χ² statistic and the equality of two variances using the variance-ratio (F) test.
Applying it:
Blank working table:
| Part | Statistic | df | Critical | Decision |
|---|---|---|---|---|
| (a) | ||||
| (b) |
(a) \(\chi^2 = 19\cdot 12/9 = 25.33\); df \(= 19\); two-tailed critical values \(\chi^2_{0.975} = 8.91\) and \(\chi^2_{0.025} = 32.85\).
(b) \(F = 20/8 = 2.5\); df \(= (20, 15)\); \(F_{0.05}(20, 15) = 2.33\).
(a) \(8.91 < 25.33 < 32.85\) (p \(> 0.05\)) ⇒ accept \(H_0\); the variance is consistent with 9. (b) \(F = 2.5 > 2.33\) (p \(< 0.05\)) ⇒ reject \(H_0\); the first variance is significantly larger.
(a) Among 100 patients, recoveries by week are 22, 27, 25, 26 (expected 25 each). Test whether the
recovery rate is uniform across weeks.
(b) A 2×2 table of smoking × cancer has observed counts (60, 40, 20, 80). Test independence.
To apply the χ² test to a goodness-of-fit problem and to a test of independence in a contingency table.
Applying it:
Blank working table (goodness of fit):
| Week | O | E | (O−E)²/E |
|---|---|---|---|
| 1 | 22 | 25 | |
| 2 | 27 | 25 | |
| 3 | 25 | 25 | |
| 4 | 26 | 25 | |
| Σ | 100 | 100 |
(a) \(\chi^2 = (9 + 4 + 0 + 1)/25 = 14/25 = 0.56\); df \(= 3\), \(\chi^2_{0.05} = 7.81\).
(b) Expected \(= (40, 60, 40, 60)\); \(\chi^2 = \dfrac{20^2}{40} + \dfrac{20^2}{60} + \dfrac{20^2}{40} + \dfrac{20^2}{60} = 10 + 6.67 + 10 + 6.67 = 33.33\); df \(= 1\), \(\chi^2_{0.05} = 3.84\).
(a) \(0.56 < 7.81\) (p \(> 0.05\)) ⇒ accept \(H_0\); recovery is uniform across weeks. (b) \(33.33 > 3.84\) (p \(< 0.001\)) ⇒ reject \(H_0\); smoking and cancer are not independent.
(a) Runs test: the signs of 12 successive stock returns are
+ + − − − + + + − − + +. Test for randomness.
(b) Sign & Wilcoxon signed-rank test: test \(H_0:\) median \(= 50\) for the sample
45, 48, 52, 47, 55, 49, 53, 50, 51, 46.
To test randomness (runs test) and a hypothesised median (sign test and Wilcoxon signed-rank test).
Applying it:
Blank working table (Wilcoxon: rank the absolute differences):
| x | d = x − 50 | |d| | rank of |d| | signed rank |
|---|---|---|---|---|
| 45 | ||||
| 48 | ||||
| … |
(a) Runs: \(n_1 = 7\) (+), \(n_2 = 5\) (−), \(R = 5\). \(E(R) = 2(7)(5)/12 + 1 = 6.83\), \(\operatorname{Var}(R) = 2(7)(5)(70 - 12)/(144\cdot 11) = 2.56\), SD \(= 1.60\); \(Z = (5 - 6.83)/1.60 = -1.14\); p \(= 0.25\).
(b) Sign test: drop the value 50; among the remaining 9, there are 4 plus and 5 minus signs.
\(P(B(9, 0.5) \le 4) = 0.5\), so p is large.
Wilcoxon: the signed differences are −5, −2, +2, −3, +5, −1, +3, +1, −4; ranking \(|d|\)
(ties averaged) gives \(W^+ = 19,\ W^- = 26\), so \(W = 19\). For \(n = 9\), the 5 % two-tailed critical
value is 5.
(a) \(|Z| = 1.14 < 1.96\) (p \(= 0.25 > 0.05\)) ⇒ accept \(H_0\); the sequence is random. (b) Sign test: p large ⇒ accept. Wilcoxon: \(W = 19 > 5\) ⇒ accept \(H_0\); the median is consistent with 50.
(a) Sign test: for 10 paired observations, 7 differences are positive and 3 negative.
Test \(H_0:\) no difference.
(b) Wilcoxon signed-rank test: for 10 pairs the rank sums are \(W^+ = 48,\ W^- = 7\).
Test \(H_0:\) no difference.
To test the equality of two related (paired) samples using the sign test and the Wilcoxon signed-rank test.
Applying it:
Blank working table:
| Test | Statistic | Critical / p-value | Decision |
|---|---|---|---|
| Sign | |||
| Wilcoxon |
(a) \(S = 7\) positives out of 10. \(P(B(10, 0.5) \ge 7) = 0.172\); two-tailed p \(= 0.344\).
(b) \(W = \min(48, 7) = 7\). For \(n = 10\), the 5 % two-tailed critical value is 8.
(a) p \(= 0.344 > 0.05\) ⇒ accept \(H_0\) (sign test). (b) \(W = 7 \le 8\) ⇒ reject \(H_0\) (Wilcoxon). The Wilcoxon test, using the magnitudes of the differences, is more powerful and detects a difference that the sign test does not.
(a) Median test: two groups of 10 observations each; relative to the grand median,
Group 1 has 2 above and 8 below, Group 2 has 8 above and 2 below. Test equality of medians.
(b) Mann–Whitney U: \(n_1 = 5,\ n_2 = 6\), rank sum \(R_1 = 20\).
(c) Wald–Wolfowitz runs test: the combined ordered sequence is A B B A B A B A
(\(n_1 = n_2 = 4\)).
To compare two independent samples using the median test, the Mann–Whitney U test and the Wald–Wolfowitz runs test.
Applying it:
Blank working table:
| Test | Statistic | Critical | Decision |
|---|---|---|---|
| Median (χ²) | |||
| Mann–Whitney U | |||
| Wald–Wolfowitz |
(a) The 2×2 table is (2, 8; 8, 2); with 10 above and 10 below over 20 observations, each expected cell \(= 5\). \(\chi^2 = \dfrac{(2-5)^2}{5}\times 4 = \dfrac{36}{5} = 7.2\); df \(= 1\), \(\chi^2_{0.05} = 3.84\).
(b) \(U_1 = 20 - 5(6)/2 = 5\), \(U_2 = 30 - 5 = 25\), so \(U = 5\). Critical U at 5 % two-tailed for \((5, 6)\) is 3.
(c) Runs in A B B A B A B A: \(R = 7\). \(E(R) = 2(4)(4)/8 + 1 = 5\), \(\operatorname{Var}(R) = 1.71\), SD \(= 1.31\); \(Z = (7 - 5)/1.31 = 1.53\); p \(= 0.13\).
(a) \(7.2 > 3.84\) (p \(< 0.05\)) ⇒ reject \(H_0\); the medians differ. (b) \(U = 5 > 3\) ⇒ accept \(H_0\); no significant difference. (c) \(|Z| = 1.53 < 1.96\) (p \(= 0.13\)) ⇒ accept \(H_0\); the two samples come from the same distribution.