added least squares ranking to returned stats object