- Car buyers often struggle to estimate actual fuel costs.
- Horsepower is a key driver of fuel consumption, but the math isn’t always intuitive.
- We need a simple, data-driven tool for instant estimates.
January 11, 2026
Our new Shiny application provides: - Instant Predictions: Get MPG results as you move a slider. - Data-Driven Accuracy: Based on the industry-standard mtcars dataset. - Ease of Use: No technical knowledge required.
We utilize the mtcars dataset. Here is a quick look at the relationship between Horsepower (hp) and Miles Per Gallon (mpg) that powers our model:
mpg hp Mazda RX4 21.0 110 Mazda RX4 Wag 21.0 110 Datsun 710 22.8 93
Embedded R Logic:
The app runs a linear regression model. When you move the slider, the server executes this logic:
## 1 ## 19.86462
You can access the application and the source code using the link below:
Live App: https://sagnikbhowmik.shinyapps.io/MyShinyApp/
Thank you for your time!