public class SAAM extends Object implements PortfolioOptimizationAlgorithm
PortfolioOptimizationAlgorithm.CovarianceEstimator, PortfolioOptimizationAlgorithm.MeanEstimator, PortfolioOptimizationAlgorithm.SampleCovarianceEstimator, PortfolioOptimizationAlgorithm.SampleMeanEstimator, PortfolioOptimizationAlgorithm.SymbolLookup| Constructor and Description |
|---|
SAAM(double riskAverse) |
SAAM(double shrinkage,
double riskAverse) |
SAAM(double shrinkage,
double riskAverse,
int maxStocks) |
SAAM(double shrinkage,
double riskAverse,
int nBoots,
int maxStocks,
double explained) |
SAAM(double riskAverse,
int maxStocks) |
| Modifier and Type | Method and Description |
|---|---|
Vector |
getOptimalWeights(Matrix returns,
Vector weights0,
PortfolioOptimizationAlgorithm.SymbolLookup symbolLookup)
Computes the optimal weights for the products using returns.
|
public SAAM(double shrinkage,
double riskAverse,
int nBoots,
int maxStocks,
double explained)
shrinkage - shrinkageriskAverse - risk adverse parameters; the bigger the more risk
adversenBoots - number of bootstrapped pathsmaxStocks - maximum number of stocksexplained - weights explainedpublic SAAM(double shrinkage,
double riskAverse)
public SAAM(double riskAverse)
public SAAM(double shrinkage,
double riskAverse,
int maxStocks)
public SAAM(double riskAverse,
int maxStocks)
public Vector getOptimalWeights(Matrix returns, Vector weights0, PortfolioOptimizationAlgorithm.SymbolLookup symbolLookup) throws Exception
PortfolioOptimizationAlgorithmgetOptimalWeights in interface PortfolioOptimizationAlgorithmreturns - the returns of the productsweights0 - the initial/current/original weightssymbolLookup - the lookup service for product symbols and indicesException - if fail to compute optimal weightsCopyright © 2010-2018 Numerical Method Incorporation Limited. All Rights Reserved.