Gil-Pelaez inversion formula (source code)

= Gil-Pelaez inversion formula
{c}

For a real <random variable> with <characteristic function> $\varphi(t)=\mathbb E[e^{itX}]$, the <Gil-Pelaez inversion formula> recovers the <cumulative distribution function> at every continuity point:
$$
F(x)=\frac12-\frac1\pi\lim_{T\to\infty}\int_0^T\frac{\operatorname{Im}(e^{-itx}\varphi(t))}{t}\,dt.
$$
At a jump the same expression gives $(F(x)+F(x-))/2$. The <integral> is interpreted as the indicated improper <limit>, not assumed absolutely convergent. The sign follows from the $e^{itX}$ convention: its imaginary part is $\mathbb E\sin(t(X-x))$. This is useful when a <characteristic function> is available algebraically but a density is not.<Note on the inversion theorem by J. Gil-Pelaez>[pp. 481–482]{ref}