Class MVOptimizerShrankMean
- java.lang.Object
-
- tech.nmfin.portfoliooptimization.lai2010.optimizer.MVOptimizerShrankMean
-
- All Implemented Interfaces:
MVOptimizer
public class MVOptimizerShrankMean extends Object implements MVOptimizer
Shrinks the mean towards average before passing the inputs to another MVOptimizer.
-
-
Constructor Summary
Constructors Constructor Description MVOptimizerShrankMean(MVOptimizer mvOptimizer, double shrinkage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector
optimalWeights(Vector mu0, Matrix V, double lambda, double eta)
Solves for the optimal weights given the moments, lambda, and eta.
-
-
-
Constructor Detail
-
MVOptimizerShrankMean
public MVOptimizerShrankMean(MVOptimizer mvOptimizer, double shrinkage)
-
-
Method Detail
-
optimalWeights
public Vector optimalWeights(Vector mu0, Matrix V, double lambda, double eta)
Description copied from interface:MVOptimizer
Solves for the optimal weights given the moments, lambda, and eta.- Specified by:
optimalWeights
in interfaceMVOptimizer
- Parameters:
mu0
- the expected returnsV
- the covariance matrixlambda
- the risk-aversion index λeta
- η- Returns:
- the weights
-
-