Key features

Generate Random Portfolios

Random portfolios are a sample from the population of portfolios that obey some given set of constraints. The constraints are the key ingredient. For example, we may want 5000 portfolios that obey the constraints:

  • long-only
  • 75 to 80 names in the portfolio
  • no asset may contribute a fraction of more than 3% to the portfolio variance

Implementation

The random.portfolio function is used to produce random portfolios. This function takes the same arguments as trade.optimizer plus an argument saying how many portfolios to generate and an argument saying whether to return the portfolios or the trades. It ignores the arguments concerning utility, and cost (unless there are cost constraints).

It is easy to generate random portfolios if there are only trivial constraints.  However, when realistic constraints are placed on the portfolios, then efficiently generating the portfolios becomes a computational challenge.

See Constraints for the constraints that are implemented.

Other key features

Portfolio Optimization

Utility-free Optimization

Contraints and flexibility

Transaction Costs

Computing Engine

Start today

Try Portfolio Probe for free

Explore the full platform with a 30-day free trial. Test advanced portfolio optimization, risk analysis, and random portfolio generation using your own investment scenarios.

  • Full feature access
  • No credit card required
  • 30-day free trial

Looking for an enterprise license instead? View licensing options.