|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ojalgo.finance.MarkowitzModel
@Deprecated public final class MarkowitzModel
The Markowitz Model is normally defined as: min [w]T[C][w] subject to [w]T[r] = ro and |[w]| = 1 or max [w]T[r] subject to [w]T[C][w] = vo and |[w]| = 1
Here it is defined as: min (RAF/2) [w]T[C][w] - [w]T[r] subject to |[w]| = 1
RAF stands for Risk Aversion Factor. Instead of specifying a desired risk or return level you specify a level of risk aversion.
The expected returns for each of the instruments/assets must be excess returns. Otherwise this formulation is wrong.
The total weights of all instruments will always be 100%, but shorting can be allowed or not according to your preference.
Risk-free asset: That means there is no excess return and zero variance. Don't (try to) include a risk-free asset here.
| Constructor Summary | |
|---|---|
MarkowitzModel(BasicMatrix aCovariances,
BasicMatrix anExpectedExcessReturns,
BigDecimal aRiskAversion)
Deprecated. |
|
MarkowitzModel(MarketEquilibrium aMarket,
BasicMatrix anExpectedExcessReturns)
Deprecated. |
|
| Method Summary | |
|---|---|
BasicMatrix |
calculatePortfolioWeights()
Deprecated. Constrained optimisation. |
BasicMatrix |
getCovariances()
Deprecated. |
BasicMatrix |
getExpectedExcessReturns()
Deprecated. |
BigDecimal |
getMeanReturn()
Deprecated. The mean/expected return of this asset. |
BigDecimal |
getReturnVariance()
Deprecated. |
BigDecimal |
getRiskAversion()
Deprecated. |
String[] |
getSymbols()
Deprecated. |
List<BigDecimal> |
getWeights()
Deprecated. |
boolean |
isShortingAllowed()
Deprecated. |
EquilibriumPortfolio |
makeEquilibriumPortfolio()
Deprecated. |
void |
setRiskAversion(BigDecimal aFactor)
Deprecated. |
void |
setShortingAllowed(boolean aFlag)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarkowitzModel(BasicMatrix aCovariances,
BasicMatrix anExpectedExcessReturns,
BigDecimal aRiskAversion)
public MarkowitzModel(MarketEquilibrium aMarket,
BasicMatrix anExpectedExcessReturns)
| Method Detail |
|---|
public BasicMatrix calculatePortfolioWeights()
public BasicMatrix getCovariances()
public BasicMatrix getExpectedExcessReturns()
public BigDecimal getMeanReturn()
public BigDecimal getReturnVariance()
public BigDecimal getRiskAversion()
public String[] getSymbols()
public List<BigDecimal> getWeights()
public boolean isShortingAllowed()
public EquilibriumPortfolio makeEquilibriumPortfolio()
public void setRiskAversion(BigDecimal aFactor)
public void setShortingAllowed(boolean aFlag)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||