Hi,
I have three points 10800, 81100, 582000.
What is the easiest way of fitting a log normal and truncated log normal distribution to these three points using numpy.
I would appreciate your reply for the same.
Cheers
Sachin
************************************************************************
Sachin Kumar Sharma
Senior Geomodeler
Hi,I have three points 10800, 81100, 582000.What is the easiest way of fitting a log normal and truncated log normal distribution to these three points using numpy.
in your last example a=-2 is ignored
>>> stats.norm.pdf(3)
0.0044318484119380075
a, b, xa, xb are attributes of the distribution that are set when the
distribution instance is created.
changing a and b doesn't make much sense since you would truncate the
support of the distribution without changing the distribution
>>> stats.norm.pdf(-3)
0.0044318484119380075
>>> stats.norm.a = -2
>>> stats.norm.pdf(-3)
0.0
stats.norm and the other distributions is an instances, and if you
change a in it it will stay this way, and might mess up other
calculations you might want to do.
xa, xb are only used internally as limits for the inversion of the cdf
(limits to fsolve) and I don't think they have any other effect.
what's a truncated lognormal ? left or right side truncated.
I think it might need to be created by subclassing.
there might be a direct way of estimating lognormal parameters from
log(x).mean() and log(x).std() if x is a lognormal sample.
(that's a scipy user question)
Josef
> Christoph
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Di...@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Di...@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion