ExamBank Scot · AH Statistics question bank · All AH Statistics questions
15 marks · Exploratory data analysis
Comment on what Figure 1 reveals about the location and spread of the distributions of fat contents of bakery and non-bakery items in this coffee chain. State the criteria used to identify outliers. Using the information in Output 1, show that the two values identified as outliers in Figure 1 are indeed outliers. Suggest a valid reason for the removal of the values identified as outliers in Figure 1. Assuming that the distributions of fat values and calorie values were normally distributed, and that this sample was representative of all food items sold by the coffee shop chain, statistical inference was performed to compare the nutritional properties of all the bakery and non-bakery items in this coffee shop chain. The results are shown in Output 2 and Output 3. One value has been deleted and replaced by *****. Output 2 Two sample t-test comparing fat content of bakery and non-bakery items t = 1.0496, df = 75, p-value = ***** alternative hypothesis: true difference in means is not equal to 0 sample estimates: mean in group Bakery mean in group Non-bakery 14.56098 12.86111 Output 3 Two sample t-test comparing calorie content of bakery and non-bakery items t = 2.7767, df = 75, p-value = 0.006931 alternative hypothesis: true difference in means is not equal to 0 sample estimates: mean in group Bakery mean in group Non-bakery 368.7805 304.7222 Determine the information that was not included in Output 1 that would help validate the use of the tests reported in Output 2 and Output 3. Write down the null hypothesis being tested in Output 2 and the null hypothesis being tested in Output 3. Using Table 3 in the Statistical Formulae and Tables booklet provided, approximate the value (to 4 decimal places) shown as ***** in Output 2. Referring to Output 3, interpret the value and comment on whether there would be an impact to your mean calorie intake if you consumed either bakery or non-bakery items from the coffee shop chain. Given that the coffee shop chain was selected at random from all the UK coffee shop chains, the data analysed above can be used to draw inferences about all the coffee shop chains in the UK. Name the sampling method that this scenario corresponds to, and describe how the sampling method was conducted. In an effort to understand the nutritional properties of food items sold by coffee shop chains in the UK, a random sample of food items was taken from a randomly chosen national coffee shop chain. Nutritional information such as the fat and calorie content of these food items were obtained. Each food item was also classified as either a ‘bakery’ item or a ‘non-bakery’ item. Using these data, Figure 1 and Output 1 display graphical and numerical summaries of the observed fat values (in grams) and calorie values (in kilocalories) of the bakery and non-bakery items separately. 30 500 400 300 200 100 calories (kcal) 20 10 0 bakery non-bakery fat (g) 0 bakery non-bakery Figure 1 Boxplots of fat and calorie values by type of item (bakery and non-bakery). Output 1 Bakery items (n=41) fat calories Min. : 1.00 Min. :130.0 1st Qu. : 9.00 1st Qu. :320.0 Median :16.00 Median :370.0 Mean :14.56 Mean :368.8 3rd Qu. :19.00 3rd Qu. :430.0 Max. :28.00 Max. :490.0 ------------------------------- Non-bakery items (n=36) fat calories Min. : 0.00 Min. : 80.0 1st Qu. : 8.75 1st Qu. :190.0 Median :11.00 Median :335.0 Mean :12.86 Mean :304.7 3rd Qu. :18.00 3rd Qu. :380.0 Max. :28.00 Max. :500.0
•1 appropriate comment •2 appropriate comment •1 median (fat content) of bakery items is greater than non-bakery items •2 interquartile ranges of fat content are similar Notes: 1. For •1, must mention at least the median 2. For •1, do not accept ‘on average’ 3. For •2, also accept ‘similar ranges’ 4. For •2, do not accept ‘spread’, or ‘variation’. Technical names of either range or interquartile range are required. 5. Candidates who comment on the calories boxplot gain no marks for those comments. Commonly Observed Responses: •3 state criteria •3 any data point that is either above the upper fence or below the lower fence Notes: 1. For •3, this can also be expressed using mathematical notation: eg values < Q1 − 1.5 IQR or > Q3 + 1.5 IQR 2. Mark •3 can be awarded if in part (c) candidates calculate and check both upper and lower fences. Commonly Observed Responses: 1. Candidates who simply state what a fence is, gain 0 marks. 2. Candidates who refer to ‘inner fences’ and ‘outer fences’ gain 0 marks. •4 calculate fences •5 show that values are outliers •4 from Output 1 calorie/bakery group: 1.5 × IQR = 1.5 × (430 – 320) = 165 Q1 – 1.5 × IQR = 320 – 165 = 155 •5 from Figure 1 the two values labelled as • in the calories/bakery group have values <150<155 and are therefore outliers. Notes: Commonly Observed Responses: •6 appropriate reason •6 the values came from data entry errors Notes: 1. For •6, other reasons are acceptable. eg the bakery items corresponding to these values are qualitatively different from the other bakery items and thus form a third class 2. For •6, also accept ‘data collection errors’ and ‘misclassification’ 3. For •6, do not accept reasons based on the effects outliers may have on subsequent analysis of the data Commonly Observed Responses: 1. Candidates who describe ‘anomalous data’ gain 0 marks. 2. Candidates who make reference to outliers ‘skewing the data’ gain 0 marks. •7 appropriate information •7 the (four) sample variances Notes: 1. For •7, also accept ‘the (four) sample standard deviations’ 2. For •7, do not accept ‘population variance’ or ‘population standard deviation’ Commonly Observed Responses: 1. Candidates who make reference to assumptions about normality gain 0 marks. •8 state both null hypotheses H0 : fat = fat •8 H0 : calories = calories Notes: 1. For •8, must mention ‘fat’ and ‘calories’, or distinguish between Output 2 and Output 3 2. For •8, must mention ‘bakery’ and ‘non-bakery’ H0 : fat − fat = 0 3. For •8, also accept H0 : calories − calories = 0 4. For •8, do not accept H0 referring to the mean of differences ie H0 : = 0 Commonly Observed Responses: 1. Candidates who state “true difference in means equal to zero” gain 0 marks (see note 2) •9 approximate probability •10 double to obtain value value= •9 •10 = 0.2938 Notes: 1. For •9, the answer of 0.8531 gains 0 marks. 2. For •9, the standard normal is an appropriate approximation to the distribution 3. For •10, if the approximate value of = 0.2939 is obtained from using a graphic calculator then award both •9 and •10 4. For •10, if the exact value of 2 × = 2 × 0.1486 = 0.2973 is obtained from using a graphic calculator then award both •9 and •10 Commonly Observed Responses: •11 interpret the p-value •12 appropriate conclusion •11 as value < 0.05 (we reject H0) •12 (we have evidence that the mean calories for bakery is not equal to the mean calories for non- bakery) which suggests that there is an impact to your mean calorie intake. Notes: 1. For •11, also accept references to the value being small 2. For •11, accept any appropriate significance level from 0.01 to 0.10 3. For •12, one tailed responses that say calories are higher/lower gain 0 marks. Commonly Observed Responses: •13 state method •14 appropriate description •15 appropriate description •13 simple random sampling •14 all coffee shop chains are listed and given a number •15 one coffee shop chain is selected at random Notes: 1. For •13, also accept cluster sampling. In particular, two-stage cluster sampling since a random sample of bakery and non-bakery items is taken from the selected cluster. Commonly Observed Responses: