2025-10-10

Slide 1: Title Slide

MPG Prediction App A simple Shiny app to predict MPG from car features

Slide 2: Problem

Users often want to quickly estimate fuel efficiency without building a model. Our app solves this problem.

Slide 3: Features

  • Input: Number of cylinders, horsepower
  • Operation: Linear model prediction
  • Output: Predicted MPG
  • Simple instructions included in app

Slide 4: Live Demo

library(shiny)
model <- lm(mpg ~ cyl + hp, data = mtcars)
predict(model, newdata = data.frame(cyl=6, hp=150))
##        1 
## 20.45191