Degrees of Freedom and Statistical Inference for Partial Least