| New Reply |
solution to the integral,i.e, expected value of a function of normal variable |
Share Thread | Thread Tools |
| Jun26-12, 12:15 AM | #1 |
|
|
solution to the integral,i.e, expected value of a function of normal variable
I want to calculate [itex]\int_a^b \frac{1}{\sqrt{2 \pi \sigma^2}} e^{(-(x-\mu)/\sigma^2)} log_2 (1 + e^{-x}) dx[/itex]
|
| Jun26-12, 12:32 AM | #2 |
|
Mentor
|
You'll need to use numerical techniques. The above integral doesn't have a closed form solution in the elementary functions.
|
| Jun26-12, 12:38 AM | #3 |
|
|
|
| Jun26-12, 06:10 AM | #4 |
|
|
solution to the integral,i.e, expected value of a function of normal variableNumerical techniques are ones that give approximate answers in general. You can supply parameters to get a good enough approximation (like for example a number good enough to say 4 decimal places) for the better implementations. If you are unsure, just use a common package for numerical calculation. You should probably try searching online for a numeric integrator Java applet, or go to www.wolframalpha.com and enter in your expression to get an approximate answer. |
| Jun26-12, 07:42 AM | #5 |
|
|
|
| Jun26-12, 09:19 AM | #6 |
|
Recognitions:
|
[tex]\log_2(1+e^{-\mu})\left[\Theta(b-\mu)+\Theta(\mu - a)\right][/tex] as the result (the step functions [itex]\Theta[/itex] guarantee that mu is between a and b). So, for [itex]\sigma[/itex] small, a rather crude approximation might be [tex]\log_2(1+e^{-\mu}) \int_a^b \frac{dx}{\sqrt{2\pi}\sigma} \exp\left[-\frac{(x-\mu)^2}{2\sigma^2}\right],[/tex] where the integral can be evaluated in terms of the error function. There is a more systematic way to generate this approximation called the method of steepest descent. (You'll have to look that up in a book; I'm afraid the wikipedia article isn't very helpful). You might also be able to write down an infinite series for the integral. However, when I tried this by expanding the logarithm in powers of e^(-x), I got a sum which looks like it doesn't converge, indicating that either I made a mistake in my calculation or that switching the integral and sum isn't valid in this case. |
| Jun26-12, 03:27 PM | #7 |
|
|
Just looking at the form of equation. It seems that complex contour integral MAY work.
|
| Jun26-12, 04:11 PM | #8 |
|
|
The integral in the original post does NOT involve [itex]e^{-x^2}[/itex]. It is, rather, of the form [itex]e^{-x}[/itex].
|
| Jun26-12, 04:23 PM | #9 |
|
Mentor
|
To ait.abd: You need to learn how to do numerical integration sometime. If this is the right integral, that sometime is now. |
| New Reply |
| Tags |
| integral, probability |
| Thread Tools | |
Similar Threads for: solution to the integral,i.e, expected value of a function of normal variable
|
||||
| Thread | Forum | Replies | ||
| Integral of two-variable function | Calculus | 6 | ||
| Expected value of integral = integral of expected value? Need help in the stats forum | Calculus | 1 | ||
| Integral of this exponential function: does it have a solution? | Calculus | 4 | ||
| Expected Value of a Function (Standard Normal) | Calculus & Beyond Homework | 0 | ||
| gamma function as solution to an integral | Calculus & Beyond Homework | 0 | ||