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

AH Statistics 2021 Paper 1 Question 2

14 marks · Fitting a linear model

Comment on the relationship between the cost and length of a yacht. Two different transformations of the cost data were used to construct two linear regression models: Model A used a square root transformation, regressing sqrt(cost) against length. Model B used a base 10 logarithmic transformation, regressing log10(cost) against length. The summary outputs for each model are given below. Model A Output model: sqrt(cost) = −204.693 + 55.437 length sample correlation coefficient, r = 0.8971518 t = 14.786, df = 53, p-value < 0.0001 alternative hypothesis: true correlation is not equal to 0 Model B Output model: log10(cost) = 3.70340 + 0.12582 length sample correlation coefficient, r = 0.8948589 t = 14.595, df = 53, p-value < 0.0001 alternative hypothesis: true correlation is not equal to 0 On the basis of the hypothesis tests in these outputs, comment upon the appropriateness of the transformation in each model. Calculate the coefficient of determination for Model A and explain what its value means in this context. Further checking of the Models A and B involved generating residual plots, shown in Figures 2A and 2B. Figure 2A 400 200 0 −200 −400 0 500 250 750 fitted values from Model A residuals residuals Figure 2B 1·0 0·5 0·0 −0·5 −1·0 4·5 5·0 5·5 6·0 fitted values from Model B Use the residual plots to comment on the validity of each model. Using Model A, the output from a 95% confidence interval for the transformed cost of a 15 metre long yacht is given below. One value has been deleted and replaced by *****. Model A Confidence Interval Output data: sqrt(cost) and length sqrt(cost) = −204.693 + 55.437 length variable value length 15 fit SE(fit) lower upper ***** 95.24 592.0915 661.634 Using this output for Model A, calculate the estimated cost and the 95% confidence interval for the actual cost of a 15 metre long yacht. Peter is considering spending £100 000 to purchase a yacht. He plans to substitute the value of 100 000 into each fitted model to obtain an estimate for the mean yacht length that he can buy at this price. Give a reason why it would be inappropriate for Peter to substitute 100 000 for the cost into the equations of either model. Suggest a statistical process that Peter should do instead. An important factor influencing the cost of a sailing yacht is its length. To investigate this conjecture, a random sample of yacht lengths (in metres) and cost (pounds) was obtained. The sample data was selected from listings of second hand yachts sourced via an internet marketplace. A scatterplot of this data is shown in Figure 1. Figure 1 cost (£000) 1200 900 600 300 0 5 10 15 20 length (m)

Marking scheme

•1 appropriate comment •2 appropriate comment •1 there is a positive relationship •2 …but it appears to be non- linear •3 appropriate comment •4 appropriate comment •3 both models may be suitable •4 both have small p-values (to reject H0) •5 correct value •6 appropriate explanation •5 = 0∙805 •6 Model A explains 80% of the variation in square root of cost dependent upon the length of the yacht •7 appropriate comment •8 appropriate comment •9 appropriate comment •7 both plots appear to have random scatter centred on zero •8 both plots appear to have constant variance •9 both models appear valid •10 calculate sqrt(cost) •11 calculate estimate •12 calculate interval •10 estimated sqrt(cost) = −204⋅693 + 55⋅437 ×15 = 626⋅8627 •11 estimated cost = 626∙8627² = £392956 •12 95% Confidence interval (592∙0915², 661∙634²) = (£350572, £437760) •13 appropriate reason •13 both models are set up regressing transformed cost on length. •14 appropriate suggestion •14 He needs to design a model that has regressed length on (transformed) cost

Previous question: AH Statistics 2021 Paper 1 Question 1

Next question: AH Statistics 2021 Paper 2 Question 1