24 July, 2021

A brief description

  • This app plots MPG and horsepower of cars from the original mtcars data.
  • In addition to the original data, initially the average of the two factors (mpg and hp) are also added to the plot.
  • One can add a new data point to the original data and see how the linear model prediction changes.

How to use the app

  • One can add a new data point to the original mtcars by choosing or typing numbers from the fields on the left.
  • The possible range for mpg is between 10 and 35.
  • The possible range for hp is from 50 to 350.
  • After pressing the submit button, the new data point appears in the plot in red and one can see how the regression line changes.

The starting page of the App

The red dot is the average of hp and mpg. The red line is the regression line.

Thanks!