15 Sep 2017

Project Introduction

This is the final project in Developing Data Products course. It is a simple try to use the findings in this course.

In this project, we are working on mtcars data set. In first step, we try to predict hp (house power) based on mpg (miles per gallon). Second we predict hp based on displacement.

About mtcars data set

The mtcars data set, is a list of diffrent car makes and their attributes such as:

  • Car make
  • Horse Power
  • Weight
  • Miles per Gallon

Below you see a summary of this data set:

##                mpg cyl disp  hp drat    wt  qsec vs am gear carb
## Mazda RX4     21.0   6  160 110 3.90 2.620 16.46  0  1    4    4
## Mazda RX4 Wag 21.0   6  160 110 3.90 2.875 17.02  0  1    4    4
## Datsun 710    22.8   4  108  93 3.85 2.320 18.61  1  1    4    1

How does it work

In this application, in the right panle side, you can select the mpg or disp of a specific car. Then as you push the submit button, the server side code will run, and based on the selection of preparing output with the two control check boxes (model1 and model2), two diagram and prediction lines and also the predicted values are drawn.

You can use the application at the following link: https://mkarimi926.shinyapps.io/ddp_prj/

About hp vs mpg

In this section we use mpg as a predictor for hp variable. The following disgram show the relation between these two variables:

About hp vs disp

In this section we use disp as a predictor for hp variable. The following disgram show the relation between these two variables:

Finished