2025-03-19

Introduction

  • This app predicts MPG based on horsepower.
  • Uses a regression model trained on the mtcars dataset.
  • Allows users to input horsepower and receive a predicted MPG.

How It Works

  • User selects horsepower using a slider.
  • The server calculates MPG using a linear regression model.
  • Results are displayed as text and a plot.
## [1] "Predicted MPG for 150 HP: 19.86"

Where to Access the App:

  • Hosted on shinyapps.io.
  • Code available on GitHub.
  • Presentation published on Rpubs.
## Shiny App: https://zxtkdp-somayeh-mehrparvar.shinyapps.io/myshinyapp/
## GitHub Repo: https://github.com/SomayehMehrparvar/MPG_Prediction
## Rpubs Presentation: https://rpubs.com/Somayeh/1286536

Conclusion

  • This app provides an easy way to predict MPG.
  • Uses Shiny interactivity and statistical modeling.
  • Try it yourself by visiting the links!
## ### Thank You!
## Feel free to explore the app and provide feedback!