Least Squares Analysis & Residuals