Skip to content

Four Kinds of Validity

Part of Evidence in software engineering.

Experimental social science distinguishes several different ways an experiment can be wrong. The SIGSOFT standards use essentially the same framework, and a July 2026 paper specifically proposing standards for randomized AI evaluations builds on these established validity frameworks. (ACM SIGSOFT)

An evaluation should address four validity questions:

ValidityQuestion, with a coding-agent example
Construct validityDoes the measurement capture the claimed construct? Does “PR count” measure productivity? See Measures and constructs.
Internal validityDid the agent cause the observed difference, or was something else responsible? See Causal claims.
External validityDoes the result apply to other engineers, repositories, tasks, models, and organizations?
Conclusion validityDo the data and statistical analysis actually support the conclusion?

This is much more useful than asking simply, “Was the experiment successful?”

External validity

A coding-agent experiment could have excellent internal validity and terrible external validity: perhaps the agent performs well on 30 carefully selected CRUD tasks completed by experienced Python engineers. That’s meaningful evidence for that population. It isn’t evidence that “AI agents improve software engineering.”

Reproducibility

A fifth question sits beside the four: could someone else repeat the study? That needs the dataset or task set, the queries and selection rules, the configuration of the tools measured, and the analysis scripts. The evidence protocol asks for the same under “preserve the experiment”, and replication depends on it.

Applying the questions

The Zalando case critique works through all five for one engineering report.

Library sources

  • Trochim et al. 2016, Research Methods: The Essential Knowledge Base – the four validity types and their threats; on The Validity of Research (1.5), External Validity (4.3), Internal Validity (8.2b) and Conclusion Validity (11.2)
  • Wohlin et al. 2024, Experimentation in Software Engineering – the same four classes applied to software engineering experiments; on Validity Evaluation (9.7) and Detailed Description of Validity Threats (9.8)

Further reading:

  • Hernandez et al. 2025, Reproducible research policies and software/data management in scientific computing journals – reproducibility strategies, and how unevenly journals enforce them
  • Reynolds 2026, When benchmark inferences do not compose (arXiv:2607.26159) – evidence for each link from a result to a decision does not warrant the whole chain