Session Ready
Exercise

Original population - change sample size

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, changing the sample size directly impacts how variable the slope is.

Instructions 1/2
undefined XP
  • 1
    • From popdata, take random samples of size 50, replicated 100 times.
    • Using many_samples, plot response vs. explanatory, grouped by replicate.
      • Add a point layer.
      • Add a smooth trend layer using linear regression, without a standard error ribbon.
    • 2

      Edit the code for many samples to reduce the size from 50 to 10.