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

AH Statistics 2021 Paper 1 Question 1

16 marks · Exploratory data analysis

The stem‑and‑leaf diagram could be improved by stating the number of leaves on each side of the stem. Describe three further improvements that should be made to the diagram to make it acceptable. An alternative way to display the data would have been to use boxplots. Determine how many outliers above the median would have to be shown on the boxplot for the drawing times of doodles of cats. Read lines 15 to 19. The author makes a claim based upon the number of recognisable doodles of each animal, without any statistical basis. Name a hypothesis test that could be performed to determine whether there was any difference in the success rate of drawing a recognisable doodle for each type of animal. Write down the hypotheses for the test you named in (i). Read lines 24 to 26. State the assumptions the author must have made in order to perform the Mann‑Whitney test. Read lines 27 to 30. Assuming the value of the rank sum is correct, verify the stated value of the ‑test statistic of the Mann‑Whitney test, showing full calculations. Read lines 7 to 9 and lines 24 to 31. State the hypotheses of the test being performed, the associated level of significance used and write an improved conclusion to the test. Read lines 24 to 26. A reviewer of the report considers that the samples provide sufficient evidence that their parent distributions are roughly symmetrical and that it could be assumed that the distributions of times taken to draw cats and dogs are each normally distributed. In light of this they suggest that a ‑test for a difference in population means could have been used. State a further assumption required to perform this ‑test and what information from the computer software output summary statistics table would be used to judge if it was valid. An extract of a draft report by a researcher is given below. It is known to contain some flaws and questionable methodology. Read it and then answer the questions that follow. 1 Introduction For several years, Google has been helping generate training data for artificial intelligence (AI) neural networks to learn from. One project is called ‘Quick Draw!’ where players have 20 seconds to draw a doodle of an object. The time taken to draw 5 each doodle is recorded, along with several other measurements. I found one website that compared the time taken to draw the doodle of a cat with that for a dog, but it did not conduct any analysis of the data and only presented some graphs to compare them. I wanted to explore if there was any statistically significant difference in the time taken to draw a doodle of each animal. 10 Method The full data set has over 50 million doodles of 345 different objects, and I did not have the capabilities to process all of this data. I therefore requested two randomly sampled data sets of 150 doodles of cats and 150 doodles of dogs upon which to perform my analysis and from these I extracted the times taken (in seconds) to draw each. 15 However, within each set of 150 doodles there were a number of doodles that had not been recognised as either a cat or a dog by the AI algorithm. After removal of these, I had 121 valid doodles of cats and 145 valid doodles of dogs. It already seemed clear that there could be a difference when trying to draw a recognisable doodle of a cat or dog! 20 Data Here is a back‑to‑back stem‑and‑leaf plot of the times taken to draw each animal, followed by computer software output summary statistics of each sampled data set: 0 5 9 1 6 5778 2 1355577789999 256777 3 001222344555666788889 0011224446667789 4 011223445666666789999 2233444455566889 5 000122223334466677888 000012334444556677888889 6 111222344455566666 0122234555556666899 7 022223345568 0012233445667888 8 1366 11224556666999 9 268 001124456799 10 49 02233367779 11 34 2466 12 6 13 9 3 14 2 15 min Q1 median mean Q3 max sd cats times 0.500 3.700 5.100 5.399 6.500 13.900 2.307 dogs times 1.900 5.500 7.300 7.498 9.500 15.200 2.655 Analysis & Conclusion I was not confident that I could assume that both the samples came from normal 25 distributions, so I opted to use the Mann‑Whitney Test to determine if the samples had different average drawing times. After ranking all of the times in order (not shown), I obtained a rank sum of Wcats = 12 048. I then had to use a normal approximation which gave a ‑test statistic of −6·57 which is 30 less than −2·58 so it is highly significant. This proves that the average time to draw a doodle of a cat was less than that for a dog.

Marking scheme

•1 describe improvement •2 describe improvement •1 add title for each side, and add a key eg 0|5 = 0⋅5 •2 reverse the order of the digits (leaves) on the left hand side •3 calculate upper fence •4 state number of outliers •3 upper fence = 6∙5 + 1∙5 (6∙5 − 3∙7) = 10∙7 •4 5 outliers •5 state hypothesis test •5 test for a difference in population proportions •6 state hypotheses H0 : •6 H1 : •7 state assumption •8 state assumption •7 populations of times to draw the doodles of both cats and dogs have the same shape… •8 … and variability •9 correct parameters •10 standardise W …. •11 … with correct continuity correction E •9 V •10&11 (= −6⋅57009) •12 state hypotheses •13 state significance level •14 state conclusion •12 H0: median time to draw a cat = median time to draw a dog H1: median time to draw a cat ≠ median time to draw a dog •13 1% significance level •14 we reject H0 and we have evidence to suggest that the median time to draw a cat is different to the median time to draw a dog. •15 state assumption •16 correct information •15 assume that the standard deviations of the population doodle times for cats and dogs are equal •16 the sample standard deviations of 2∙307 and 2∙655

Previous question: AH Statistics 2019 Question 12 (CfE)

Next question: AH Statistics 2021 Paper 1 Question 2