Initial values with least squares