Download PDF - Algorithm 44. An abbreviated method of calculating the Mahalanobis distance or residual sum of squares in a linear regression model