Sampling Methods Simulator
Draw samples from a virtual school with five sampling methods, see each sample on a grid and compare bias and precision over hundreds of repeats.
Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya
…
Cara melakukannya
- 1Pick a method
Choose a sampling method and read its definition in the note.
- 2Set the size
Move the sample size slider between 10 and 100.
- 3Draw a sample
Press Draw a new sample and look at the outlined students and the year-group table.
- 4Build a log
Draw several samples to see how much the sample mean varies around μ.
- 5Compare methods
In Compare methods choose the number of repeats and press Run comparison.
- 6Practise
Use Practice to name methods from descriptions and to calculate stratified sample sizes.
Tentang alat ini
Textbooks define sampling methods in a sentence each, but the real lesson is what each method does to the answer. This simulator builds a virtual school of 200 students in four year groups and eight classes, each with a test score. Older students score a little higher, the two classes in each year differ, and keen high scorers tend to turn up first, just as in a real survey. You choose a method and a sample size, draw a sample and see exactly who was picked, how the year groups are represented and how far the sample mean is from the true mean. The compare tab repeats every method hundreds of times and reports the bias and the spread of the sample mean, so the strengths and weaknesses of each method become visible numbers.
Who it is for
Students in GCSE statistics, A-level, AP Statistics and research methods courses in psychology, geography and biology, and teachers who want a demonstration that goes beyond definitions.
The five methods
Simple random sampling gives every group of n students the same chance of selection. Systematic sampling chooses a random start between 1 and k = N ÷ n and then every kth student on the list. Stratified sampling splits the school into year groups and samples each in proportion to its size, using the largest-remainder method so the numbers add up to n. Cluster sampling picks whole classes at random and includes everyone in them. Quota sampling fills a quota for each year with whoever is available first, which is not random.
Reading the grid
Each square is a student, coloured by year group and shaded by score; picked students are outlined. The table below compares the share of each year in the population and in the sample, with the proportional allocation for reference. Your draws are logged as a bar chart of sample means against the population mean.
Comparing methods
Run comparison draws 100, 300 or 1,000 samples with each method. Bias is the average of the sample means minus the true mean; spread is their standard deviation. In this population, quota sampling shows a clear upward bias, stratified sampling the smallest spread, and cluster sampling the largest spread because whole classes differ from each other. Simple random and systematic samples are close to unbiased.
Worked example
The school has year groups of 70, 55, 45 and 30 students. A stratified sample of 40 takes 70 ÷ 200 × 40 = 14, then 11, 9 and 6 students, which add to 40. In an exam question with groups of 120, 90 and 150 and a sample of 40, the first group gets 120 ÷ 360 × 40 = 13.3, so 13 students.
Limits
The school is simulated, with scores drawn from a model rather than real data, so the size of each effect depends on the settings and seed. Real surveys also face non-response, poor sampling frames and question wording, which are not modelled. Systematic sampling here assumes the list is in class order; a list with a hidden pattern can bias it.
Contoh berselesaian
Year groups 70, 55, 45, 30 and n = 40: stratified sample sizes 14, 11, 9 and 6.
Ringkasnya
- Kategori: Matematik & sains
- Berjalan dalam pelayar, tanpa pendaftaran, tanpa muat naik.
- Maklumat yang anda masukkan kekal pada peranti anda.
- Tersedia dalam bahasa Inggeris.
- Kandungan disemak kali terakhir:
- Sumber rasmi: OpenStax Introductory Statistics 2e, section 1.2: Data, Sampling, and Variation in Data and Sampling
Soalan lazim
What is the difference between stratified and cluster sampling?
Stratified sampling takes some members from every group; cluster sampling takes all members from a few randomly chosen groups. Stratified samples are more precise, cluster samples are cheaper to collect.
Why is quota sampling biased?
The interviewer fills each quota with whoever is easiest to reach. Those people can differ from the rest, as the keen students do here, and nothing random protects against it.
How is the stratified sample size for each group worked out?
Group size ÷ population size × sample size, then rounded. The tool uses the largest-remainder method so that the rounded numbers still add up to the sample size.
What do bias and spread mean in the comparison?
Bias is how far the method misses on average; spread is how much one sample can vary. A good method has little of both.
Is systematic sampling random?
Only the starting point is random. It behaves like a random sample unless the list has a pattern that repeats every k members.
Can I change the population?
Change the population seed to generate a different school with the same structure, and export it as a CSV file to analyse elsewhere.
