Knowledge / Data Science / Sampling methods and survey design

Sampling methods and survey design

Data Science (B.Sc) · Statistics · free study notes for exams, placements and interviews

In short

Sampling is the practice of selecting a subset of units from a population so that valid conclusions about the whole can be drawn from the part, and survey design is the surrounding process of defining the frame, instrument and data collection. It matters because every real dataset in analytics — a customer survey, an A/B cohort, a credit audit, an NSS household round — is a sample, and bias introduced here cannot be fixed later by modelling. It is examined in B.Sc Data Science statistics papers and asked in analytics interviews (market research firms, Nielsen, Kantar, banks, product analytics teams) as "how would you sample this?"

Explained

Basic vocabulary and why we sample

Probability sampling methods

  1. Simple random sampling (SRS): every unit has equal chance; drawn with replacement (WR) or without replacement (WOR) using random numbers or a lottery. Basis of all theory, but needs a complete frame and may miss small groups.
  2. Stratified random sampling: divide the population into homogeneous, non-overlapping strata (state, income class, product category), then sample independently in each. Gives lower variance than SRS when strata differ; also allows stratum-level estimates. Allocation can be equal, proportional (nᵢ ∝ Nᵢ) or Neyman/optimum (nᵢ ∝ NᵢSᵢ).
  3. Systematic sampling: pick a random start r in 1…k and then every k-th unit, k = N/n. Simple and fast on an ordered list, but biased if the list has a periodicity matching k.
  4. Cluster sampling: divide into naturally occurring groups (villages, wards, colleges), randomly select whole clusters and survey all units inside. Cheap when travel dominates cost; less precise because units within a cluster are similar (high intra-class correlation).
  5. Multistage and PPS: select districts, then villages, then households — the design used by India's National Sample Survey (NSS) and NFHS. PPS (probability proportional to size) gives larger units a higher selection chance, with weights 1/πᵢ used in estimation.
  6. Non-probability methods: convenience, judgement/purposive, quota, snowball (for hidden populations). Quick and cheap, but selection probabilities are unknown, so standard errors and confidence intervals are not strictly valid — the flaw behind most "online poll" failures.

Survey design and data quality

Key points

Formulas and examples

Sample mean estimator: x̄ = (1/n) Σ xᵢ — unbiased for μ in SRS
Var(x̄) under SRSWOR = (σ²/n) · (N − n)/(N − 1); SE = √Var — same units as x
Sample size for a mean: n₀ = (z² σ²)/E² ; with finite population: n = n₀ / (1 + n₀/N)
Sample size for a proportion: n₀ = z² p(1 − p)/E² (use p = 0.5 for the worst case)
SE of a proportion: SE(p) = √[p(1 − p)/n]; 95% CI = p ± 1.96 · SE(p)
Proportional allocation: nᵢ = n · (Nᵢ/N); Neyman: nᵢ = n · NᵢSᵢ / Σ NⱼSⱼ
Systematic interval: k = N/n (nearest integer); Design effect: deff = Var(actual design)/Var(SRS)

Symbols: N population size, n sample size, σ population SD, Sᵢ stratum SD, E margin of error (absolute), z the normal value (1.96 at 95%), p sample proportion.

Example 1 — sample size for a proportion, with FPC. A bank wants the proportion of 50,000 credit-card customers who would take a loan top-up, to within ±4 percentage points at 95% confidence. Worst-case p = 0.5.

Example 2 — proportional vs Neyman allocation. A state survey of monthly household spend has three strata: urban N₁ = 20,000 (S₁ = ₹4,000), semi-urban N₂ = 30,000 (S₂ = ₹2,000), rural N₃ = 50,000 (S₃ = ₹1,000). Total N = 1,00,000, sample n = 1,000.

StratumNᵢSᵢ (₹)Proportional nᵢNᵢSᵢNeyman nᵢ
Urban20,0004,0002008.0 crore421
Semi-urban30,0002,0003006.0 crore316
Rural50,0001,0005005.0 crore263
Total1,00,000—1,00019.0 crore1,000

Where it is used

Interview questions

Common mistakes

Related topics

Descriptive statistics · Statistical inference and estimation · Hypothesis testing · Experiment design and A/B testing · Correlation and regression

Open in the Knowledge reader →Find jobs →