Least Squares Methods of Analysis