1. Learn
  2. /
  3. Courses
  4. /
  5. Inference for Linear Regression in R

Exercise

Hypothetical population - less variability around the line

In order to understand the sampling distribution associated with the slope coefficient, it is valuable to visualize the impact changes in the sample and population have on the slope coefficient. Here, reducing the variance associated with the response variable around the line changes the variability associated with the slope statistics.

Instructions

100 XP
  • Look at the plot that has been drawn for you.
  • Swap popdata for new_popdata in the sampling code, and redraw the plot.
  • Look at the new plot. How is it different?