I'm creating a log price series in MATLAB. This is fairly easy to do using standard functions. Given a price series prices
:
r = diff(log(prices))
will give you the standard log return series calculated by
$r = \ln(P_t) - \ln(P_{t-1})$
However, I'd like to use the tick2ret function in the Financial Toolbox to keep my tooling consistent. Here's where the confusion starts:
I've always referred to r
above as the "continually compounded return series". Perhaps this is incorrect. tick2ret
calculates, by default, the "simple compounding return series". Curious, I made another return series:
r2 = tick2ret(prices)
and as it turns out r
and r2
are virtually the same aside from rounding. I expected the "simple compounded returns" to be calculated using
$r = \frac{P_t - P_{t-1}}{P_{t-1}}$
However, according to my calculation they are using the log return calculation.
Am I misunderstanding simple and compound returns? Can the log return series be calculated using simple compounding? I think I am getting lost in terminology.
Thank you!