rp_simplex(portfolio, permutations, fev = 0:5)
portfolio.spec
The random portfolios are created by first generating a set of uniform random numbers. $$U \sim [0, 1]$$ The portfolio weights are then transformed to satisfy the min of the box constraints. $$w_{i} = min_{i} + (1 - \sum_{j=1}^{N} min_{j}) \frac{log(U_{i}^{q}}{\sum_{k=1}^{N}log(U_{k}^{q}}$$
fev
controls the Face-Edge-Vertex (FEV) biasing where $$q=2^{fev}$$
As q
approaches infinity, the set of weights will be concentrated in a
single asset. To sample the interior and exterior, fev
can be passed
in as a vector. The number of portfolios, permutations
, and the
length of fev
affect how the random portfolios are generated. For
example, if permutations=10000
and fev=0:4
, 2000 portfolios will
be generated for each value of fev
.