Completing the Square: How do we Derive the Expectation of a Lognormal Variable?

  • Context: Graduate 
  • Thread starter Thread starter rwinston
  • Start date Start date
  • Tags Tags
    Square
Click For Summary
SUMMARY

The discussion focuses on deriving the expectation of a lognormal variable using the integral ∫_{-∞}^{+∞} e^x e^{-(x-μ)^2/2σ^2}dx. The key method involves completing the square, leading to the expression (x-(μ+σ^2))^2/2σ^2 + μ + σ^2/2. A correction was noted regarding the sign in the expansion of the square, emphasizing the importance of accurate algebraic manipulation in this derivation.

PREREQUISITES
  • Understanding of lognormal distributions and their properties
  • Familiarity with integrals and calculus, particularly Gaussian integrals
  • Knowledge of completing the square in algebra
  • Basic statistical concepts related to expectation and variance
NEXT STEPS
  • Study the derivation of the expectation for other distributions, such as the normal distribution
  • Learn about the properties of lognormal distributions in statistical modeling
  • Explore advanced integration techniques, including substitution and transformation methods
  • Investigate applications of lognormal variables in finance and risk assessment
USEFUL FOR

Statisticians, data scientists, and mathematicians involved in probability theory and statistical modeling, particularly those working with lognormal distributions.

rwinston
Messages
36
Reaction score
0
Hi all

A basic question here:

I am deriving the equation for the expectation of a lognormal variable. This involves rearranging the contents of the integral

<br /> \int_{-\infty}^{+\infty} e^x e^{-(x-\mu)^2/2\sigma^2}dx<br />

A proof I have seen completes the square like so:

<br /> x-\frac{(x-\mu)^2}{2\sigma^2} = \frac{2\sigma^2x-(x-\mu)^2}{2\sigma^2}<br />

<br /> = \frac{(x-(\mu+\sigma^2))^2}{2\sigma^2} + \mu + \frac{\sigma^2}{2}<br />

So, trying this (ignoring the 2\*sigma^2 denominator for now):

<br /> 2\sigma^2x-(x-\mu)^2 = 2\sigma^2x-(x^2-2\mu x +\mu^2)<br />

<br /> =-x^2+(2\mu+2\sigma^2)x-\mu^2<br />

<br /> \Rightarrow x^2-(\mu+2\sigma^2)x =\mu^2 <br />

<br /> x^2-(2\mu+2\sigma^2)x+(-\mu-\sigma^2)^2 = -\mu^2 + (-\mu-\sigma^2)^2<br />

When attempt to express the LHS as a square:

<br /> (x-(\mu+\sigma^2))^2 = -\mu^2 + (\mu^2 + 2\sigma^2\mu + \sigma^4)<br />

<br /> \Rightarrow (x-(\mu+\sigma^2))^2 = 2\sigma^2\mu+\sigma^4)<br />

Bringing over the RHS terms, and factoring in the 2*sigma^2 denominator:

<br /> \Rightarrow \frac{(x-(\mu+\sigma^2))^2}{2\sigma^2} + \mu + \frac{\sigma^2}{2} = 0<br />

[ok , got it now. thanks to the poster below]
 
Last edited:
Physics news on Phys.org
1st line mistake: When expanding the square parenthesis into the full parenthesis, there shall be a + in front of \mu^{2}, not - as you have done.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K