|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.montecarlo.MonteCarlo
public class MonteCarlo
This class is used to run Monte Carlo simulations of portfolio returns over the 1 year horizon we're using in our optimization.
| Constructor Summary | |
|---|---|
MonteCarlo(cern.colt.matrix.DoubleMatrix1D mu,
cern.colt.matrix.DoubleMatrix2D V)
Constructs with a specified multivariate normal distribution |
|
| Method Summary | |
|---|---|
void |
setExpRet(double expRet)
Sets the expected return for the simulation |
java.util.List<SolvedPoint> |
simulate(cern.colt.matrix.DoubleMatrix1D weights)
Simulates returns for a portfolio with fixed weights. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonteCarlo(cern.colt.matrix.DoubleMatrix1D mu,
cern.colt.matrix.DoubleMatrix2D V)
mu - Mean vector for multivariate normalV - Covariance matrix for multivariate normal| Method Detail |
|---|
public void setExpRet(double expRet)
expRet - Expected return as a decimalpublic java.util.List<SolvedPoint> simulate(cern.colt.matrix.DoubleMatrix1D weights)
weights - The weights to use for the various assets
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||