ExamBank Scot · AH Statistics question bank · All AH Statistics questions

AH Statistics 2024 Paper 1 Question 2

15 marks · Two-sample tests

State two reasons why it would not be appropriate to use a two sample ‑test on these data. Output 1 presents the truncated results of a Mann‑Whitney test applied to the data in Table 1. Output 1 Mann Whitney test data: Viral Load by Treatment W = 205 alternative hypothesis: true location shift is not equal to 0 Write down the hypotheses that Output 1 can be used to test. Without performing any calculations, clearly describe how the test statistic in Output 1 was calculated. State the critical value of that would be used with Output 1 to perform the test at the 5% significance level. Hence, state and interpret the conclusion of the test at this level. The 15 patients on the standard treatment remained on the standard treatment beyond the clinical trial and were monitored for a further 3 months to see if there was a difference in their viral loads. Their viral loads at 3 months (ie the end of the clinical trial) and 6 months are shown in Table 2 and Output 2 presents the results of a Wilcoxon Signed Rank test applied to these data. In Output 2, one value has been deleted and replaced by *****. Table 2 Viral loads for patients on the standard treatment at 3 months and again at 6 months Patient ID Month 3 viral load Month 6 viral load 1 7500 7480 2 8000 8010 3 2000 2010 4 550 560 5 1250 1210 6 1000 980 7 2250 2180 8 6800 6790 9 3400 3370 10 6300 6260 11 9100 9060 12 970 960 13 1040 990 14 670 640 15 400 430 Output 2 Wilcoxon signed rank test data: Month.3.Viral.Load minus Month.6.Viral.Load differences (in order of Patient ID): 20 −10 −10 −10 40 20 70 10 30 40 40 10 50 30 −30 ranks (in order of Patient ID): ***** 3 3 3 12 6.5 15 3 9 12 12 3 14 9 9 W = 18 null hypothesis: true location shift is equal to 0 alternative hypothesis: true location shift is not equal to 0 Determine the missing value in Output 2, indicated by *****. Using Output 2, calculate the rank sums for both negative and positive differences and justify the value of the test statistic . By consulting Table 7 on page 15 in the Statistical Formulae and Tables booklet, it is possible to identify the smallest interval that would contain the ‑value of the test statistic in Output 2. State the maximum and minimum values of this interval for the ‑value. Hence, or otherwise, complete this hypothesis test at the 5% significance level, and write an appropriate conclusion in context. A clinical trial was conducted with 29 patients with a particular virus to assess the effectiveness of a new treatment. Each patient was randomly allocated to receive a standard treatment (‘standard’) or a new treatment (‘new’). All patients were monitored for 3 months. The primary outcome was each patient’s viral load after 3 months. Viral load is the number of particles of the virus in a blood sample, measured as the number of copies of the virus per millilitre of blood. A lower viral load is a better outcome than a higher viral load. These data are shown in Table 1. Table 1 Viral loads after 3 months for 29 patients randomly allocated to either a standard treatment or a new treatment Standard New 7500 410 8000 250 2000 800 550 1400 1250 7900 1000 7400 2250 1020 6800 6000 3400 920 6300 1420 9100 2700 970 4200 1040 5200 670 4100 400 Figure 1 shows histograms of the viral loads of the two treatments separately. Results from an analysis of the data using statistical software are shown in the outputs below. Figure 1 Histograms of the viral loads of the two treatments It is proposed that a two sample ‑test could compare the central locations of the distributions of the viral loads of the standard and new treatments using the data in Table 1 which is displayed in Figure 1.

Marking scheme

•1 appropriate reason •2 appropriate reason •1 the distribution of each treatment group appears non- normal •2 both population variances are unknown Notes: 1. For •1 and •2, only accept responses that clearly communicate that there are two sets of data. 2. For •1 and •2, if both responses only refer to a single data set, then the first mark is unavailable, but the second mark is available, as an error carried forward. 3. For •1 and •2, a minimal accepted response is ‘at least one sample appears non-normal, and at least one population variance is not known’ 4. For •2, also accept ‘the sample size in each treatment group is less than 20’. Commonly Observed Responses: Candidate A provides more than two comments for part (a) Treat each comment as using the same strategy, mark each possible combination of pairs of comments and then award the lowest mark from these combinations: Number of comments Number correct Number incorrect Marks Awarded 3 0 3 0 3 1 2 0 3 2 1 1 3 3 0 2 4 0 4 0 4 1 3 0 4 2 2 0 4 3 1 1 4 4 0 2 •3 appropriate hypotheses •3 H0: The median of the population of viral loads under standard treatment is equal to the median of the population of viral loads under new treatment H1: The median of the population of viral loads under standard treatment does not equal the median of the population of viral loads under new treatment Notes: 1. For •3, both hypotheses must be given, and refer to medians and populations. 2. For •3, the two-sided alternative ‘not equal’ must be used. 3. For •3, also accept H0 :ηstandard =ηnew and H1 :ηstandard ≠ηnew Commonly Observed Responses: •4 describe ranking process •5 describe sums of ranks •6 specify the minimum of the rank sums •4 all the values of ‘Viral Load’ (in Table 1) were sorted (in increasing order) and each (unique) value was assigned a rank •5 the sum of the ranks corresponding to the new treatment was calculated (let this value be ) •6 the minimum of and 14 × (14+15+1) — is reported as in Output 1 Notes: 1. For •4 and •6, an alternative technique is to rank the data from low to high, as well as from high to low, calculating the rank sums of for each ordering. Then, select the ranking order that gave the smallest value of . 2. For (b)(ii), if a Wilcoxon Signed-Rank test is described, then award no marks. Commonly Observed Responses: •7 state critical value •8 deal with H0 •9 appropriate conclusion •7 164 •8 as 205 > 164, we do not reject the null hypothesis •9 there is insufficient evidence that the population median viral loads of the two treatments are different. Notes: 1. For •9, do not accept conclusions that are too definite. Phrasing must include ‘evidence to conclude…’, or ‘evidence to suggest…’, or similar. 2. For •9, context is required. 3. For •9, refer back to part 2(b)(i) to establish whether ‘population’ was mentioned: If ‘population’ was mentioned, then do not penalise its omission here. If ‘population’ was not mentioned, then treat it as an error carried forward here. 4. For •9, do not accept ‘evidence to suggest there is no difference’ (as this is saying ‘there is evidence for H0’) Commonly Observed Responses: •10 determine the missing value •10 6.5 Notes: Commonly Observed Responses: •11 calculate the sums of ranks •12 correct justification of W •11 the sum of the ranks of the negative differences (3+3+3+9) and positive differences (6.5+12+6.5+15+3+9+12+12+3+14 +9) are calculated to be 18 and 102, respectively. •12 the minimum of these two values is reported as W in Output 2 (W = min(102,18) = 18) Notes: 1. For •11, the rank sum of positive differences can also be obtained from subtracting the rank sum of negative differences from the total rank sum. Commonly Observed Responses: •13 state the interval •13 (0.01, 0.02) Notes: 1. For •13, if candidate incorrectly states the interval (0.005, 0.01) corresponding to the one-tailed test, the results and conclusions in •14 and •15 will still be the same. Commonly Observed Responses: •14 deal with H0 •15 appropriate conclusion •14 p-value < 0.05 we reject H0 •15 conclude there is sufficient evidence that the (population) median viral load under the standard treatment at 3 months is not equal to that at 6 months Notes: 1. For •14, also accept 18 ≤ 25 (the 5% critical value for two-tailed test). 2. For •14, do not accept 18 ≤ 30 (the 5% critical value for one-tailed test). 3. For •15, conclusion must mention that the viral load median differs at 3 months compared at 6 months (since output states ‘alternative hypothesis: true location shift is not equal to 0’). 4. For •15, do not accept conclusions that are too definite. Phrasing must include ‘evidence to conclude…’, or ‘evidence to suggest…’, or similar. Commonly Observed Responses:

Previous question: AH Statistics 2024 Paper 1 Question 1

Next question: AH Statistics 2024 Paper 2 Question 1