kelly_qp: Quadratic programming approximation to discrete time...

Description Usage Arguments Details Value

View source: R/mean_variance.R

Description

A quadratic programming approximation to the Kelly criterion, i.e. full risk mean-variance optimization.

Usage

1
kelly_qp(returns, direction = "long", sample_mean = NULL, sample_cov = NULL)

Arguments

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

Details

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.

Value

vector


shill1729/KellyCriterion documentation built on Oct. 12, 2020, 4:21 a.m.