I am trying to get the E(x) for a lognormal random variable using scipy.stats.expect.
Using the fit() module, the shape, loc and scale parameters are
shape = 0.9577226550971423, loc=-1.1217451814333423, scale=0.744230342110942
The expected value output is
from scipy.stats import lognorm
scipy.stats.lognorm.expect(lambda x:1, args=(0.9577226550971423,), loc=-1.1217451814333423, scale=0.744230342110942, lb=0.1, ub=1.5)
Output: 0.20809733881415318
However when calculating it manually using the pdf chart the value is closer to 0.5. Chart below:
would you be able to explain where I am wrong in this?