@Demo public class MarkowitzDemo extends Object
Using this example. Builds a Markowitz allocation from Yahoo history and the risk parameter in main. Asset ordering in the return matrix must match the products associated with the resulting weights. The optimizer computes weights; converting them to executable trades is a separate step.
Model and publication. Related theory and the scope of this example are distinguished below.
Implementation in this tutorial. Trades off expected return against covariance-based portfolio risk. The historical optimizer example estimates inputs from Yahoo observations, chooses a risk parameter and computes weights. Mean estimates and covariance uncertainty are not eliminated by solving the quadratic program.
| Constructor and Description |
|---|
MarkowitzDemo() |
public static void main(String[] args)
Copyright © 2026. All rights reserved.