Animated Statistics Using R (to be moved to AniWiki!)
To see a World in a Grain of Sand; And a Heaven in a Wild Flower; ...
Table of Contents
  1. Simple Random Sampling
    1. Illustration for Simple Random Sampling
    2. Central Limit Theorem in Statistical Inference
  2. Stratified Sampling
  3. Cluster Sampling
  4. Systematic Sampling
  5. Other Sampling Methods
    1. Quota Sampling
    2. Convenience Sampling
    3. Matched Random Sampling
Some Notes

Acutally I only want to demonstrate the four basic sampling methods here, namely "Simple Random Sampling Without Replacement" (SRSWOR), "Stratified Sampling", "Cluster Sampling", and "Systematic Sampling"; as for other methods such as quota sampling, I don't intend to give any illustrations here because there isn't much sense of randomness.

In the following animations, I'll use 100 points as the population and draw samples from them using the four differenct methods. Colored rectangles mean "strata" or "clusters". I'll mark those points which are picked out by my program with big red circles.

As we all know, the Central Limit Theorem plays an important role in the statistical inference in survey sampling. However, I find most Chinese textbooks on survey sampling are rather misleading on the interpretation of Central Limit Theorem, thus I use another section to give some simulations.

All of these functions can be found in the R package animation with names like sample.***(), e.g. sample.simple().

For more knowledge on sampling techniques, please refer to those specific books such as: