Survey Design & Measurement

A field guide to turning answers into evidence: how to write questions people can answer, how to check that a scale measures what it claims and measures it the same way in every group, how to correct a sample that does not look like the population, and how to ask about things people would rather not admit. The core methods of Parts 3 to 6 are implemented from scratch in an open-source companion repo, each one validated against a known truth, and Part 8 shows how the same tools apply to evaluating AI systems.

Why any of this matters

A customer survey runs in English and Spanish. The dashboard shows Spanish-speaking customers rating the product 0.11 SD higher and its value 0.12 SD higher, and a team starts planning around it. In the data behind this example, the true difference on both is zero. Two translated items are simply easier to agree with. The only real gap is in service, where the dashboard understates it (0.24 vs 0.30). Invariance testing finds exactly the two shifted items, and the corrected model recovers the true picture. Measurement is the discipline of knowing which of your numbers are about people and which are about your questions.

Parallel analysis eigenvalues showing three factors, next to a bar chart comparing Spanish minus English differences for product, service and value from naive sum scores, a full scalar model and a partial scalar model against the true values
Parallel analysis keeps three factors (left). Naive sum scores and the full scalar model both report spurious product and value gaps; the partial invariance model recovers the truth (right). From case study 2 in the companion repo.

Part 1: Foundations

Constructs and operationalization

Satisfaction, engagement, fatigue and trust cannot be observed. A scale is a bet that a set of answers moves together with the construct. Write the construct definition first, then trace every item back to it; items that cannot be traced back are measuring something else.

The true-score model

Observed score = true score + error. Reliability is the share of observed variance that is true-score variance, and it caps every correlation you can observe: two measures with reliabilities 0.7 and 0.8 cannot correlate above 0.75, even if they measure the same thing. Unreliable outcomes quietly shrink every effect you estimate.

Validity

Does the score measure the intended construct? Evidence comes from content (the items cover it), structure (the factor structure matches the theory), convergent and discriminant patterns (correlates with what it should, not with what it should not), and criterion relations (predicts outcomes). Reliability is necessary for validity, never sufficient.

Total Survey Error

Error enters on two sides. On the measurement side: validity, response error, processing. On the representation side: coverage, sampling, nonresponse, adjustment. A survey with a huge sample can still be badly wrong, because sample size only shrinks one of these errors.

Bias vs. variance

Many survey decisions trade one for the other. Weighting removes bias but inflates variance; indirect questions remove social desirability bias but add noise on purpose. The goal is the smallest total error for the decision at hand, and a confidence interval that is honest about both.

Part 2: Questionnaire Design

No model can recover information a question never collected. Most measurement problems are cheapest to fix before the survey goes out.

Wording

One idea per item (no double-barreled questions), everyday words, a clear reference period ("in the past 7 days"), and no premises built into the question. Every respondent should be able to understand the question the same way the researcher does.

Response scales

Five to seven fully labeled points work well for attitudes. Offer a midpoint when neutrality is a real position and "don't know" when not knowing is plausible. Keep scale direction and labels consistent within a block.

Order and context effects

Earlier questions prime later ones, and a general question asked after specific ones changes its meaning. Order with intent, and randomize item order within blocks when the order carries no logic of its own.

Response styles

Acquiescence (agreeing regardless of content), extreme responding, and satisficing (straight-lining, speeding) contaminate scores. Balanced keying and attention checks help, but reversed or near-duplicate items create correlated errors that inflate alpha (Part 3).

Mode effects

Interviewers raise social desirability; self-administered web surveys raise satisficing; phone favors the last option read, paper the first. Comparing across modes, like comparing across languages, needs an invariance test first.

Pretesting

Cognitive interviews ("what does this question mean to you?", "how did you arrive at your answer?") catch problems no statistic can. Follow with a pilot large enough for item statistics and a first look at the factor structure.

Part 3: Reliability & Factor Structure

Before a scale score is used, two questions: is it consistent, and does it have the structure the theory says it should, in every group you plan to compare?

Cronbach's alpha

The most reported reliability coefficient, computed from item variances and the total-score variance. It equals true reliability only if every item loads equally on the trait and errors are uncorrelated. It is biased low when loadings differ and biased high when errors correlate, so a high alpha is not proof of anything.

Use when Items are close to interchangeable; report alongside omega.

McDonald's omega

Reliability computed from a one-factor CFA: the variance due to the common factor divided by the total-score variance. It handles unequal loadings and, when shared-wording pairs are modeled as correlated errors, stops counting that shared variance as the construct.

Use when Reporting the reliability of any multi-item score. Add a bootstrap CI.

Test-retest, kappa & ICC

Other kinds of consistency: over time (test-retest correlation or ICC), and across raters or coders (Cohen's kappa for categories, the intraclass correlation for continuous ratings). Each targets a different error source, so pick the one matching how the score will be used.

Use when Scores are compared over time, or produced by human judges.

Exploratory factor analysis

How many dimensions, and which items go together? Parallel analysis keeps factors whose eigenvalues beat those of random data of the same size (far better than "eigenvalue above 1"). Principal axis factoring with an oblique rotation (promax, oblimin) then shows the loading pattern.

Use when Developing a scale, or when the structure is in doubt.

Confirmatory factor analysis

Specify which items load on which factors and test the fit by maximum likelihood. Common guides: CFI and TLI near 0.95 or above, RMSEA below 0.06, SRMR below 0.08. CFA is also the engine behind omega, invariance testing, and structural equation models.

Use when The structure is theorized in advance. Confirm on data not used for EFA.

Measurement invariance

Before comparing groups, constrain the multi-group CFA step by step: configural (same pattern), metric (equal loadings, so relationships compare) and scalar (equal intercepts, so means compare). If scalar fails, locate and free the few non-invariant intercepts (partial invariance). This only works if most items on each factor stay invariant.

Use when Comparing languages, countries, modes, demographic groups, or time points.

Three panels comparing alpha, omega and omega with modeled error covariances against the true reliability across 300 samples, for equal loadings, unequal loadings and correlated errors
Alpha is exact with equal loadings, too low with unequal loadings, and too high with correlated errors; omega lands on the truth once the shared-wording errors are modeled. 300 samples of 400 respondents each. From case study 1.

Part 4: Item Response Theory

Classical test theory summarizes a whole scale with one number. Item response theory models each item: how sharply it separates people and where on the trait it does so. That item-level view is what makes short forms, adaptive tests and fairness checks possible.

Rasch, 2PL & 3PL

For yes/no items, the probability of endorsing rises along an S-curve in the trait. Each item has a difficulty (where the curve crosses 50%) and, in the 2PL, a discrimination (how steep it is). Rasch fixes equal discriminations; the 3PL adds a guessing floor for knowledge tests.

Use when Binary items: symptom checklists, knowledge tests, behavior inventories.

Graded response model

For ordered categories (never to always), one discrimination per item and one threshold between each pair of adjacent categories. Fit by marginal maximum likelihood with the EM algorithm, integrating over the trait distribution. The standard model for patient-reported outcomes and Likert-type scales.

Use when Polytomous items and a reasonably unidimensional trait.

Information & precision

Each item is most informative near its thresholds; test information is the sum, and the score's standard error is 1/√information. Precision varies along the trait, which a single reliability coefficient hides. Information curves are how you see whether a scale measures well where your decisions are made.

Use when Building short forms or deciding which items to keep.

Differential item functioning

An item shows DIF when people with the same trait level but in different groups answer it differently. A real group difference (impact) is not DIF. Mantel-Haenszel compares groups within total-score strata (with purification, since DIF items contaminate the score); logistic regression separates uniform from nonuniform DIF.

Use when Fairness reviews; before comparing groups on IRT scores.

Computerized adaptive testing

Give the most informative remaining item at the current score estimate, update, and stop when the standard error is small enough. People with mild symptoms never see items about severe ones. Needs a calibrated bank and exposure control (such as picking at random among the top few items).

Use when Respondent burden matters and a large calibrated bank exists.

Linking & equating

Different forms, versions or calibrations put scores on different scales. Anchor items shared across forms let methods such as mean-sigma or Stocking-Lord place everything on one scale, which is how item banks grow over time without breaking trend lines.

Use when Revising an instrument or combining calibrations.

Four panels: estimated versus true item discriminations and thresholds for a 2PL checklist and a graded response short form, category response curves for one item compared to the truth, and Mantel-Haenszel DIF statistics for 40 items with the four planted DIF items standing out
EM recovers discriminations and thresholds for a 40-item checklist and a 10-item, five-category short form; estimated category curves sit on the true ones; Mantel-Haenszel flags exactly the four planted DIF items. From case study 3.
Line chart of score error across trait levels for a fixed 12-item form, an adaptive test and the full 60-item bank, next to a histogram of items administered by the adaptive test
An adaptive test meets its precision target with about 12 of 60 items and keeps error flat across the trait; a fixed form of the same length is three to four times less precise at the extremes. From case study 4.

Part 5: Sampling, Weighting & Inference

A perfectly measured answer from the wrong people is still wrong. Weighting makes a sample look like the population on the variables you can see, and its validity rests entirely on whether those are the variables that matter.

Probability vs. nonprobability samples

In a probability sample every unit has a known chance of selection, and the inverse of that chance is its base weight. Opt-in panels have no known selection chance; weighting them assumes that, after adjustment, who joined is unrelated to the outcome. That assumption cannot be tested from inside the sample.

Design effects

Stratification lowers variance; clustering raises it by roughly 1 + (m − 1)ρ; unequal weights raise it by Kish's nΣw²/(Σw)². A design effect of 2.5 turns 1,500 interviews into an effective sample of 600. Report it.

Post-stratification & raking

Post-stratification matches known population counts in each cell (age by education, say); it needs the full cross-table and breaks with empty cells. Raking (iterative proportional fitting) matches several margins at once and needs only the margins. Trim extreme weights to limit variance.

Use when Reliable population totals exist for the variables driving selection.

Propensity & nonresponse adjustment

Model the probability of being in the sample (against a reference probability sample) or of responding (when nonrespondents' covariates are known), and weight by its inverse. Handles many covariates and interactions that raking cannot.

Use when A high-quality reference sample or frame data is available.

MRP

Multilevel regression and post-stratification: model the outcome across many small cells with partial pooling, then weight cell predictions by census counts. The standard tool for state or district estimates from national samples.

Use when Small-area estimates, or many sparse adjustment cells.

Variance estimation

Taylor linearization handles smooth statistics under strata and clusters. Replicate methods (jackknife, bootstrap, balanced repeated replication) re-run the whole estimator, weighting step included, on each replicate, so complex adjustments are reflected in the SE automatically.

Use when Always: never use simple-random-sample SEs on weighted data.

Two panels showing estimated vaccination rates across 200 simulated opt-in polls for unweighted, post-stratified, raked, trimmed and propensity-weighted estimates, with confidence interval coverage, when selection depends on demographics and when it depends on the outcome
When selection depends on demographics, every weighting method removes the opt-in bias and its CIs cover the truth 94 to 98% of the time (left). When people select on the outcome itself, no demographic weight helps and coverage drops to zero (right). 200 polls of about 1,500 from a synthetic population of 200,000. From case study 5.

Part 6: Sensitive Questions & Survey Experiments

Randomization inside the questionnaire solves two different problems: getting honest answers about behaviors people hide, and measuring how much each feature of a choice matters.

Social desirability

Asked directly, people underreport stigmatized behaviors (misconduct, drug use, prejudice) and overreport virtuous ones (voting, exercise). Self-administration and privacy assurances help, but only designs that never reveal an individual's answer remove the incentive to misreport.

List experiments

Half the sample sees a list of innocuous items and reports how many apply; the other half sees the same list plus the sensitive item. The difference in mean counts estimates prevalence. Check for design effects and avoid lists where everyone or no one says all items apply.

Use when Prevalence of a sensitive behavior; large samples available.

Randomized response

A private randomizer (a die roll) tells each respondent to answer truthfully or to give a forced answer. Since the forced-answer rate is known, prevalence follows; no single "yes" implicates anyone. More efficient than list experiments, but respondents must understand and trust the procedure.

Use when Highly sensitive yes/no behaviors; self-administered modes.

Endorsement experiments

Ask about support for a policy, randomly attributing it to a sensitive group or to no one. The change in support measures attitudes toward the group without asking about it directly.

Use when Attitudes toward groups or actors in contexts where direct questions are risky.

Conjoint analysis

Respondents choose between profiles whose attributes are randomized: job offers, candidates, products. The average marginal component effect of each attribute level comes straight from a linear regression, with standard errors clustered by respondent since each person makes many choices.

Use when Measuring trade-offs among many features at once.

Vignettes & factorial surveys

Short scenarios with randomized features (the applicant's gender, the patient's age) reveal how each feature shapes judgments, including ones respondents would not acknowledge. Widely used to study discrimination and professional decision-making.

Use when Judgments about people or situations, and their hidden drivers.

Prevalence estimates with confidence intervals from a direct question, a list experiment and randomized response compared to the true prevalence, next to estimated conjoint effects for job offer attributes compared to their exact true values
Asked directly, only 12% admit a behavior that 22% engaged in; the list experiment and randomized response recover the truth at the cost of wider intervals (left). Conjoint estimates for job-offer attributes match the exact enumerated effects (right). From case study 6.

Part 7: Which Method, When

Two questions sort most cases. Is the problem in the questions (what a score means and whether it means the same thing for everyone) or in the people (who answered and who did not)? Then: what assumption does the fix rely on, and can you check it?

SituationReach forWatch out for
Writing a new multi-item scaleCognitive pretest, pilot, EFA, then CFA on new dataRunning EFA and CFA on the same sample
Reporting how reliable a score isOmega with a bootstrap CIAlpha with unequal loadings or shared wording
Comparing groups on a scaleMeasurement invariance (multi-group CFA)Translated, adapted or mode-specific items
Checking items for fairnessDIF: Mantel-Haenszel and logistic regressionMistaking a real group difference for DIF
Long instrument, burden mattersIRT calibration, then CAT or an information-based short formMultidimensional banks; overexposed items
Sample skewed vs. the populationRaking or propensity weights, replicate SEsSelection related to the outcome itself
Estimates for small areasMRPPoor model fit in sparse cells
Sensitive behaviorList experiment or randomized responseSmall samples; design effects
Trade-offs among featuresConjoint (AMCEs, clustered SEs)Implausible attribute combinations

Part 8: Measuring AI Systems

Evaluating a language model is a measurement problem. A capability like reasoning or honesty is a construct nobody observes directly, a benchmark score is an observed score with its own error, and every prompt is an item with wording, order and context effects. The tools in this guide carry over almost unchanged.

Construct validity of benchmarks

Before asking how a model scores, ask what the score measures. Trace each benchmark item back to the capability it claims to test, check that the items hang together the way the construct says they should (Part 3), and look for convergent and discriminant evidence. A reasoning benchmark that tracks memorized content or answer formatting more closely than other reasoning measures is measuring something else.

Item response theory for benchmarks

Treat models as respondents and benchmark questions as items. IRT estimates each item's difficulty and discrimination, which flags items every model gets right, items that do not separate strong models from weak ones, and items with negative discrimination, the classic sign of a wrong answer key. The same calibration supports adaptive evaluation: estimating a model's ability from a small, informative subset of items (Part 4).

Reliability of model judges

A model grading outputs is a rater, and raters need agreement statistics. Report agreement with human raters and across repeated runs with kappa or ICC rather than raw percent agreement, and test for systematic biases such as favoring the first answer shown or the longer one. DIF methods (Part 4) ask whether the judge scores equally good answers differently by language or dialect.

Prompt sensitivity and self-reports

Small changes in wording, option order or framing can move a model's answers the way they move a person's (Part 2), so a single prompt is a single item of unknown reliability. Measure across paraphrases and orderings and report the spread. Before treating a model's self-reports (stated confidence, preferences or values) as measurements, check that they are consistent across those variants and agree with its behavior.

Comparisons across languages and versions

A translated benchmark is a translated scale. Before comparing scores across languages or benchmark versions, check that items keep the same difficulty and meaning (measurement invariance, Part 3). Otherwise the comparison mixes model differences with translation differences, exactly like the survey example at the top of this page.

Part 9: Case Studies & Code

The companion repo, survey-measurement-hub, implements the core methods of Parts 3 to 6 from scratch in Python: CFA by maximum likelihood with an analytic gradient, IRT by the EM algorithm, raking, replicate variance, and the survey-experiment estimators. Every one runs on simulated data where the truth is fixed in advance, so every claim can be checked. Six executed notebooks cover those four areas:

Case studyMethodsGround truthResult
01. Engagement survey (people analytics)Alpha, omega, item diagnosticsReliability from known loadingsAlpha off by −0.02 and +0.08; omega within 0.002
02. Two-language customer surveyParallel analysis, EFA, CFA, invarianceKnown loadings, planted intercept shifts3 factors found; both shifted items located
03. Fatigue item bank (healthcare)GRM and 2PL by EM, DIFKnown item parameters, planted DIFDiscrimination r = 0.99; 4 of 4 DIF items, 0 false flags
04. Adaptive symptom test (healthcare)CAT, fixed short formTrue trait levelsTarget precision with 12 of 60 items
05. Opt-in health pollRaking, post-stratification, propensity weights, jackknifeSynthetic census of 200,000Raked: bias 3.4 → 0.0 points; coverage 20% → 96%
06. Misconduct survey & job conjointList experiment, randomized response, AMCEKnown prevalence; exact AMCEsDirect 12% vs true 22%; indirect designs recover it

All code, six executed notebooks, the measurement guide, and 26 known-truth tests are open source under the MIT license.

View on GitHub