Prediction Application

gr3n4d3s
march 2018

Overview

  • Understanding the relationship between the speed at which cars travel and the distance it takes them to stop is critical for any driver.
  • In collaboration with Johns Hopkins university and “Assignment for week 4”, we've now developed an application that can predict this phenomena
  • From the simple click of a button you can make accurate predictions of a cars stopping distance from a blistering speed of 4mph to 25mph

The Data

  • A staggering 100 plus points have been used in the applications model.
  • Even the data itself comes built in directly from the R data-set “Cars”.
  • Here is a summery:
  speed dist
1     4    2
2     4   10
3     7    4
4     7   22
5     8   16
     speed           dist       
 Min.   : 4.0   Min.   :  2.00  
 1st Qu.:12.0   1st Qu.: 26.00  
 Median :15.0   Median : 36.00  
 Mean   :15.4   Mean   : 42.98  
 3rd Qu.:19.0   3rd Qu.: 56.00  
 Max.   :25.0   Max.   :120.00  

Data Plot

  • A simple “ggplot2” plot to illustrate the data we used in the application

plot of chunk plot

Thanks

head(cars[1:5,])
summary(cars)
library(ggplot2)
qplot(x = speed, y = dist, data = cars)