This project is about predicting mpg of a car based on different variables using linear regression. 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.
Variables that are available in the data set are
- mpg: continuous
- cylinders: multi-valued discrete
- displacement: continuous
- horsepower: continuous
- weight: continuous
- acceleration: continuous
- model year: multi-valued discrete
- origin: multi-valued discrete
- car name: string (unique for each instance)
You can read more about the data set at auto-mpg.names file present in the project
auto_mpg.R file contains all the R code which is used to predict mpg based on different variables.
auto_mpg.csv file contains all the data that is used to predict the mpg values.
please refer the file "Problem Statement.txt" for the problem statement related to the project
"R Final Document.PDF" contains the final report and conclusions of the project.
While running the R code make sure that you have included the correct path for the csv to file to be read in the line '119'. replace the path for the code car_data_copy<-read.csv('C:/Users/prana/Desktop/R Project/auto-mpg.csv') with correct csv path.
Pranay Kumar Reddy Katta
Eliran