All AP Courses AP StatisticsAP Stats

Lab

Sampling Distribution Machine

One sample gives one statistic. This lab takes thousands of samples so you can see the distribution of the statistic itself: where it centers, how spread out it is, and what shape it takes as the sample size grows.

How to do this lab

  1. Choose Sample mean or Sample proportion in the Statistic menu. For means, pick a Population shape: roughly normal, uniform, strongly skewed right, or two peaks.
  2. Set the Sample size n slider. For proportions, also set the Population proportion p slider.
  3. Press Draw 1 sample to see one statistic marked by a line, then Draw 100 or Draw 1,000 to build the histogram of the statistic.
  4. Compare Mean of statistics and SD of statistics with SD from formula, and watch whether the normal curve from the formula fits the bars.
  5. Change n or the population, then draw again. Any change to a setting clears the samples already drawn.

What you will learn

  • Describe the shape, center and spread of a sampling distribution, not just of one sample.
  • Explain why sample means from a skewed population still look approximately normal when n is large.
  • Show that the spread of the sample statistic shrinks as n grows, by a factor of the square root of n.
  • Check the normality condition for a sample proportion by testing np and n(1 - p) against 10.

Common mistakes

  • Mixing up the two graphs. The top graph is the population, and the bottom graph is the distribution of the sample statistic.
  • Treating n as the number of samples drawn. The sample size is how many values go into each statistic, while Samples drawn counts the statistics.
  • Expecting the sample means to be as spread out as the population. Their spread is the population standard deviation divided by the square root of n.
  • Judging the shape after only a handful of draws. Draw at least 1,000 before you decide.

Check your work

  • After 1,000 draws, SD of statistics should land close to SD from formula.
  • Mean of statistics should be near the population mean shown under the top graph, or near p in proportion mode.
  • In proportion mode, read the Condition readout and confirm np and n(1 - p) are both at least 10 before trusting the normal curve.

Challenges

  1. Choose the strongly skewed population and n = 2. Draw 1,000 samples. Describe the shape of the sample means. Now try n = 30.
  2. With n = 25, compare the standard deviation of the simulated sample means to the population standard deviation divided by 5. Why 5?
  3. Switch to proportions with p = 0.1. Find the smallest n where the simulated distribution of p-hat looks roughly symmetric. Check np at that n.
  4. Quadruple n. What happens to the spread of the sample statistic? By what factor?

Topics this lab supports