|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.blacklitterman.BlackLitterman
org.akutan.blacklitterman.KrishnanMains
public class KrishnanMains
Provides test data and harness to reproduce the results from the Krishnan & Mains 2 factor Black-Litterman paper published in Risk magazine. Current status is that given the fact that the paper only provides summary statistics one can only start with those and run through the math.
| Field Summary |
|---|
| Fields inherited from class org.akutan.blacklitterman.BlackLitterman |
|---|
modifyVariance |
| Constructor Summary | |
|---|---|
KrishnanMains()
|
|
| Method Summary | |
|---|---|
cern.colt.matrix.DoubleMatrix1D |
getAdjustedPi_Risk()
Returns the post factor Pi vector from the paper for checking to results. |
cern.colt.matrix.DoubleMatrix1D |
getAdjustedPi()
Returns the post factor Pi vector from the paper for checking to results. |
java.lang.String[] |
getAssetNames()
Returns the asset names used to test Krishnan-Mains |
cern.colt.matrix.DoubleMatrix1D |
getBetas_Risk()
Returns the betas to the recession factor from the example in the Krishnan-Mains paper |
cern.colt.matrix.DoubleMatrix1D |
getBetas()
Returns the betas to the recession factor from the example in the Krishnan-Mains paper |
protected cern.colt.matrix.DoubleMatrix1D |
getDelta(cern.colt.matrix.DoubleMatrix1D pi,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D w,
cern.colt.matrix.DoubleMatrix2D rw,
cern.colt.matrix.DoubleMatrix1D rF,
cern.colt.matrix.DoubleMatrix2D beta)
A first attempt at the multi-factor getDelta() method. |
cern.colt.matrix.DoubleMatrix1D |
getEquilibriumReturns_Risk()
Returns the equilibrium returns from the paper |
cern.colt.matrix.DoubleMatrix1D |
getEquilibriumReturns()
Returns the equilibrium returns from the paper |
cern.colt.matrix.DoubleMatrix1D |
getMarketWeights()
Returns the market weights from the example shown in the Krishnan-Mains paper on 2 factor Black-Litterman. |
cern.colt.matrix.DoubleMatrix1D |
getReplWeights_Risk()
Returns the weights of the replicating portfolio from the paper. |
cern.colt.matrix.DoubleMatrix1D |
getReplWeights()
Returns the weights of the replicating portfolio from the paper. |
cern.colt.matrix.DoubleMatrix2D |
getTestV()
Returns the covariance matrix for the example shown in the Krishnan & Mains paper on 2 factor Black-Litterman. |
protected cern.colt.matrix.DoubleMatrix1D |
getUpdatedPi(cern.colt.matrix.DoubleMatrix1D pi,
cern.colt.matrix.DoubleMatrix2D beta,
cern.colt.matrix.DoubleMatrix1D delta)
Given a matrix of betas of the assets and factors, and the vector of deltas, computes a new adjusted vector of equilibrium asset returns. |
static void |
main(java.lang.String[] args)
This program matches the results from the preliminary copy of the Krishnan and Mains paper which can be found on the internet. |
protected static java.lang.String |
print(java.text.DecimalFormat df,
cern.colt.matrix.DoubleMatrix1D d)
Helper function to return formatted print of vector |
cern.colt.matrix.DoubleMatrix2D |
transpose(cern.colt.matrix.DoubleMatrix1D d)
Helper function to transpose a 1D matrix into a 2D matrix |
| Methods inherited from class org.akutan.blacklitterman.BlackLitterman |
|---|
applyBL, applyBL, computeDelta, computeEr, computeImpliedWeights, computeInterval, computeKLIC, computeLambda, computeLambdaN, computePartialTevSensitities, computeTev, computeTevSensitities, computeV, getViewVariance, isModifyVariance, maxValue, mehalanobisDistance, overallProbability, reverseOptimize, sensitivities, setModifyVariance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KrishnanMains()
| Method Detail |
|---|
public cern.colt.matrix.DoubleMatrix1D getMarketWeights()
public cern.colt.matrix.DoubleMatrix2D getTestV()
public cern.colt.matrix.DoubleMatrix1D getEquilibriumReturns()
public cern.colt.matrix.DoubleMatrix1D getEquilibriumReturns_Risk()
public java.lang.String[] getAssetNames()
public cern.colt.matrix.DoubleMatrix1D getBetas()
public cern.colt.matrix.DoubleMatrix1D getBetas_Risk()
public cern.colt.matrix.DoubleMatrix1D getAdjustedPi()
public cern.colt.matrix.DoubleMatrix1D getAdjustedPi_Risk()
public cern.colt.matrix.DoubleMatrix1D getReplWeights()
public cern.colt.matrix.DoubleMatrix1D getReplWeights_Risk()
public cern.colt.matrix.DoubleMatrix2D transpose(cern.colt.matrix.DoubleMatrix1D d)
d - input vector
protected cern.colt.matrix.DoubleMatrix1D getDelta(cern.colt.matrix.DoubleMatrix1D pi,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D w,
cern.colt.matrix.DoubleMatrix2D rw,
cern.colt.matrix.DoubleMatrix1D rF,
cern.colt.matrix.DoubleMatrix2D beta)
pi - Vector of Asset returnsV - Asset covariance matrixw - Vector of equilibrium weights of the assetsrw - Matrix of replicating weights for each factorrF - Vector of Factor returnsbeta - Matrix of betas between the assets and the factors
protected cern.colt.matrix.DoubleMatrix1D getUpdatedPi(cern.colt.matrix.DoubleMatrix1D pi,
cern.colt.matrix.DoubleMatrix2D beta,
cern.colt.matrix.DoubleMatrix1D delta)
pi - Vector of asset returnsbeta - Matrix of betas between the assets and the various factorsdelta - Vector of delta values by factor (delta[0] = Black-Litterman delta)
protected static java.lang.String print(java.text.DecimalFormat df,
cern.colt.matrix.DoubleMatrix1D d)
df - Format to use for numbersd - Vector to be formatted
public static void main(java.lang.String[] args)
args - Command line arguments (ignored).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||