This repository was initially created to share my project for my course in Business Computing. I wrote an article talking briefly about passive investing and asset allocation, In the end, I made a historical simulation using Python. Now, I am developing this repository to show some python applications for asset allocation and finance.
The article content:
- The most important topics that affect returns,
- The efficient market hypothesis,
- Passive investing methodology for individual investors,
OBS: This repository is heavily based in the Courses of Assets Management w/ Python from EDHEC
Here, just to initiate the topic of asset allocation and python for financial applications, we developed a portfolio with no rebalance and no changes. It is noticeable, that as the equity share of the portfolio outperforms the others classes, it becomes more volatile and less diversified. But we will analyze it deeper when we use python for computing portfolio metrics. Code
It was introduced a portfolio with the same assets classes and weights as the last one, but this time we had rebalanced the portfolio for fixed weights in a fixed interval of time. It performed worst than the last portfolio in absolute terms (compounded return), but it was more diversified and probably much less volatile. Again, we will compare it better when we introduce the metrics computation for assets. Code
Python applications for calculating annualized return and volatility. This was just the beginning, there is a lot to show when talking about portfolio metrics. And python is a really useful tool for that. Code
Python application for calculating and plotting the historical drawdown for the SPY index, reflected by the IVV ETF. We can use the same proccedure to calculate the drawdown for any asset or portfolio.
We use python to calculate the SemiDeviation, Historic VaR, Historic CVar, Parametric VaR and Cornish-Fisher Parametric VaR.