Description Usage Arguments Details Value
View source: R/mean_variance.R
A quadratic programming approximation to the Kelly criterion, i.e. full risk mean-variance optimization.
1 |
returns |
the data-set of (daily) arithmetic returns. Assumes it is a matrix with colnames of tickers |
direction |
the direction of the bet: long or short |
sample_mean |
the mean vector |
sample_cov |
the covariance matrix |
The function estimates the entire sample set for mean returns and covariance and then runs the optimization routine by calling solve.qp from quadprog package.
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.