This chapter explains how to turn measurements into conclusions that hold beyond the runs that produced them. It begins with the design of an experiment: the population and the sample drawn from it, the quantity to be estimated, called the estimand §11.2, and the rule that estimates it, the estimator, and the experimental unit §11.3, the smallest thing to which a treatment is applied independently. Mistakes in that design, such as pseudoreplication §11.6, which counts repeated measurements of one unit as independent samples, cannot be repaired by later analysis. Paired designs §11.7, randomization §11.8 and blocking control for differences between units, and the entries on confounding §11.10 and causal inference §11.11 explain when a measured difference can be attributed to its supposed cause.
The middle of the chapter covers summaries and their uncertainty: means, medians §11.13, variances §11.14 and standard errors §11.15, quantiles §11.16 and the empirical cumulative distribution function §11.17, confidence intervals §11.18 and the bootstrap methods that compute them by resampling the data, hypothesis tests §11.22 and p-values §11.23, effect sizes §11.24, statistical power §11.25, and corrections for multiple comparisons §11.26. The last part is about measuring computer systems: warm-up §11.27 and steady state, censored and missing data §11.29, survivorship bias §11.30, outliers §11.31, the overhead that instrumentation §14.24 adds, resolution, precision and accuracy, the rounding that a counter’s tick imposes, latency distributions §11.36 and their tails, peak and retained memory §11.37, static and dynamic footprints §11.38, the geometric mean §11.39, the difference between a ratio of averages and an average of ratios, rates measured over a finite window, calibration §11.42, and finally reproducibility §11.43, internal and external validity §11.44, and sensitivity analysis §11.46.