Hang out with the TAs from STA 199! This is a casual conversation and a fun opportunity to meet the members of the STA 199 teaching team. The only rule is these can’t turn into office hours!
Tea with a TA counts as a statistics experience.
Write the draft in the written-report.Rmd
file in the project repo.
Draft should include
The Pioneer Valley Planning Commission collected data in Florence, MA for 90 days from April 5 to November 15, 2005 using a laser sensor, with breaks in the laser beam recording when a rail-trail user passed the data collection station.
hightemp
: daily high temperature (in degrees Fahrenheit)volume
: estimated number of trail users that day (number of breaks recorded)fall
: 1: season is Fall, 0: season is not Falllibrary(mosaicData)
data(RailTrail)
Fit a linear model using the daily high temperature to predict the estimated number of trail users. Calculate the \(R^2\) and \(Adj. R^2\) for the model.
Fit a linear model using the daily high temperature and whether it is the fall season to predict the estimated number of trail users. Calculate the \(R^2\) and \(Adj. R^2\) for the model.
Which model has the higher \(R^2\)? Which model has the higher \(Adj. R^2\)? Which model is a better fit for the data?
Let’s use the model from Exercise 1. Display the output for the model from Exercise 1 with the 90% confidence interval for the model coefficients.
Interpret the coefficient of hightemp
in the context of the data.
Interpret the 90% confidence interval for hightemp
in the context of the data.
Does the intercept have a reasonable interpretation? If so, interpret the intercept in the context of the data. Otherwise, explain why not.
Conduct a hypothesis test to assess if there is a linear relationship the high temperature and number of trail users. State the null and alternative hypotheses, the test statistic, p-value, and conclusion in the context of the data.
Is the confidence interval consistent with the conclusion from the hypothesis test in the previous exercise? Briefly explain why or why not.
Let’s check the model conditions. Create the diagnostic plots use them to determine if the four model conditions are met.