Question: Does vehicle weight help explain fuel economy?
Answer: Yes, in mtcars, heavier vehicles tend to have lower mpg. Simple linear regression makes this pattern interpretable and quantifiable.
What we learned:
- Statistics turns an apparent pattern into a measurable relationship.
- Mathematics defines correlation, a regression line, and explained variation.
- R, ggplot2, and Plotly communicate the evidence through static and interactive visuals.
Final message: Vehicle weight is a useful predictor of mpg in this sample, but predicting modern vehicle performance would require newer, richer data.
Data: built-in R mtcars dataset. Methods and visualizations created with base R, ggplot2, and Plotly.