FuelWise: Car Fuel Efficiency Predictor

Tasi
26 November 2026

The Problem

  • Fuel costs money, and some cars use far more than others
  • Most people don't know how a car's weight or power affects its fuel use
  • FuelWise gives an instant estimate of miles per gallon (MPG)

How FuelWise Works

  1. Move the weight slider
  2. Move the horsepower slider
  3. Choose automatic or manual transmission
  4. The predicted MPG updates instantly, with a chart comparing it to real cars

Try it: https://fuelwise-tas.shinyapps.io/fuelwise/

The Model Behind It

FuelWise uses a linear regression on R's built-in mtcars data:

model <- lm(mpg ~ wt + hp + am, data = mtcars)
predict(model, data.frame(wt = 3, hp = 120, am = 0))
      1 
20.8697 

A 3,000 lb automatic car with 120 horsepower gets about 21 MPG.

Summary