Saathvik
September 2026
Built with R Shiny and the mtcars dataset
The experience is designed for a novice: describe a car, read the MPG estimate, then compare it with real observations.
The server fits a multiple linear regression and evaluates it reactively:
fit <- lm(mpg ~ wt + hp + factor(cyl) + factor(am), data = mtcars)
round(c(R_squared = summary(fit)$r.squared,
RMSE_MPG = sqrt(mean(residuals(fit)^2))), 2)
R_squared RMSE_MPG
0.87 2.17
The displayed values above are generated by R when this presentation is rendered.
mtcars averageThe same data provide immediate visual context inside the app.
Open the Shiny application, choose a vehicle profile, and explore what changes its fuel economy.
Source: github.com/ProfessorSad777/fuel-economy-explorer