Section 11.44

External validity

Definition

External validity is the extent to which a conclusion drawn from a study holds beyond the conditions the study tested: for other devices, software builds, workloads, environments, users or times. It is one of the standard kinds of validity in research design. Its counterpart, internal validity §11.45, asks whether the study measured the intended effect within its own setting. A study can be internally sound and still have narrow external validity, because tight control of conditions also narrows the range of conditions tested.

Where it fits

Main entry: Security claim scope (§1.45).

The security claim scope entry gives the method this term needs: list the exact software, hardware, environment, inputs and attacker capabilities that a claim covers, and treat everything outside that list as unsupported rather than refuted. External validity is research design’s name for the same question about any empirical conclusion: whether, and why, a result transfers to an untested setting.

A result transfers to a new setting when the new setting preserves every factor that the result depends on. Transfer is therefore argued from the mechanism, not from resemblance. A code sequence takes 100 clock cycles. At a clock frequency of 100 megahertz (MHz), 100 million cycles per second, it takes 100/100,000,000100 / 100{,}000{,}000 seconds, which is 1 microsecond. On the same processor at 50 MHz it takes 100/50,000,000100 / 50{,}000{,}000 seconds, which is 2 microseconds. A claim stated in cycles transfers across clock frequencies; a claim stated in microseconds does not. Even the cycle count transfers only if memory timing in cycles stays the same. On many microcontrollers §6.1, the flash memory §6.6 that holds the program needs more wait states, idle cycles inserted into each access, at higher clock frequencies, so the same code takes more cycles.

How the tested units were chosen matters as much. A result from the three fastest boards in a lab says little about the slowest boards in use. Unless the tested devices or workloads were sampled from the population the claim names, transfer to that population must be argued.

Questions answered

Which changed platform assumptions would require new evidence?

A changed platform assumption requires new evidence whenever a claim depends on it. Typical cases:

To decide, list for each claimed property the platform facts it depends on. A change to one of those facts calls for new evidence for that property. A change to an unrelated fact needs a written argument that it is unrelated, not a full rerun. For example, a 100-cycle code path takes 1 microsecond at 100 megahertz and 2 microseconds at 50 megahertz, so halving the clock frequency invalidates a claim about time but leaves a claim about cycle counts intact, provided the memory needs the same number of wait states.

Related entries: Population and sample (§11.1), Causal inference (§11.11), Security claim scope (§1.45), Worst-case execution time (WCET) (§9.33), Internal validity (§11.45).