Sub topic 7
Sampling Strategies: Random, Systematic, Stratified, Subgroup
This chapter assumes you know the DMAIC phases, can describe a process by its inputs and outputs, and are comfortable with the terms mean, proportion and sample. It also assumes you have already chosen a metric and written an operational definition for it, and that you have listed the stratification factors you want to examine. Here you decide which items to observe and how to select them.
Why sampling needs a plan
Most processes produce more items than anyone can inspect. A billing team may issue thousands of invoices a month. Checking each one against its purchase order would take more time than the project allows. So you inspect a sample, which is a subset of the items. The population is the full set of items you want to learn about.
A sample is only useful if it represents the population. A biased sample gives a confident-looking answer that is wrong. Suppose the auditor checks only the invoices that land on her desk first on Monday. Those may be the ones the billing team flagged as tricky, or the ones left over from Friday's rush. Any error rate you compute from them describes those invoices, not the process.
Your sampling strategy is the rule that decides which items enter the sample. It belongs in the data collection plan next to the operational definition. Write it down so that two collectors would pick the same kind of items.
Two questions that shape the choice
Before picking a method, answer two questions.
- What is the process doing over time? Is it a steady stream of similar items, or does it change by shift, team, product or season?
- What do you want to learn? Do you want one overall estimate, such as the current error rate? Or do you want to compare groups, or watch for change over time?
The first question tells you whether the population is uniform or has structure. The second tells you whether you need an overall picture, a comparison, or a time signal. The four strategies in this chapter answer different combinations of these.
Random sampling
In simple random sampling, every item in the population has the same chance of being chosen. This is the baseline method. It protects you from the collector's habits, such as picking items that are easy to reach.
To do it properly you need a list of the population, called a sampling frame. Number the items, then pick numbers with a random number generator. Choosing "randomly" by eye does not count, because people avoid extremes and pick convenient items.
import random
# Sampling frame: every invoice issued last month
invoice_ids = [f"INV-{n:05d}" for n in range(1, 2401)]
random.seed(42) # fixed seed so the audit team can reproduce the draw
sample = random.sample(invoice_ids, k=385)
print(len(sample)) # 385
print(sample[:3])Fixing the seed lets a second person regenerate the same list, which helps when a reviewer asks how items were chosen.
Strengths: it is simple to explain, and it gives an unbiased estimate of an overall proportion.
Weaknesses:
- It needs a complete list of the population in advance.
- By chance, it can miss small but important groups. If only 3% of invoices come from one customer segment, a random sample of 100 may contain none of them.
- It is awkward when items are not listed, such as calls arriving one at a time.
Systematic sampling
In systematic sampling you pick every kth item after a random start. If you issue 2,400 invoices and want about 240, take every 10th one. Choose the starting point at random between 1 and 10 so that the start is not a convenience pick.
import random
def systematic_sample(items, k):
"""Return every k-th item, beginning at a random position within the first k."""
start = random.randrange(k)
return items[start::k]
invoice_ids = [f"INV-{n:05d}" for n in range(1, 2401)]
random.seed(7)
picked = systematic_sample(invoice_ids, k=10)
print(len(picked)) # 240This method suits a live process because the collector does not need the full list in advance. They only count. "Every 10th call," "every 20th part off the line" and "every 5th ticket closed" are easy instructions to follow at the point of work.
The main risk is periodicity. If the process has a cycle that lines up with your interval, the sample will repeatedly hit the same point in the cycle. Imagine a machine that changes tooling every 50 parts and you sample every 50th part. You would see only the first part after each change and conclude the process is worse, or better, than it is. Before you commit to an interval, ask whether anything in the process repeats at that rate: shifts, weekdays, batch sizes, month-end close.
| Feature | Simple random | Systematic |
|---|---|---|
| Needs a full list in advance | Yes | No |
| Easy to do at the point of work | Harder | Easier |
| Risk of bias from cycles | Low | Present if the interval matches a cycle |
| Spread across time | Uneven | Even |
Stratified sampling
Stratification means dividing the population into groups, called strata, that you expect to differ, then sampling within each group. The strata come from the stratification factors you chose earlier: billing team, customer segment, shift, machine, and so on.
Use stratified sampling when:
- you want to compare groups and each needs enough observations to be read on its own;
- some groups are small but matter, so simple random sampling might skip them;
- you suspect the groups behave differently, and a single pooled number would hide that.
There are two ways to allocate the sample across strata.
- Proportional allocation. Each stratum gets a share of the sample equal to its share of the population. This keeps the overall estimate unbiased with no extra work.
- Equal or minimum allocation. Each stratum gets the same number of observations, or at least a fixed minimum. This lets you compare strata fairly, but the pooled result must then be weighted by stratum size to estimate the overall rate.
import random
random.seed(1)
population = {
"enterprise": [f"E-{i}" for i in range(1, 301)], # 300 invoices
"mid_market": [f"M-{i}" for i in range(1, 1401)], # 1,400 invoices
"small_biz": [f"S-{i}" for i in range(1, 701)], # 700 invoices
}
total = sum(len(v) for v in population.values()) # 2,400
sample_size = 240
min_per_stratum = 60
sample = {}
for name, items in population.items():
share = round(sample_size * len(items) / total) # proportional share
n = max(share, min_per_stratum) # apply the floor
sample[name] = random.sample(items, n)
for name, picked in sample.items():
print(name, len(picked))
# enterprise 60 (proportional share was 30, raised to the floor)
# mid_market 140
# small_biz 70Here the enterprise group would get only 30 under proportional allocation, which is too few to read. The floor of 60 raises it. The sample is now slightly larger than 240 and no longer proportional, so if you report one overall error rate you must weight each stratum's rate by its share of the population. Skipping the weighting overstates the influence of the small group.
Stratified sampling needs the stratifying variable to be known for each item before you sample, or at least known at the time of selection. Record it on the form so that you can analyze by it later.
Subgroup (rational subgroup) sampling
The first three strategies describe a snapshot. Subgroup sampling is about time. You collect small groups of items at regular intervals, so that each group is a short window of the process. A common pattern is five consecutive parts every hour, or ten consecutive invoices at the start of each shift.
The word "rational" refers to how you form the groups. Items inside a subgroup should be produced under conditions as similar as possible, such as the same operator, machine and material, in a short stretch of time. Then variation inside a subgroup reflects the common, short-term noise of the process. Differences between subgroups reveal shifts, drift and special causes.
This is the sampling design behind control charts, which later chapters of a Six Sigma project use to monitor stability. If you mix a day shift and a night shift into one subgroup, you blur the two sources together and lose the ability to tell them apart.
Design choices:
- Subgroup size. Small subgroups, often 3 to 5 items for continuous data, are common. Attribute data usually needs larger subgroups, because a subgroup of five pass/fail items will often contain zero defects and says little.
- Frequency. Sample often enough to catch the changes you care about. If tool wear takes a day, hourly samples are plenty. If a problem appears and disappears within an hour, they are not.
- Consecutive items. Take items that were made one after another, not items scattered over the day, or you lose the "short window" property.
Combining strategies
Real plans often mix methods. You might stratify by billing team, then use systematic sampling inside each team because auditors work through a queue. Or you might take rational subgroups each shift, which is itself a stratification by shift. When you combine methods, state each layer in the plan: first the strata, then how items are chosen within each, then how often.
Common errors
- Convenience sampling. Taking whatever is easy to reach. It is the most common source of a biased sample and it feels harmless.
- Judgment sampling without saying so. Picking "typical" items. It is sometimes useful for exploration, but you cannot estimate a rate from it.
- Interval matches a cycle. Systematic sampling that always lands on the same weekday or tool change.
- Pooling without weights. Reporting an overall rate from unequal stratum samples without weighting.
- Changing the method mid-collection. If collectors switch from random to "whatever is open," the before and after data are not comparable. Record any change and its date.
- Ignoring the sample size. A good method with too few items still gives a wide margin of error. Calculate the sample size for each stratum you plan to read separately, not only for the total.
Writing it into the plan
For each metric, add a short sampling section to the data collection plan. It should state the population and the sampling frame, the method, the interval or subgroup rules, the allocation across strata, and the sample size. A reviewer should be able to read it and reproduce your selection.
sampling:
population: all invoices issued in the calendar month
frame: billing system export, one row per invoice
method: stratified random
strata: customer_segment # enterprise, mid_market, small_biz
allocation: proportional with a minimum of 60 per stratum
selection_within_stratum: random draw, fixed seed recorded in the audit log
sample_size: about 240 plus any minimum top-ups
reporting: overall rate weighted by stratum size, plus the rate per stratum
change_control: any change to the method is logged with date and reasonExercise
A call center wants to estimate the share of calls that fail a script-compliance check. It handles about 600 calls a day, and calls are not listed in advance. Supervisors suggest checking every 10th call. A manager notes that a team lead reviews the queue and moves difficult calls to the senior agents every 10th call. What is wrong with the plan, and what would you change?
Show answer
Systematic sampling fits because calls arrive one at a time and there is no list. The problem is periodicity. If difficult calls are routed on a cycle of 10, then checking every 10th call lands on that same position every time, so the sample is biased toward senior agents or difficult calls. Fix it by choosing a random start and a different interval that does not match the routing pattern, such as every 7th call, or by drawing a random number to decide which call in each block of 10 to check. Also confirm that nothing else in the process repeats at the new interval. If you also want a rate per agent group, stratify by team and set a minimum number of calls for each.
Exercise
A plant makes parts on three machines. You want to know whether defect rates differ between machines, and Machine C produces only 5% of the output. A simple random sample of 200 parts is proposed. Explain the risk and propose a better allocation.
Show answer
Under simple random sampling, Machine C would contribute only about 10 of the 200 parts, which is too few to estimate its defect rate or compare it with the others. Use stratified sampling by machine with a minimum per stratum, for example 60 to 100 parts from each machine. Because Machine C is then over-represented, weight each machine's defect rate by its share of total output when you report the plant-wide rate.