How Do You Integrate the Lognormal Function to Find Its Mean?

  • Context: Graduate 
  • Thread starter Thread starter jacophile
  • Start date Start date
  • Tags Tags
    Derivation Mean
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
10 replies · 32K views
jacophile
Messages
22
Reaction score
0
Hi, I am curious as to the strategy for integrating the lognormal function to calculate the mean.

The integral to be solved is:

[tex]\frac{1}{S\sqrt{2\pi}}\int_{0}^{\infty} \frac{e^{(lnx-M)^{2}}}{2S^{2}} dx[/tex]

I was trying to do it by a substitution

[tex]y=lnx\;\rightarrow\;dy=\frac{1}{x}dx[/tex]

[tex]x=e^{y}\;\rightarrow\;dx=e^{y}dy[/tex]

to give

[tex]\frac{1}{S\sqrt{2\pi}}\int_{-\infty}^{\infty} \frac{e^{(y-M)^{2}}}{2S^{2}}e^{y} dy[/tex]

and then integration by parts, but I keep going round in circles with vdu and what not…

Can anyone enlighten me on the trick to this?
 
Last edited:
Physics news on Phys.org
I made this a bit more readable, any ideas?
 
It looks like you have two errors in your statement. The 2S^2 probably belongs as a divisor in the exponent. Also there should be a minus in the exponent, otherwise the integrand will blow up at both ends.
In any case the exponent in y is a quadratic polynomial. Recast it in the form -[(y-k)^2]/[2S^2] +n, where k and n are constants. The final answer will be e^n.
 
jacophile said:
Hi, I am curious as to the strategy for integrating the lognormal function to calculate the mean.

The integral to be solved is:

[tex]\frac{1}{S\sqrt{2\pi}}\int_{0}^{\infty} e^{-\frac{(lnx-M)^{2}}{2S^{2}}}\; dx[/tex]

I was trying to do it by a substitution

[tex]y=lnx\;\rightarrow\;dy=\frac{1}{x}dx[/tex]

[tex]x=e^{y}\;\rightarrow\;dx=e^{y}dy[/tex]

to give

[tex]\frac{1}{S\sqrt{2\pi}}\int_{-\infty}^{\infty} e^{-\frac{(y-M)^{2}}{2S^{2}}}e^{y}\; dy[/tex]

and then integration by parts, but I keep going round in circles with vdu and what not…

Can anyone enlighten me on the trick to this?

Thanks, you are right, I have fixed the typos.
Not sure I understand your suggestion though...

Do you mean combine the two exponents into one and re-factorise the resultant polynomial?

The reason I am trying to understand this is that http://mathworld.wolfram.com/LogNormalDistribution.html" they state (in reference to the moments of the lognormal distribution) that the following can be found by direct integration:

[tex]\frac{1}{S\sqrt{2\pi}}\int_{-\infty}^{\infty} e^{-\frac{(y-M)^{2}}{2S^{2}}}e^{y}\; dy \;=\;e^{\frac{M+S^2}{2}}[/tex]
 
Last edited by a moderator:
Thanks! Very much appreciated: you assume correctly!

Thanks for you help.
 
but the mean of a lognormal distribution is [itex]e^{\mu + \sigma^2/2}[/itex] not [itex]e^{(\mu + \sigma^2)/2}[/itex]

it can be derived as a limit of geometric brownian motion
 
yeh, sorry, that is the result I got, neglected to fix the typo...
 
Yes, sorry, that is what I meant in my last post. I got [itex]e^{\mu + \sigma^2/2}[/itex] as well. It was just a typo in my previous posts.
 
pdf f(x)=1/(x*S*sqrt(2*pie))*integral exp(-((lnx)-m)^2/(2*S^2))dx
mean=integral((f(x).x.)dx /*x will cancel up in this case)
mean= integral(1/(S*sqrt(2*pie)*exp(-((lnx)-m)^2/(2*S^2))dx
solving as you discuseed by assuming ln(x)=y we get
integral(1/(S*sqrt(2*pie)*exp(-(y-m)^2/(2*S^2))* exp^ydx
1/(S*sqrt(2*pie))*integral exp(-(y-m)/(2*S^2) + y) dy /* limit - infinity to infity will not change due to replcement of lnx by y)
1/(S*sqrt(2*pie))*integral exp(-1/(2*s)*(( y-(m+s))^2 -(s^2+2ms))
exp(1/(S*sqrt(2*pie)*(s^2+2ms)* integral (1/(S*sqrt(2*pie))*(-1/(2*s)*( y-(m+s))^2)


integral (1/(S*sqrt(2*pie)*(-1/(2*s)*( y-(m+s))^2) is standard normal distrbution with mean (m+s) and variance s. so it will be equal to one.
one firstpart will be left
exp(1/(S*sqrt(2*pie)*(s^2+2ms)*