January 11, 2026

The Problem: Guessing Gas Mileage

  • 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.

The Solution: Shiny MPG Predictor

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.

The Data Behind the App

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

Try it Today!