Draw a sample selects units from your sampling frame using your chosen design. This guide explains how each design works first, then shows how to apply them using AnalyZ Solutions.
Knowing your sample size is only half the job. Selecting which units actually end up in your sample is the other half, and it depends entirely on having an accurate, well structured sampling frame to begin with. This guide first explains what a sampling frame is and how to build one, then walks through exactly how each sampling design works, then shows how to apply it in AnalyZ Solutions.
A sampling frame is the complete list of every unit in the population you intend to sample from, the actual list a design is applied to. If the population is households in a district, the frame is a list of every household, or every enumeration area that can be used to reach them. If the population is health facilities, the frame is a list of every facility. The frame is not the population itself, it is the operational list that stands in for the population when a sample is drawn, and the quality of the sample can never exceed the quality of the frame it was drawn from.
A usable sampling frame typically comes from one of a few sources, often combined.
Whichever source is used, the frame should be as current as practical, since populations move, grow, and change between when a list was made and when it is used to draw a sample.
No adjustment made after the sample is drawn can fully correct for a flawed frame. This makes frame quality one of the highest leverage points in the entire study design, often more consequential than the sample size calculation itself.
At minimum, a frame needs a unique identifier for each unit. Beyond that, which columns are needed depends on the sampling design being used, strata and cluster designs need the relevant grouping column present before the draw, not added afterward.
| Column | Purpose | Required for |
|---|---|---|
| Unique ID | Identifies each unit unambiguously, and lets the selected sample be linked back to the frame | Every design |
| Name or location descriptor | Identifies the unit in terms field teams can act on, such as a household head's name or a facility name | Every design |
| Region, district, or stratum | The grouping variable used to ensure representation across subgroups | Stratified |
| Cluster or village ID | Identifies which higher level group, such as a village or facility catchment area, each unit belongs to | Cluster, PPS |
| Size measure | A count, such as population or household count, used to weight the chance of selection | PPS |
| Contact information | Phone number or address, useful for field logistics though not required by the sampling mechanics itself | Recommended |
An example household frame prepared for a cluster survey might look like this.
| household_id | household_name | village | region | household_size |
|---|---|---|---|---|
| HH0001 | A. Mensah | Kudo | North | 5 |
| HH0002 | B. Osei | Kudo | North | 3 |
| HH0003 | C. Boateng | Fani | North | 6 |
| HH0004 | D. Asante | Fani | North | 4 |
| HH0005 | E. Owusu | Lano | South | 7 |
Here, village supports a cluster or PPS design, region supports a stratified design, and household_id is what the sample selection actually operates on and reports back.
| Design | Use when |
|---|---|
| Simple random | Every unit has an equal chance of selection, no additional structure needed. |
| Systematic | Selecting every kth unit after a random start. Requires the frame to already be in a random or otherwise non-patterned order. |
| Stratified | Representation is needed across subgroups, such as region, gender, or facility type. |
| Cluster | Whole groups, such as villages or schools, are being selected rather than individuals directly. |
| PPS | A multi-stage design where clusters vary substantially in size. Larger clusters get a proportionally higher chance of selection. |
Understanding the mechanics behind each design, not just what it is called, is what allows the resulting sample to be explained and defended later, to a supervisor, a reviewer, or a donor asking how a specific unit ended up selected. Each example below uses a small illustrative frame to make the mechanism concrete.
Every unit is given an equal chance of selection, with no grouping or ordering involved. Conceptually, this is equivalent to writing every unit's identifier on an identical slip of paper, mixing them thoroughly, and drawing the required number without looking.
A frame of 10 households, HH01 through HH10, needs a sample of 3.
Because every unit had the same probability of selection, defending the output only requires confirming the frame was complete and the draw was genuinely random, not why any specific household was or was not chosen.
A fixed interval, k, is calculated by dividing the frame size by the desired sample size. A single random starting point between 1 and k is chosen, and every kth unit after that is selected.
A frame of 20 households needs a sample of 5. Interval k = 20 ÷ 5 = 4. A random start between 1 and 4 is drawn: 2.
Only the starting point is random, everything after that is fully determined by the interval. This is why systematic sampling requires the frame to already be in an order that has no hidden pattern matching the interval, otherwise the fixed step size can accidentally and repeatedly land on, or skip, a particular subgroup.
The frame is divided into subgroups, strata, and a sample is drawn independently within each. In proportionate allocation, each stratum's share of the sample matches its share of the total frame.
A frame of 100 households, 30 Urban and 70 Rural, needs a total sample of 20.
Every unit within a given stratum still has an equal chance of selection, the allocation across strata is what differs from simple random sampling. Defending the output here means being able to state the allocation rule, proportionate to population share in this example, and confirming it was applied consistently.
Whole groups are selected first, and either all units within a selected group, or a fixed number sampled within it, become part of the sample.
A frame of 15 villages needs 5 villages selected, with all households in each selected village included.
Households within the same village are not independently selected from each other, they are included as a block once their village is chosen. This is precisely why a design effect adjustment is needed when calculating the sample size for a cluster design, since households within the same selected village tend to be more alike than households picked completely at random. See Design Effect and ICC Explained for the statistical reasoning behind this.
Clusters are selected with a probability proportional to a size measure, so a village with more households has a proportionally higher chance of being chosen than a smaller village. This is implemented by assigning each cluster a range of cumulative population, then drawing random numbers across the full cumulative range.
Five villages with populations 50, 120, 30, 200, and 100, total 500, need 3 clusters selected by PPS.
| Village | Population | Cumulative range |
|---|---|---|
| A | 50 | 1–50 |
| B | 120 | 51–170 |
| C | 30 | 171–200 |
| D | 200 | 201–400 |
| E | 100 | 401–500 |
Three random numbers are drawn between 1 and 500: 45, 250, and 480.
Village D, the largest, occupies 200 of the 500 possible numbers, a 40% chance of being hit by any single random draw. Village C, the smallest, occupies only 30 of 500, a 6% chance. This is the entire mechanism behind why PPS gives larger clusters a proportionally higher chance of selection, and it is what makes the resulting sample self weighting when a consistent number of units is then sampled within each selected cluster.
Watch drawing a sample from a sampling frame in the AnalyZ Solutions interface
A seed is simply a starting number for the random selection process. Setting one means anyone with the same frame, design, and seed will get an identical sample, which is genuinely useful for reproducibility without meaningfully increasing bias risk, since the frame is fixed before selection and there is no outcome data yet to influence.
Every export includes a sample identifier column giving each selected unit a sequential number, useful directly as an enumeration list for field teams. Design-specific columns are added automatically, a stratum column for stratified draws, and a cluster column for cluster or PPS draws.
Open Draw a Sample in AnalyZ Solutions. Free, browser based, your data never leaves your device.
Try it out