Thank you for your answer!
I think i have to ask my question more precise.
I have 2 arrays, one of x-data, one of y-data:
x-data array:
Plotting this, i geht the graph that i postet yesterday. Its clearly a lognormal function, so what i need now is a (lognormal-) function, that fits my data best, to gain the median and the sigma. I thought, that "stats.lognorm.fit" provides me this information. Unfortunately when i run the following code, i get a median of approximately 1.4, but looking at my graph, it clearly should be somewhere around 6.
Thx, Carol
I think i have to ask my question more precise.
I have 2 arrays, one of x-data, one of y-data:
x-data array:
Plotting this, i geht the graph that i postet yesterday. Its clearly a lognormal function, so what i need now is a (lognormal-) function, that fits my data best, to gain the median and the sigma. I thought, that "stats.lognorm.fit" provides me this information. Unfortunately when i run the following code, i get a median of approximately 1.4, but looking at my graph, it clearly should be somewhere around 6.
from scipy import stats s, loc, scale = stats.lognorm.fit(x0, floc=0) #x0 is rawdata x-axis estimated_mu = np.log(scale) estimated_sigma = s print estimated_mu print estimated_sigma estimated mu = 1.4968829026551267 estimated sigma = 0.8699922377581952I am really sorry, for posting thiy wall of numbers, and clearly dumb beginner questions, but im quite desperate right now. Any help is appreciated!
Thx, Carol