Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE HELP WITH PYTHON CODING For this assignment, you will be using the data set car _ data.csv . This data set is a modified
PLEASE HELP WITH PYTHON CODING
For this assignment, you will be using the data set cardata.csv This data set is a modified version of the data
There are two columns in this data set.
One is the weight of the vehicle in pounds, and the other is the highway miles per gallon.
Make a scatterplot of the highway miles per gallon axis versus the weight axis
Based on your plot, what is the general trend of how highway miles per gallon varies with the weight?
If you were to build a linear model using this data to predict highway miles per gallon from weight, would you
expect the slope to be positive or negative? Explain.
If the slope of a linear model predicting highway miles per gallon from the weight, interpret the meaning of the
slope being
Write code to add a line to the graph you made in problem Adjust the slope and intercept of this line
until you think you have found the line that best fits the data. Record the slope and intercept.
Use Python to find the bestfit line. The Scikitlearn package is a good choice to use for this.
Find the root mean squared error RMSE of the prediction line you found in problem and the actual bestfit
line found in problem How do these compare?
Use the bestfit line in problem to predict the highway mpg of a car that weighs pounds.
Provided below is the data for the 'cardata.csv and I need to know how to import it and read it as well with pdread.csvcardata.csv
weight hwympg
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