Question
(19 marks) A random sample of irises of three different species (A, B, and C) from a particular region was collected. The length and width
(19 marks) A random sample of irises of three different species (A, B, and C) from a particular region was collected. The length and width of one petal on each flower were recorded, along with its species. The data are available in the file flower.txt. Of interest is the linear relationship between mean petal length and petal width, and how this relationship differs across species. You may assume that petal lengths are independent.
a. (2 marks) Write down the linear model for these data using regression notation for all predictors. Be sure to define your variables and to state all assumptions.
b. (2 marks) Write down the linear model for these data using regression notation for numeric predictors and ANOVA notation for categorical predictors. Be sure to define your variables and to state all assumptions.
c. (1 mark) Fit the model in (a) and provide the table of parameter estimates, standard errors, etc.
d. (2 marks) Write down the equation for the fitted regression line separately for each species.
e. (2 marks) Produce a scatterplot to illustrate the relationship between petal length and width, using a different colour for each species. Be sure to label the axes appropriately. Include the fitted regression lines.
f. (3 marks) Does the common SD assumption seem reasonable in this setting? Justify your response, considering this question both within and across species.
g. (2 marks) Does the normality assumption seem reasonable in this setting? Justify your response.
h. (5 marks) Conduct the test of whether the slopes of the regression lines vary across species.
In particular:
i. Specify the null and alternative hypotheses.
ii. Specify the value of the test statistic.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started