MPG Predictor: Shiny App Pitch

Your Name
27 October 2026

Predict a car's fuel efficiency in two clicks.

The Problem

  • Buyers want to know how weight, power and transmission affect mileage.
  • Raw regression output is hard for novices to read.
  • Solution: an interactive app that turns sliders into an instant MPG prediction.

The App

  • Inputs: weight slider, horsepower slider, transmission radio button, trend-line checkbox.
  • Output: predicted MPG plus a plot placing your car among real cars.
  • Built-in Documentation tab guides first-time users.
  • Live app: https://YOUR-USERNAME.shinyapps.io/mpg-app/

Under the Hood (embedded R code)

fit <- lm(mpg ~ wt + hp + am, data = mtcars)
round(summary(fit)$r.squared, 3)
[1] 0.84
round(coef(fit), 3)
(Intercept)          wt          hp          am 
     34.003      -2.879      -0.037       2.084 

Model explains this much of the variance in mpg (R-squared above).

Try It / Results