|
|||||||||
| 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.IdzorekBLExample
public class IdzorekBLExample
This class implements the method described in Idzorek (2005) of driving the variance of the views from the confidence level by linearl solution of the variance to match the expected change in weight of the unconstrained portfolio. This program will match Idzorek's numbers within a few basis points for all the tables in his paper.
| Field Summary |
|---|
| Fields inherited from class org.akutan.blacklitterman.BlackLitterman |
|---|
modifyVariance |
| Constructor Summary | |
|---|---|
IdzorekBLExample()
Constructs |
|
| Method Summary | |
|---|---|
BLResults |
applyViews(java.lang.String[] assets,
BLViews views,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D pi,
double tau,
double delta,
cern.colt.matrix.DoubleMatrix1D equilWeights)
Applies specified views to asset information to derive a new view of the asset allocation. |
protected void |
displayStatus(java.lang.String[] assets,
cern.colt.matrix.DoubleMatrix1D blw,
cern.colt.matrix.DoubleMatrix1D equilWeights,
BLView view,
cern.colt.matrix.DoubleMatrix1D blw100)
|
protected void |
example(double tau)
Runs the Idzorek sample data through the views in the paper in order to match Idzorek's results. |
java.lang.String[] |
getAssetNames()
|
cern.colt.matrix.DoubleMatrix1D |
getMarketWeights()
Returns the market weights from the example shown in the Idzorek paper on Black-Litterman. |
cern.colt.matrix.DoubleMatrix2D |
getTestV()
Returns the covariance matrix for the example shown in the Idzorek paper on Black-Litterman. |
protected double |
lineSearch(java.lang.String[] assets,
double delta,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D pi,
double tau,
BLViews views,
cern.colt.matrix.DoubleMatrix1D ew)
Uses a simple line search to find the minimum value of the convex function over the interval 0 < k < 1.00. |
static void |
main(java.lang.String[] args)
Test code to show this class matches the examples shown in the Idzorek paper on Black-Litterman. |
protected java.lang.String |
numFormat(double d)
Helper function to format a decimal with 6 decimal places for output. |
protected java.lang.String |
pctFormat(double d)
Helper function to format a decimal as a percent for output. |
protected void |
showPortfolios(java.lang.String portfolio,
BLResults results)
|
| 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 IdzorekBLExample()
| Method Detail |
|---|
protected java.lang.String pctFormat(double d)
d - decimal value to be formatted
protected java.lang.String numFormat(double d)
d - decimal value to be formatted
public cern.colt.matrix.DoubleMatrix1D getMarketWeights()
public cern.colt.matrix.DoubleMatrix2D getTestV()
public java.lang.String[] getAssetNames()
public BLResults applyViews(java.lang.String[] assets,
BLViews views,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D pi,
double tau,
double delta,
cern.colt.matrix.DoubleMatrix1D equilWeights)
assets - Array of asset namesviews - Views to be appliedV - Input covariance matrixpi - Vector of equilibrium returnstau - Uncertainty of equilibrium returns about their meansdelta - Risk aversionequilWeights - Equilibrium weights (used for computing differences)
protected double lineSearch(java.lang.String[] assets,
double delta,
cern.colt.matrix.DoubleMatrix2D V,
cern.colt.matrix.DoubleMatrix1D pi,
double tau,
BLViews views,
cern.colt.matrix.DoubleMatrix1D ew)
assets - Array of names of the assets (in order to match pi)delta - Coefficient of risk aversion.V - Covariance matrixpi - Vector of returnstau - scaling factor for the covariance of the return estimatesviews - Structure of viewsew - Equilibrium weights
protected void showPortfolios(java.lang.String portfolio,
BLResults results)
protected void displayStatus(java.lang.String[] assets,
cern.colt.matrix.DoubleMatrix1D blw,
cern.colt.matrix.DoubleMatrix1D equilWeights,
BLView view,
cern.colt.matrix.DoubleMatrix1D blw100)
protected void example(double tau)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||