Performance tear sheet
In this exercise, you're going to create a full performance tear sheet on the S&P500 returns. You'll see that the elaborate calculations you've done in previous chapters, can very quickly be generated with this simple tear sheet, and by inputting just the returns data. In that sense, this tear sheet can save you a lot of time!
In the first few steps, you'll have to make sure that the data is in the right format otherwise, Pyfolio will give an error. The returns data is available as returns_sp500
. Go ahead and inspect the returns_sp500
data in the IPython shell using returns_sp500.head()
.
Este ejercicio forma parte del curso
Introduction to Portfolio Analysis in Python
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Set the index to datetime
returns_sp500.index=____.____(____.____)