-
Book Overview & Buying
-
Table Of Contents
Python for Algorithmic Trading Cookbook - Second Edition
By :
Returns are integral to understanding the performance of a portfolio. There are two types: simple returns and compound (or log) returns.
Simple returns, which are calculated as{xe "asset returns:calculating, with pandas"} the difference in price from one period to{xe "pandas:asset returns, calculating with"} the next divided by the price at the{xe "simple returns"} beginning of the period, are beneficial in certain circumstances. They aggregate across assets, meaning the simple return of a portfolio is the aggregate of the returns of the individual assets, weighted according to their proportions. This trait makes simple returns practical for comparing assets and evaluating portfolio performance {xe "asset returns:calculating, with pandas"}over short-term intervals.
Simple returns are defined as follows:

On the other hand, compound returns, which are calculated {xe "compound returns"}using the natural...