The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged


No need to invent your own algorithm for random portfolio weights. There is a very simple algorithm to generate a random point in a simplex (i.e. to generate $e_i,i=1,k$ such that $e_i\ge 0$ and $\sum_{i=1}^k e_i=1$). It is due to Rubinstein and Melamed (1998): Generate k independent exponential random variables $Y_1,\cdots,Y_k$ (for example they can be ...


The problem you describe can be handled as an optimization problem: evolve a program such that it maximizes some performance measure. The technique you may want to look into is called "Genetic Programming". For a financial application see for example Single versus Multiple Tree Genetic Programming for Dynamic Decision Making.

Top 50 recent answers are included