Professional Documents
Culture Documents
5240 Assignment4 WI23
5240 Assignment4 WI23
5240 Assignment4 WI23
Dave Riegert
3/18/23
Assignment Description
• Q1: 7 points (5 + 2)
• Q2: 15 points (5 + 3 + 1 + 4+ 2) + 2 BONUS
• Q3: 11 points (4 + 5 + 2)
• Formatting: 3 points
1
Question 1 - Red “Die” No. 40?
a) Is there any difference between the time to death? Conduct a hypothesis test.
b) If there is a difference, which groups are different?
Warning
This data is in a “wide” format and contains NA values. You will need to do some “prepro-
cessing” on the data before performing the analysis as a result.
Parametric
a) Use a linear model and parametric method to determine if there is a relationship between
bicarbonate levels and pH in the water. (Still check and comment on assumptions, but use
a parametric method regardless!)
b) Plot the data and regression line. Include appropriate labels and title. Bonus for including
confidence and prediction intervals on this plot1 [2 marks]. where is the code
c) Provide a 95% parametric confidence interval for the true slope parameter in the linear
model.
Non-Parametric
1
We’re going to talk about these on March 25th.
2
Attention
For parts a) and c), use diagnostic plots as discussed in lecture to check assumptions. Com-
ment on these plots and indicate whether a parametric approach is appropriate. Use the
parametric approach even if it seems that conditions are violated.
You only need to check assumptions once, in part a), but should refer back to them in part
c) as part of the process.
• Provide diagnostic plots, the summary, model formula, and brief discussion of the model fit.
2
b) Fit the quadratic polynomial model: fawn ∼ adult + adult
• Provide diagnostic plots, the summary, model formula, and brief discussion of the model fit.
• Also include the model plotted on top of the original data used in this model.