I'm fitting a lognormal function to lognormal distributed data with the following code using scipy.stats.lognormal:
from scipy.stats import lognorm
params = lognorm.fit(data, loc=0)
I get back three parameters. Now I want to calculate the mean and standard deviation of the underlying normal distribution. I know that I've to use the parameters I get back from scipy
but I'm not sure how to make the calculation on these. This question is almost what I'm looking for but they calculate the mean and stddev of the lognormal and not the underlying normal distribution.
Edit:
I found this post where is done what I need, except that there is no scipy
loc
parameter included. In my case I want to keep this parameter during my conversation into mean and stddev.