- #1
EngWiPy
- 1,368
- 61
I have the pdf of a random variable found from the characteristic function given by
[tex]f_X(\alpha)=\frac{1}{2\pi}\sum_{m=0}^Mj^m{K\choose m}\int_0^{\infty}e^{-jt(m+\alpha)}E_1^m(-jt)\,dt[/tex]
where ##j=\sqrt{-1}## and ##E_1(x)## is the exponential integral. I need to find the CDF of the random variable ##X## which is given by
[tex]F_X(x)=\int_0^xf_X(\alpha)\,d\alpha[/tex]
I can interchange the integrals, but I ended with two numerical integrations as well.
How can I do this in MATLAB? Is it easier to do in Mathematica?
[tex]f_X(\alpha)=\frac{1}{2\pi}\sum_{m=0}^Mj^m{K\choose m}\int_0^{\infty}e^{-jt(m+\alpha)}E_1^m(-jt)\,dt[/tex]
where ##j=\sqrt{-1}## and ##E_1(x)## is the exponential integral. I need to find the CDF of the random variable ##X## which is given by
[tex]F_X(x)=\int_0^xf_X(\alpha)\,d\alpha[/tex]
I can interchange the integrals, but I ended with two numerical integrations as well.
How can I do this in MATLAB? Is it easier to do in Mathematica?