Dataset
For this chapter, we will be using a dataset that contains technical specifications for different cars. This dataset is a modified version of the MPG_dataset.csv
available here: https://www.kaggle.com/uciml/autompg-dataset. Some of the columns of the original dataset were removed since they are not relevant to this chapter.
The columns of the dataset are as follows:
- mpg: Miles per gallon (continuous variable)
- cylinders: Number of cylinders in the car (multi-valued discrete variable)
- displacement: Combined volume of all the cylinders (continuous variable)
- horsepower: Unit of power (continuous variable) – target/dependent variable
- weight: Weight of the car (continuous variable)
- acceleration: Acceleration of the car (continuous variable)
Let's say that we are trying to buy a car and our deciding factor is horsepower. However, we have access to values for all other variables (mpg, displacement, weight, and acceleration...