Statistical Inference and the Sum of Squares Method