Performance measures

To compare the performance of mutual functions or individual stocks, we need a performance measure. In finance, we know that investors should seek a trade-off between risk and returns. It might not be a good idea to say that portfolio A is better than portfolio B since the former offered us a 30% return last year while the latter offered just 8%. The obvious reason is that we should not ignore risk factors. Because of this, we often hear the phrase "risk-adjusted return". In this section, the Sharpe ratio, Treynor ratio, Sortino ratio, and Jensen's alpha will be discussed. The Sharpe ratio is a widely used performance measure and it is defined as follows:

Here, is the mean return for a portfolio or a stock, is the mean return ...

Get Python for Finance - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.