Re: [Numpy-discussion] Change in default behavior of np.polyfit

2018-06-01 Thread Marten van Kerkwijk
Hi Andreas, Thanks for noticing and correcting this unexpected scaling! The addition to get the unscaled version is also very welcome. All the best, Marten ​ ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/

[Numpy-discussion] Change in default behavior of np.polyfit

2018-06-01 Thread Andreas Nußbaumer
Hi, in [1] the scaling factor for the covariance matrix of `np.polyfit` was discussed. The conclusion was, that it is non-standard and a patch might be in order to correct this. Pull request [2] changes the factor from chisq(popt)/(M-N-2) to chisq(popt)/(M-N) (with M=number of point, N=number of p