Description Usage Arguments Details Value Author(s) Examples
This function computes the minimum-variance portfolio given the expectations and covariance matrix of some asset returns.
1 | minvar_portfolio(mu, Omega, mu_p = NULL)
|
mu |
a vector of returns of some assets. |
Omega |
a positive definite covariance matrix of the returns. |
mu_p |
a scalar of the expected return of some portfolio, by default |
If the expected return of the portfolio is not provided, the function finds the global minimum-variance portfolio. The restuls contain the expected return of the global minimim-variance portfolio, the corresponding weights of the portfolio, and the minimum-variance.
If the expected return of the portfolio is provided, the function finds the optimal portfolio which achieves the given expected return mu_p
as well as the global one.
The restuls contain the expected return of the optimal portfolio which achieves the expected return mu_p
,
the corresponding weights of the portfolio,
and the minimum-variance.
a list containing the following results:
w_g |
the weights of the global minimum-variance portfolio. |
mu_g |
the expected return of the global portfolio. |
var_g |
the variance of the global portfolio. |
w_p |
the weights of the portfolio which achieves the return |
mu_p |
the expected return of the portfolio. |
var_p |
the variance of the portfolio. |
Yukai Yang, yukai.yang@statistik.uu.se
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.