23/11/2020

Dataset - mtcars

For this project I have taken the mtcars dataset from R base.

  • The mtcars is a data frame with 32 views with 11 variables .
  • The variables of this data frame are mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

The objective of this project is to predict the MPG in base of the HP from the cars.

There two predictions: 1. The first one is linear model and, 2. The second one is linear model with two slopes.

Input data

The plot of the data is:

Slide to set the Horsepower

For default the button is in 150H, that you can drag and move the slider in order to set the value of the HP for which one you want to predict the MGP.

In the second part you can find the predicted value for each Model.

View the result

In the right side of the page you can view two dots, each one for each predicted model.