[Numpy-discussion] Fitting a curve on a log-normal distributed data
geometrian at gmail.com
Thu Nov 19 22:12:26 EST 2009
My analysis shows that the exponential regression gives the best result
(r^2=87%)--power regression gives worse results (r^2=77%). Untransformed
data gives r^2=76%.
I don't think you want lognorm. If I'm not mistaken, that fits the data to
a log(normal distribution random variable).
So, take the logarithm (to any base) of all the "conc" values. Then do a
linear regression on those values versus "sizes".
slope, intercept, p, error = scipy.stats.linregress(sizes,log(conc))
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion