chiSigma | R Documentation |
Calculates covariance matrix filtered using the most diversified hierarchical graph. The hierarchical graph can be optimized using maximum diversification (MaxDiv) or equal risk contribution (ERC).
chiSigma(
sigma,
mu = NULL,
meta_loss = c("MaxDiv", "ERC"),
UB = NULL,
LB = NULL,
gamma = 0,
max_tilt = 1,
...
)
sigma |
a |
mu |
a |
meta_loss |
a loss function of the most diversified hierarchical allocation graph. |
UB |
scalar or |
LB |
scalar or |
gamma |
risk aversion parameter. Default: |
max_tilt |
maximum percentage reduction in the effective number of assets. Default: |
... |
arguments passed to |
The argument sigma
is a covariance matrix.
Hierarchical clustering is performed using the cluster
-package. If
cluster_method == 'DIANA'
, the function cluster::diana
is used
to compute a cluster dendrogram, otherwise the function cluster::agnes(., method = cluster_method)
is used. Default is single-linkage agglomerative nesting.
The argument meta_loss
represents the loss function used to optimize the most diversified hierarchical allocation graph.
The optimized hierarchy is used to filter sigma
. If the filtered covariance matrix is used in a
minimum variance portfolio optimizer, a CHI portfolio is constructed.
A (N \times N)
filtered covariance matrix.
Johann Pfitzinger
# Load returns of assets or portfolios
data("Industry_10")
rets <- Industry_10
sigma <- cov(rets)
chiSigma(sigma)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.