Problem: It’s hard to quickly estimate a car’s fuel efficiency (MPG) just by looking at its engine power (horsepower).
Solution: A simple, interactive Shiny application that gives an instant prediction based on a pre-built model.
October 30, 2025
Problem: It’s hard to quickly estimate a car’s fuel efficiency (MPG) just by looking at its engine power (horsepower).
Solution: A simple, interactive Shiny application that gives an instant prediction based on a pre-built model.
This is what the application looks like.
The application is powered by a simple linear regression model.
mtcars dataset.lm(mpg ~ hp, data = mtcars) to find the relationship between horsepower and MPG.You can run the app and see the code at the links below.
App Link: https://krips707.shinyapps.io/ddp_final/
GitHub Code Link: https://github.com/prakdwi/coursera-shiny-app
This presentation was made with R Markdown. Here is the embedded R code (as required by the assignment) showing a summary of the data used in the model:
# data summary(mtcars$hp)
## Min. 1st Qu. Median Mean 3rd Qu. Max. ## 52.0 96.5 123.0 146.7 180.0 335.0