Yufni / mpg_linear_regression

Linear regression to predict gas consumption of vehicules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MPG Linear Regression

chevrolet chevelle malibu

This dataset was taken from the StatLib library which is maintained at Carnegie Mellon University. The dataset was used in the 1983 American Statistical Association Exposition.

You can find my own variation with consecutive ID added here.

The objective was to create a linear regression to predict the MPG(Miles Per Gallon) consumption.

Please refer to this notebook to see the process in detail.

The 80% of data was used to train the model and 20% remaining for test.

The result was a model with Mean Squared Error (Error) of 12.22 and r2 Score (Accuracy) of 0.8011605762467994.

About

Linear regression to predict gas consumption of vehicules

License:MIT License


Languages

Language:Jupyter Notebook 100.0%