Stochastic logarithm (source code)

= Stochastic logarithm
{title2=$L=\int Z^{-1}\,dZ$}

For a strictly positive continuous semimartingale $Z$, its stochastic logarithm is $\int Z^{-1}\,dZ$. When $Z$ is a continuous local martingale starting at one, this is a local martingale $L$ and the <Itô formula> gives $Z=\exp(L-\langle L\rangle/2)$. Unlike the ordinary logarithm, it has no compensating finite-variation term.