What are the limitations of using a linear model for this data?

Words: 580
Pages: 3
Subject: Do My assignment

1. This assignment must be created as a Quarto document in RStudio, Rendered to PDF. a) Begin by creating a brand new Quarto file. Set your name to your full (registered in the course) name and student number (e.g., “Jane Smith – 0612345”) and the title to “MATH 1051H – R Assignment 5” b) Set the Default Output Format to PDF 2. The assignment must be turned in (that means created AND uploaded) digitally as a Rendered PDF – any other format will not be graded, and you will receive a ZERO grade. This will be fully enforced for this assignment. No screenshots, and definitely no screenshots of RStudio non-rendered. 3. Save your Quarto file to a file name without any spaces in it (suggestion: 1051H_r5.qmd). This is specifically for grading ease, and not something you would normally do in a lab report or document made with Quarto. Just before each of the ## headers (see below, Questions instructions), place the following command: \newpage So it would look something like: … end of the previous question … \newpage ## Start of the Next Question Questions (each must be created as its own section, using ## in Quarto, with appropriate header descriiptions). Do not number the questions in the Quarto document. See the note above about the \newpage command. 1. Academic Integrity Please copy the following statement as the first question of your submission, under the heading “Academic Integrity”. I am aware that I can discuss the questions on this assignment with others. However, showing my files or code to another student (allowing them to copy), or having someone show their files or code with me (copying), in any way is considered cheating and will be penalized according to Trent’s Academic Integrity policies. Question 2 Water treatment plants add bicarbonate to water in order to keep microorganisms in the system happy and healthy. The data in the file groundwater.csv is a sample of pH is measured on a logarithmic scale from 0 to 14 and bicarbonate levels are measured in parts per million (ppm). Determine if there is a linear relationship between bicarbonate levels and pH in the water, using everything you’ve learned about simple linear regression models, their associated hypothesis tests, and diagnostics. “A reader of your work should be able to tell what you did, and what the result was, without knowing any R Question 3 For the last 31 years my neighbour in Peterborough has been tracking the temperature and number of trick-or-treaters on Hallowe’en. She claims that the temperature effects how many costumed kids are around. The data she’s gathered is provided to you in the file trickOrTreat.csv. Determine if there is a linear relationship between the ambient temperature and the number of kids who visited for Hallowe’en. Interpret the slope and intercept in context. Also answer the following two questions about this model. a) The temperature next Hallowe’en is forecast to be 10oC warmer than this year. How many more trick- or-treaters can she expect to get? b) What are the limitations of using a linear model for this data? (e.g., where does the model start to return nonsense results? Any other limitations?) Bonus: for one bonus mark, when displaying the diagnostic plots for the linear regression model, deliberately hide the code used to create them, so that the plots appear, but the code does not. Ensure you double check the formatting and spacing so the appearance looks good in the final render in order to earn the bonus point.