You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This R Shiny App utilizes the Hierarchical Equal Risk Contribution (HERC) approach, a modern portfolio optimization method developed by Raffinot (2018).
Traditional portfolio optimization suffers from significant instability, primarily due to modeling the vector space of return series as a fully connected graph, where each node can potentially substitute for another. This complicated structure magnifies minute estimation errors, leading to unstable solutions. Hierarchical clustering-based tree structures address this issue by eliminating irrelevant links.
As far as I know, there is no other correct implementation of this methodology in R.
User Input
Use the Ticker table above to enter the securities you wish to invest in. The data is sourced from Yahoo Finance.
Specify the range of clusters if you wish to narrow this parameter. If not specified, the Silhouette method will determine the optimal number.
Choose the method to weight the clusters in relation to one another and the assets within each cluster. Risk is defined here as volatility.
Output
Dendrogram illustrating the hierarchical structure of the securities.
Pie chart representing the optimized portfolio.
Table listing each security's portfolio weight and cluster membership.
Graph depicting the cumulative returns of the securities and the optimized portfolio based on the used data.
Bar chart comparing the Sharpe ratios of the securities and the optimized portfolio.
This R Shiny App utilizes the Hierarchical Equal Risk Contribution (HERC) approach, a modern portfolio optimization method developed by Raffinot (2018).