Sub topic 2
Who Answered: Sampling and Weighting
This chapter assumes you know what a percentage and an average are, and that you have survey results in a spreadsheet. It also assumes you have read the previous chapter on survey design, so you can name the population your survey is meant to describe. Here you will learn how the people who answered relate to that population, and how weighting can correct some of the gaps.
Why who answered matters more than how many
A survey result is only a claim about a population if the respondents resemble that population. A journalist will usually ask "Who did you survey, and how were they chosen?" before they ask about the number itself.
Three terms come up in every conversation about this:
- The population is the whole group you want to say something about, such as "adults living in the UK" or "small-business owners in Texas".
- The sampling frame is the list or method you actually use to reach people, such as a customer email list or an online panel. The frame is never perfectly the same as the population.
- The sample is the group of people who end up answering.
Gaps appear at each step. People who are not on the frame are never asked. People who are asked may ignore the survey. The people left over can differ from the population in ways that change the results.
Probability and non-probability samples
Samples fall into two broad families. Which one you used decides what you can honestly claim.
A probability sample gives every member of the population a known, non-zero chance of being selected, and selection is done by random draw. Examples are random-digit phone dialling or random selection from an address list. Statistical theory, including the margin of error in the next chapter, was built for this kind of sample.
A non-probability sample is chosen some other way: an opt-in online panel, a pop-up poll on your website, or a link shared on social media. These are cheaper and faster, and most PR surveys use them. The chance of selection is unknown, so the standard margin-of-error formula does not strictly apply.
| Feature | Probability sample | Non-probability sample |
|---|---|---|
| Selection | Random draw from a frame | Volunteers, panels, convenience |
| Cost and speed | Higher cost, slower | Lower cost, faster |
| Margin of error | Valid in the textbook sense | Only an approximation, if reported at all |
| Typical PR use | Rare, usually commissioned from a polling firm | Very common |
| Main risk | Low response rates | Self-selection bias |
Many reputable pollsters use online panels and describe their results carefully. A non-probability sample is not automatically unpublishable. It does need honest wording, which we cover below.
Common sources of bias
Bias is a systematic tilt in results, not random noise. Four kinds appear most often.
- Coverage bias: part of the population is missing from the frame. An online-only survey misses people without reliable internet access.
- Self-selection bias: people choose whether to take part, and those who choose differ from those who do not. A poll on a fitness brand's website attracts people who care about fitness.
- Non-response bias: people who were asked but did not answer differ from those who did. If busy people skip the survey, their views are underrepresented.
- Straight-lining and low-quality responses: some panel respondents click through quickly for the incentive. These responses add noise and sometimes bias. Cleaning for them is covered in a later chapter.
A customer survey run by a company is a frequent trap. The sample may be large, but it contains only people who already buy from you. Findings from it describe your customers who responded. They do not describe "consumers".
Comparing your sample to the population
The first practical step is to compare the make-up of your respondents to known figures for the population. Official statistics, such as a national census or a labour-force survey, give benchmarks for age, gender, region and similar traits.
Suppose your target population is adults in a country, and benchmarks say 30% are aged 18 to 34, 35% are 35 to 54, and 35% are 55 and over. Your sample of 1,000 gives these counts:
| Age group | Population share | Respondents | Sample share |
|---|---|---|---|
| 18 to 34 | 30% | 180 | 18% |
| 35 to 54 | 35% | 370 | 37% |
| 55 and over | 35% | 450 | 45% |
Older people are overrepresented and younger people are underrepresented. If younger people answer your question differently, the raw total will be off. This is the situation weighting is meant to fix.
What weighting does
Weighting adjusts the influence of each respondent so that the weighted sample matches known population figures on chosen traits. Respondents from underrepresented groups count for more than one person. Respondents from overrepresented groups count for less.
For one trait, the weight for a group is the population share divided by the sample share:
Using the table above, the 18 to 34 group gets a weight of 0.30 / 0.18, which is about 1.67. The 55 and over group gets 0.35 / 0.45, which is about 0.78.
Here is the calculation in Python, followed by a weighted result. Each group's weight is applied to its yes-count.
population_share = {"18-34": 0.30, "35-54": 0.35, "55+": 0.35}
respondents = {"18-34": 180, "35-54": 370, "55+": 450}
said_yes = {"18-34": 99, "35-54": 148, "55+": 135}
total = sum(respondents.values())
weights = {
g: population_share[g] / (respondents[g] / total)
for g in respondents
}
raw_yes = sum(said_yes.values()) / total * 100
weighted_yes = sum(said_yes[g] * weights[g] for g in said_yes) / sum(
respondents[g] * weights[g] for g in respondents
) * 100
for g, w in weights.items():
print(g, round(w, 2))
print("Raw:", round(raw_yes, 1))
print("Weighted:", round(weighted_yes, 1))Running it prints weights of 1.67, 0.95 and 0.78, a raw figure of 38.2% and a weighted figure of 41.0%. Younger people said yes far more often (55% of them, against 30% of the oldest group), so giving them their proper share moves the headline number up nearly three points. That gap is the reason weighting matters.
Weighting on more than one trait
Real surveys usually weight on several traits at once, such as age, gender, region and education. Multiplying single-trait weights does not work, because the traits overlap. The standard method is raking (also called iterative proportional fitting). It adjusts weights for one trait, then the next, and repeats until the weighted sample matches every benchmark closely.
You rarely need to code raking by hand. Polling firms and survey platforms do it, and R and Python have packages for it. What you need to do is ask three things:
- Which traits were weighted on?
- Where did the benchmark figures come from?
- What are the smallest and largest weights?
Limits and failure modes
Weighting is a repair, not a cure. Keep these limits in mind.
- It only fixes traits you measured and have benchmarks for. If young respondents in your sample are more tech-savvy than young people in general, weighting by age will not correct that.
- Large weights inflate uncertainty. If one respondent counts as 8 people, a single answer can swing a result. Pollsters often trim weights to a cap, for example 5, and accept a small bias in exchange for stability.
- Small cells are fragile. If only 12 people aged 18 to 34 answered, weighting them up multiplies the noise in those 12 answers.
- Weighting reduces effective sample size. Uneven weights make the sample behave as if it were smaller than its headline count. The margin of error in the next chapter should use this effective size.
- It cannot rescue a bad frame. If a whole group is absent, no weight can speak for them.
Reporting sample details honestly
What you report should match what you did. A few wording rules help.
- Say "respondents" or "people surveyed", not "Americans" or "consumers", unless the sample and weighting support the wider claim.
- Name the type of sample. "An online panel of 1,000 UK adults, weighted to match the population by age, gender and region" is clear. "A nationally representative survey" is a strong claim and needs a method that backs it.
- Report the unweighted number of respondents (the base), as well as the weighted figures. Journalists and statisticians look for it.
- For sub-groups, give the base size. A finding based on 40 people should be flagged as indicative or left out.
- State the fieldwork dates and the mode (online, phone, face to face).
A short checklist before you move on
- Write down the population in one sentence.
- Write down how respondents were reached and chosen.
- Compare age, gender, region and one trait relevant to your topic against official benchmarks.
- Decide whether to weight, and on which traits.
- Check the range of weights and the smallest sub-group base.
- Draft the one-sentence description of the sample that will go into your methodology note.
Exercise
A company emails a survey link to its 20,000 customers and gets 1,200 replies. Of the replies, 60% come from people aged 55 and over, while that group is 35% of the target population of adults in the country. (a) What weight would the 55 and over group receive in a one-trait age weighting? (b) Name one problem weighting cannot fix here.
Show answer
(a) Weight = population share / sample share = 0.35 / 0.60, which is about 0.58. Each older respondent counts for a little over half a person. (b) The sample comes only from the company's customers, so it has coverage and self-selection bias. Weighting by age cannot make customers who chose to reply represent all adults, so the results must be described as customer views, not those of the population.
Exercise
After weighting, one respondent has a weight of 9 and the next largest weight is 2.5. What are two reasonable responses, and what does the problem do to your results?
Show answer
You can trim the weight to a cap, for example 5, or merge the thin group with a neighbouring group so the weight falls. You can also report the result with a note about small bases. The large weight means that one person's answers count as nine people, so a single answer can move the result and the effective sample size is smaller than the headline count.