Referenced from lesson Randomness and Sample Size

1) Evaluate the big-animals-table in the Interactions Area. This is the complete population of animals from the shelter! Below is a true statement about that population:

The population is 47.7% fixed and 52.3% unfixed.

2) How close to these percentages do we get with random samples?

Type each of the following lines into the Interactions Area and hit “Enter".

random-rows(big-animals-table, 10)
random-rows(big-animals-table, 40)

3) What do you get?

4) What is the contract for random-rows?

5) What does the random-rows function do?

6) In the Definitions Area, define tiny-sample and small-sample to be these two random samples.

7) Make a pie-chart for the animals in each sample, showing percentages of fixed and unfixed.

8) Make a pie-chart for the animals in each sample, showing percentages for each species.

9) Click "Run" to direct the computer to generate a different set of random samples of these sizes. Make a new pie-chart for each sample, showing percentages for each species.

10) Which repeated sample gave us a more accurate inference about the whole population? Why?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). CCbadge Bootstrap:Data Science by Emmanuel Schanzer, Nancy Pfenning, Emma Youndtsmith, Jennifer Poole, Shriram Krishnamurthi, Joe Politz, Ben Lerner, Flannery Denny, and Dorai Sitaram with help from Eric Allatta and Joy Straub is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.