https://think.cs.vt.edu/corgis/csv/cars/cars.html
- Programatically download the data from the above link.
- Import the data into a Pandas dataframe.
- Show the head of the Pandas dataframe.
- Perform linear regression on the downloaded dataset, where
y=Highway mpg
andx=Horsepower
. - What is the coefficient (slope) of your model? What does this number mean?
- According to your model, what is
y
whenx=2000
. - Show the regression line on a scatterplot with the other datapoints.
- Using
sklearn
create a classifier that can predict the make of a car, based on provided features. The following features should be included:City mpg
Highway mpg
Height
Width
Length
Horsepower
Year
- Show the decisiontree of your model.
- Use your model to predict the make of a car.
- Did the student programatically download and import the data?
- Did the student correctly display the regression line in a graph`?
- Did the student find the coefficient of the line, and reflect on its meaning?
- Did the student correctly provide their classification model with imported data?