Least squares line prediction