Works on this device
Systematic Sampling Calculator
Choose every k-th unit of a list after a random start. Type the population size or paste your list; the page works out the interval, draws the start and lists the sample.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use this calculator
- Choose Choose a systematic sample. Type the population size N, or paste your list of units, one on each line.
- Type the sample size n and choose the interval rule. When N ÷ n is a whole number both rules give the same kind of sample.
- Choose how the start is found: a new secure random start, a start from a seed (so you can repeat it), or a start you choose yourself.
- Choose Choose the sample. Copy or download the positions or the chosen units.
The method
- Interval: k = N ÷ n. The linear rule rounds it down; the circular rule rounds it to the nearest whole number (a half goes up).
- Linear rule: a start r from 1 to k, then r, r + k, r + 2k and so on, n units in all.
- Circular rule (Lahiri, 1952): a start r from 1 to N, then go on in steps of k and round the end of the list back to the start: ((r − 1 + j × k) mod N) + 1.
- Random start: a whole number drawn without bias from the secure random numbers of your browser (Web Crypto), or from a seed with the generator xoshiro128**. The same seed gives the same start again.
Worked example
N = 500 and n = 50, so k = 500 ÷ 50 = 10. With the start 7 the sample is units 7, 17, 27, … 497: 50 units, and every unit had the chance 1 in 10.
N = 103 and n = 10: N ÷ n = 10.3, so the linear rule uses k = 10, and units 101 to 103 can never be chosen. The circular rule also uses k = 10, but the start may be any unit from 1 to 103: with the start 98 the sample is 98, 5, 15, 25, … 85.
A caution about patterns in the list
A systematic sample is only as good as the order of the list. If the list has a pattern that repeats every k units, such as every 7th day being a Sunday or every 10th house being on a corner, the sample can be badly biased. Look at the order first, or mix the list.
For a sample from groups, share the sample out over the groups with the Stratified Sampling Calculator and sample each group systematically. To put people into treatment groups at random, use the Random Assignment Generator.
Limits you should know
- Populations up to 1,000,000,000 units, samples up to 100,000 units, and pasted lists up to 100,000 lines.
- There is no exact formula for the standard error of a systematic sample from one start. Treating it as a simple random sample is common, but it is wrong when the list has a pattern.
- The list stays on your device. A start from a seed can be repeated by anyone who knows the seed.