Suppose that you want to build a regression model that predicts the price of cars using a data set named cars.

Q1. Per the scatter plot and the computed correlation coefficient, describe relationships between the two variables - price and weight.

as wieght goes up price increases respectivly

Make sure to interpret the direction and the magnitude of the relationship. In addition, keep in mind that correlation (or regression) coefficients do not show causation but only association.

Create scatterplots

Interpretation

Run a regression model for price with one explanatory variable, weight, and answer Q2 through Q5.

Q2. Is the coefficient of weight statistically significant at 5%? Interpret the coefficient.

no because at the coeficiant there is no Signif code attributed to the 0.05 value, the coeficants signif code of *** indicate it is only signifigant at 0%

Q3. What price does the model predict for a car that weighs 4000 pounds?

Hint: Check the units of the variables in the openintro manual. the model pridicts that the price for a 4000lb car would be around $47,000

Q4. What is the reported residual standard error? What does it mean?

the reported risidual standard error is 5.169 this is the estimated amount the model could be off by, The typical difference between the actual weight and the weight predicted by the model is about 5.1 kg. In other words, the model estimated weight misses the actual weight by about 5.1 kg.

Q5. What is the reported adjusted R squared? What does it mean?

the reported adjusted r squared is 0.5666 this means The R^2 of 0.5666 means that 56% of the variability in weight can be explained by height.

Run a second regression model for price with two explanatory variables: weight and passengers, and answer Q6.

Q6. Which of the two models better fits the data? Discuss your answer by comparing the residual standard error and the adjusted R squared between the two models.

i woukd say the standard risidual error better fits since it has a lower value than the adjusted R squared

Build regression model

Interpretation