Data sampling stratified allocation calculator

Calculate integer sample by stratum and allocated sample total with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use integer sample by stratum and allocated sample total to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Stratum population sizes (integer counts)
100,50,25
Desired total sample (count)
35
Minimum per stratum (count)
3
Allocation weights
4,2,1
Integer sample by stratum
[20,10,5]
Allocated sample total
35
Unsampled population by stratum
[80,40,20]

Try another scenario

Stratum population sizes (integer counts)
100,50,25
Desired total sample (count)
45
Minimum per stratum (count)
3
Allocation weights
4,2,1
Integer sample by stratum
[26,13,6]
Allocated sample total
45
Unsampled population by stratum
[74,37,19]
Calculation method

Calculation method

Integer sample by stratum

Initialize min(population,minimum); repeatedly add one to eligible stratum with largest target×weight/sum(weights)−allocated, index ties.

Allocated sample total

Sum allocated samples; exactly requested sample.

Unsampled population by stratum

Population minus allocated sample.

Symbols and units
a
Stratum population sizes (integer counts)
b
Desired total sample (count)
c
Minimum per stratum (count)
d
Allocation weights

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Calculation steps and notation

sum(list) adds all entries in the list.

Assumptions & limits

Assumptions & limits

  • Bounded integer weighted-quota allocation with population caps and explicit minimums; deterministic heuristic, not variance-optimal Neyman allocation. Supported limits: 1–100 strata; desired sample≤10000 and ≤total population.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.