Chapter 11

Experimental design, measurement, and statistics

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.

In this chapter

  1. 11.1 Population and sample
  2. 11.2 Estimand and estimator
  3. 11.3 Experimental unit
  4. 11.4 Observational unit
  5. 11.5 Independent and identically distributed samples
  6. 11.6 Pseudoreplication
  7. 11.7 Paired design
  8. 11.8 Randomization
  9. 11.9 Blocking
  10. 11.10 Confounding
  11. 11.11 Causal inference
  12. 11.12 Sample mean
  13. 11.13 Median
  14. 11.14 Variance and standard deviation
  15. 11.15 Standard error
  16. 11.16 Quantile and percentile
  17. 11.17 Empirical cumulative distribution function (ECDF)
  18. 11.18 Confidence interval
  19. 11.19 Bootstrap
  20. 11.20 Percentile bootstrap
  21. 11.21 Cluster bootstrap
  22. 11.22 Hypothesis test
  23. 11.23 p-value
  24. 11.24 Effect size
  25. 11.25 Statistical power
  26. 11.26 Multiple comparisons
  27. 11.27 Warmup and steady state
  28. 11.28 Censoring
  29. 11.29 Missing data and attrition
  30. 11.30 Survivorship bias
  31. 11.31 Outlier handling
  32. 11.32 Instrumentation overhead
  33. 11.33 Measurement uncertainty
  34. 11.34 Resolution versus precision versus accuracy
  35. 11.35 Counter quantization
  36. 11.36 Latency distribution and tail
  37. 11.37 Peak versus retained memory
  38. 11.38 Static versus dynamic footprint
  39. 11.39 Geometric mean
  40. 11.40 Ratio of aggregates versus aggregate of ratios
  41. 11.41 Finite-window rate
  42. 11.42 Calibration
  43. 11.43 Reproducibility versus repeatability
  44. 11.44 External validity
  45. 11.45 Internal validity
  46. 11.46 Sensitivity analysis
  47. 11.47 Equivalence and noninferiority testing