Appex 11
STA 112 - Fall 2022
Part 1
- Copy the following template into RStudio Pro:
https://github.com/sta-112-f22/appex-11.git
- Go to https://lucy.shinyapps.io/magnolia-data/ and collect 30 data points
- Bring your data into R. Fit a linear model predicting leaf length from leaf width
- What is the coefficient for \(\hat\beta_1\)? What is the t-statistic? What is the p-value?
- What hypothesis is this p-value assessing?
Part 2
How many degrees of freedom does SSModel have?
\[n - 1 = df_{SSModel} + (n - 2)\]
Part 3
- Open
appex-11.qmd
- Using your magnolia data, predict leaf length from leaf width
- What are the degrees of freedom for the: Sum of Squares Total, Sum of Squares Model, Sum of Squares Errors
- Calculate the following quantities: Sum of Squares Total, Sum of Squares Model, Sum of Squares Errors
- Calculate the F-statistic for the model and the p-value
- What is the null hypothesis? What is the alternative?