Introduction
In finance, return is a profit on an investment. It can be used to gauge different metrics, all of which help determine how profitable a investment target is. A positive return represents a profit while a negative return marks a loss.
Definition
Traditionally simple returns are denoted with a capital R
(or r
(or
where
The first one is to go from simple to log returns, and the seconed one is to go from log return to simple return. Therefore, it can be shown that log returns are always smaller than simple returns.
It can also be deduced that using an approximation of the logarithm that
Cumulative Returns
Let’s take a look at a typical bank deposit to recap the concept of compounding. If you deposit $100 in a bank with a 10% annual interest rate and a yearly compounding period. The following is an example of what you get in a year:
What if we increase
In a daily compounding scenario, you earn interest on a daily basis, and those interest in turns makes you more interest, that is, interest on interest. How do all these relate to log returns? Let us now use market prices instead of bank deposits to illustrate the concept. The simple cumulative daily return is calculated by taking the cumulative product of the daily percentage change. This calculation is represented by the following equation:
Compounding logarithmic returns over time can be calculated by the following:
Python Computation
In the Python language if you have a series of prices (in the code price_df
is a pd.DataFrame
object), you can compute the simple returns with:
simple_returns = price_df['close'].pct_change()
simple_cumulative_returns = (1 + simple_returns).cumprod() - 1
As for log returns you can compute it with the following:
log_returns = np.log(price_df['close']/price_df['close'].shift())
log_cumulative_returns = np.exp(log_returns.cumsum()) - 1
Notes
It can be presented in the stock case that the logarithmic return has an advantage against the simple return since multi-period logarithmic return can be calculated as a sum of the one-period logarithmic returns. While the multi-period simple return is the product of the one-period simple returns, which can lead to computational problems for values close to zero. Additionally, we can see that if the simple return values are close to zero, the distribution of simple and logarithmic returns is extremely similar. This raises the question of whether the return type (simple or log) has an impact on the calculations and, as a result, on the outcomes.
Conclusions
Our goal in this article was to explain the concepts of simple and logarithmic return, as well as the differences and connections between them.