Question: Consider the data in the following table where speed denotes the speed in miles per hour of a car before beginning to break and distance
Consider the data in the following table where speed denotes the speed in miles per hour of a car before beginning to break and distance the distance in feet covered before the car comes to a stop note that there are observations:
distance
speed
State the answer and provide the R code used for the following questions:
a Create a dataframe in R called cars that contains the information above. Print it in your RStudio and check its naming matches the naming above. You do not need to state an answer other than code for this question. mark
b Fit a simple linear regression with speed as the predictor and distance as the outcome. What are the slope and intercept coefficients? mark
c Provide a percent confidence interval for the slope coefficient of the regression. mark
d Predict the distance it would take a car driving at miles per hour to stop according to the model you have fit to the data. mark
e Perform a basic check using a graphical approach of whether the relationship between speed and distance is linear. Explain your conclusion. mark
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
