Goal: Demonstrate and visualize simple linear regression using the built-in mtcars dataset with mpg (fuel efficiency) as the response variable and wt (vehicle weight in 1000 lbs) as the predictor.
What you’ll see: Model definition & assumptions, two ggplot2 graphics, one plotly 3D interactive plot, R code used to fit and visualize the model, and math slides using LaTeX.