Statistical Analysis of Designed Experiments: Theory