English

Sampling in Software Engineering Research: A Critical Review and Guidelines

Software Engineering 2021-10-22 v6

Abstract

Representative sampling appears rare in empirical software engineering research. Not all studies need representative samples, but a general lack of representative sampling undermines a scientific field. This article therefore reports a critical review of the state of sampling in recent, high-quality software engineering research. The key findings are: (1) random sampling is rare; (2) sophisticated sampling strategies are very rare; (3) sampling, representativeness and randomness often appear misunderstood. These findings suggest that software engineering research has a generalizability crisis. To address these problems, this paper synthesizes existing knowledge of sampling into a succinct primer and proposes extensive guidelines for improving the conduct, presentation and evaluation of sampling in software engineering research. It is further recommended that while researchers should strive for more representative samples, disparaging non-probability sampling is generally capricious and particularly misguided for predominately qualitative research.

Keywords

Cite

@article{arxiv.2002.07764,
  title  = {Sampling in Software Engineering Research: A Critical Review and Guidelines},
  author = {Sebastian Baltes and Paul Ralph},
  journal= {arXiv preprint arXiv:2002.07764},
  year   = {2021}
}

Comments

38 pages, 8 tables, accepted for publication in Empirical Software Engineering

R2 v1 2026-06-23T13:45:48.038Z