Getting standard error associated with parameter estimates from scipy.optimize.curve_fit
问题 I am using scipy.optimize.curve_fit to fit a curve to some data i have. The curves, for the most part, seem to fit very well. For some reason, pcov = inf when i print it off. What i really need is to calculate the error associated with the parameters i'm fitting, and am not sure how exactly to do this even if it does give me the covariance matrix. The model being fit to is: def intensity(x,R_out,R_in,K_in,K_out,a,b,c): K_in,K_out = abs(0.0),abs(K_out) if x<=R_in: return 2*R_out*(K_out*np.sqrt