Statistics 3011 (Geyer and Jones, Spring 2006) Examples: Random Samples

This pages shows you how to draw a random sample from a defined population using the computer.

For our example we will use the data in the URL

http://www.stat.umn.edu/geyer/3011/gdata/pop.txt

so we can use the URL external data entry method. (These data are made up. No story goes with them.)

External Data Entry

Or

Comments

The R function sample (on-line help) generates random samples from a population. Each time this is resubmitted, a new sample results. The first argument is the population to be sampled (here x) and the second argument is the sample size.

Questions

How does the sample resemble the population, how is it different?

What happens when you change the sample size?