Referenced from lesson Randomness and Sample Size (Spring, 2021)

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.

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)

2 What do you get?

3 What is the contract for random-rows?

4 What does the random-rows function do?

5 In the Definitions Area, define small-sample and large-sample to be these two random samples.

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

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

8 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.

9 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 the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting