Table6Reconciler.java

  1. package org.drip.sample.helitterman;

  2. import org.drip.measure.bayesian.R1MultivariateConvolutionMetrics;
  3. import org.drip.measure.continuous.MultivariateMeta;
  4. import org.drip.measure.gaussian.*;
  5. import org.drip.measure.statistics.MultivariateMoments;
  6. import org.drip.numerical.common.FormatUtil;
  7. import org.drip.portfolioconstruction.allocator.*;
  8. import org.drip.portfolioconstruction.asset.*;
  9. import org.drip.portfolioconstruction.bayesian.*;
  10. import org.drip.portfolioconstruction.params.AssetUniverseStatisticalProperties;
  11. import org.drip.service.env.EnvManager;

  12. /*
  13.  * -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  14.  */

  15. /*!
  16.  * Copyright (C) 2019 Lakshmi Krishnamurthy
  17.  * Copyright (C) 2018 Lakshmi Krishnamurthy
  18.  * Copyright (C) 2017 Lakshmi Krishnamurthy
  19.  * Copyright (C) 2016 Lakshmi Krishnamurthy
  20.  *
  21.  *  This file is part of DROP, an open-source library targeting risk, transaction costs, exposure, margin
  22.  *      calculations, valuation adjustment, and portfolio construction within and across fixed income,
  23.  *      credit, commodity, equity, FX, and structured products.
  24.  *  
  25.  *      https://lakshmidrip.github.io/DROP/
  26.  *  
  27.  *  DROP is composed of three modules:
  28.  *  
  29.  *  - DROP Analytics Core - https://lakshmidrip.github.io/DROP-Analytics-Core/
  30.  *  - DROP Portfolio Core - https://lakshmidrip.github.io/DROP-Portfolio-Core/
  31.  *  - DROP Numerical Core - https://lakshmidrip.github.io/DROP-Numerical-Core/
  32.  *
  33.  *  DROP Analytics Core implements libraries for the following:
  34.  *  - Fixed Income Analytics
  35.  *  - Asset Backed Analytics
  36.  *  - XVA Analytics
  37.  *  - Exposure and Margin Analytics
  38.  *
  39.  *  DROP Portfolio Core implements libraries for the following:
  40.  *  - Asset Allocation Analytics
  41.  *  - Transaction Cost Analytics
  42.  *
  43.  *  DROP Numerical Core implements libraries for the following:
  44.  *  - Statistical Learning
  45.  *  - Numerical Optimizer
  46.  *  - Spline Builder
  47.  *  - Algorithm Support
  48.  *
  49.  *  Documentation for DROP is Spread Over:
  50.  *
  51.  *  - Main                     => https://lakshmidrip.github.io/DROP/
  52.  *  - Wiki                     => https://github.com/lakshmiDRIP/DROP/wiki
  53.  *  - GitHub                   => https://github.com/lakshmiDRIP/DROP
  54.  *  - Repo Layout Taxonomy     => https://github.com/lakshmiDRIP/DROP/blob/master/Taxonomy.md
  55.  *  - Javadoc                  => https://lakshmidrip.github.io/DROP/Javadoc/index.html
  56.  *  - Technical Specifications => https://github.com/lakshmiDRIP/DROP/tree/master/Docs/Internal
  57.  *  - Release Versions         => https://lakshmidrip.github.io/DROP/version.html
  58.  *  - Community Credits        => https://lakshmidrip.github.io/DROP/credits.html
  59.  *  - Issues Catalog           => https://github.com/lakshmiDRIP/DROP/issues
  60.  *  - JUnit                    => https://lakshmidrip.github.io/DROP/junit/index.html
  61.  *  - Jacoco                   => https://lakshmidrip.github.io/DROP/jacoco/index.html
  62.  *
  63.  *  Licensed under the Apache License, Version 2.0 (the "License");
  64.  *      you may not use this file except in compliance with the License.
  65.  *  
  66.  *  You may obtain a copy of the License at
  67.  *      http://www.apache.org/licenses/LICENSE-2.0
  68.  *  
  69.  *  Unless required by applicable law or agreed to in writing, software
  70.  *      distributed under the License is distributed on an "AS IS" BASIS,
  71.  *      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  72.  *  
  73.  *  See the License for the specific language governing permissions and
  74.  *      limitations under the License.
  75.  */

  76. /**
  77.  * <i>Table6Reconciler</i> reconciles the First Set of Outputs (Table #6) of the Black-Litterman Model
  78.  * Process as illustrated in the Following Paper:
  79.  *  
  80.  * <br><br>
  81.  *  <ul>
  82.  *      <li>
  83.  *          He. G., and R. Litterman (1999): The Intuition behind the Black-Litterman Model Portfolios,
  84.  *              Goldman Sachs Asset Management
  85.  *      </li>
  86.  *  </ul>
  87.  *  
  88.  * <br><br>
  89.  *  <ul>
  90.  *      <li><b>Module </b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/PortfolioCore.md">Portfolio Core Module</a></li>
  91.  *      <li><b>Library</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/AssetAllocationAnalyticsLibrary.md">Asset Allocation Analytics Library</a></li>
  92.  *      <li><b>Project</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/README.md">Sample</a></li>
  93.  *      <li><b>Package</b> = <a href = "https://github.com/lakshmiDRIP/DROP/tree/master/src/main/java/org/drip/sample/helitterman/README.md">He and Litterman (1999) Reconcilers</a></li>
  94.  *  </ul>
  95.  * <br><br>
  96.  *
  97.  * @author Lakshmi Krishnamurthy
  98.  */

  99. public class Table6Reconciler
  100. {

  101.     public static final void main (
  102.         final String[] argumentArray)
  103.         throws Exception
  104.     {
  105.         EnvManager.InitEnv ("");

  106.         String[] assetIDArray = new String[]
  107.         {
  108.             "AUS",
  109.             "CAD",
  110.             "FRA",
  111.             "GER",
  112.             "JPN",
  113.             "UK ",
  114.             "USA"
  115.         };
  116.         double[] assetEquilibriumWeightArray = new double[]
  117.         {
  118.             0.016,
  119.             0.022,
  120.             0.052,
  121.             0.055,
  122.             0.116,
  123.             0.124,
  124.             0.615
  125.         };
  126.         double[][] assetExcessReturnsCorrelationMatrix = new double[][]
  127.         {
  128.             {1.000, 0.488, 0.478, 0.515, 0.439, 0.512, 0.491},
  129.             {0.488, 1.000, 0.664, 0.655, 0.310, 0.608, 0.779},
  130.             {0.478, 0.664, 1.000, 0.861, 0.355, 0.783, 0.668},
  131.             {0.515, 0.655, 0.861, 1.000, 0.354, 0.777, 0.653},
  132.             {0.439, 0.310, 0.355, 0.354, 1.000, 0.405, 0.306},
  133.             {0.512, 0.608, 0.783, 0.777, 0.405, 1.000, 0.652},
  134.             {0.491, 0.779, 0.668, 0.653, 0.306, 0.652, 1.000}
  135.         };
  136.         double[] assetExcessReturnsVolatilityArray = new double[]
  137.         {
  138.             0.160,
  139.             0.203,
  140.             0.248,
  141.             0.271,
  142.             0.210,
  143.             0.200,
  144.             0.187
  145.         };
  146.         double[][] assetSpaceViewProjectionMatrix = new double[][]
  147.         {
  148.             {0.000,  0.000, -0.295,  1.000,  0.000, -0.705,  0.000},
  149.             {0.000,  1.000,  0.000,  0.000,  0.000,  0.000, -1.000}
  150.         };
  151.         double tau = 0.05;
  152.         double riskAversion = 2.5;
  153.         double riskFreeRate = 0.0;
  154.         double[] projectionExpectedExcessReturnsArray = new double[]
  155.         {
  156.             0.05,
  157.             0.04
  158.         };
  159.         double[] assetSpaceJointReturnsReconcilerArray = new double[]
  160.         {
  161.             0.044,
  162.             0.091,
  163.             0.095,
  164.             0.113,
  165.             0.046,
  166.             0.070,
  167.             0.073
  168.         };
  169.         double[] posteriorOptimalWeightsReconcilerArray = new double[]
  170.         {
  171.              0.015,
  172.              0.533,
  173.             -0.033,
  174.              0.331,
  175.              0.110,
  176.             -0.078,
  177.              0.073
  178.         };
  179.         double[] posteriorOptimalDeviationReconcilerArray = new double[] {
  180.              0.000,
  181.              0.513,
  182.             -0.082,
  183.              0.278,
  184.              0.000,
  185.             -0.196,
  186.             -0.513
  187.         };
  188.         double[] peLoadingsReconcilerArray = new double[]
  189.         {
  190.             0.292,
  191.             0.538
  192.         };

  193.         double[][] projectionExcessReturnsCovarianceMatrix = new double[][]
  194.         {
  195.             {0.021 * tau, 0.000 * tau},
  196.             {0.000 * tau, 0.017 * tau}
  197.         };

  198.         R1MultivariateNormal viewDistribution = R1MultivariateNormal.Standard (
  199.             new MultivariateMeta (
  200.                 new String[]
  201.                 {
  202.                     "PROJECTION #1",
  203.                     "PROJECTION #2"
  204.                 }
  205.             ),
  206.             projectionExpectedExcessReturnsArray,
  207.             projectionExcessReturnsCovarianceMatrix
  208.         );

  209.         double[][] assetExcessReturnsCovarianceMatrix = new double[assetIDArray.length][assetIDArray.length];

  210.         for (int assetIDI = 0;
  211.             assetIDI < assetIDArray.length;
  212.             ++assetIDI)
  213.         {
  214.             for (int assetIDJ = 0;
  215.                 assetIDJ < assetIDArray.length;
  216.                 ++assetIDJ)
  217.             {
  218.                 assetExcessReturnsCovarianceMatrix[assetIDI][assetIDJ] =
  219.                     assetExcessReturnsCorrelationMatrix[assetIDI][assetIDJ] *
  220.                     assetExcessReturnsVolatilityArray[assetIDI] *
  221.                     assetExcessReturnsVolatilityArray[assetIDJ];
  222.             }
  223.         }

  224.         BlackLittermanCombinationEngine blackLittermanCombinationEngine =
  225.             new BlackLittermanCombinationEngine (
  226.                 ForwardReverseHoldingsAllocation.Reverse (
  227.                     Portfolio.Standard (
  228.                         assetIDArray,
  229.                         assetEquilibriumWeightArray
  230.                     ),
  231.                     assetExcessReturnsCovarianceMatrix,
  232.                     riskAversion
  233.                 ),
  234.                 new PriorControlSpecification (
  235.                     false,
  236.                     riskFreeRate,
  237.                     tau
  238.                 ),
  239.                 new ProjectionSpecification (
  240.                     viewDistribution,
  241.                     assetSpaceViewProjectionMatrix
  242.                 )
  243.             );

  244.         R1MultivariateConvolutionMetrics jointPosteriorMetrics =
  245.             blackLittermanCombinationEngine.customConfidenceRun().jointPosteriorMetrics();

  246.         R1MultivariateNormal jointDistribution = (R1MultivariateNormal) jointPosteriorMetrics.joint();

  247.         R1MultivariateNormal posteriorDistribution =
  248.             (R1MultivariateNormal) jointPosteriorMetrics.posterior();

  249.         double[] assetSpaceJointReturnsArray = jointDistribution.mean();

  250.         double[][] assetSpaceJointCovarianceMatrix = jointDistribution.covariance().covarianceMatrix();

  251.         double[][] assetSpacePosteriorCovarianceMatrix =
  252.             posteriorDistribution.covariance().covarianceMatrix();

  253.         AssetComponent[] assetComponentArray = new QuadraticMeanVarianceOptimizer().allocate (
  254.             new HoldingsAllocationControl (
  255.                 assetIDArray,
  256.                 CustomRiskUtilitySettings.RiskAversion (riskAversion),
  257.                 EqualityConstraintSettings.Unconstrained()
  258.             ),
  259.             AssetUniverseStatisticalProperties.FromMultivariateMetrics (
  260.                 MultivariateMoments.Standard (
  261.                     assetIDArray,
  262.                     posteriorDistribution.mean(),
  263.                     assetSpacePosteriorCovarianceMatrix
  264.                 )
  265.             )
  266.         ).optimalPortfolio().assetComponentArray();

  267.         ProjectionExposure projectionExposure =
  268.             blackLittermanCombinationEngine.projectionExposureAttribution();

  269.         double[] interViewComponentArray = projectionExposure.interViewComponentArray();

  270.         double[] intraViewComponentArray = projectionExposure.intraViewComponentArray();

  271.         double[] priorViewComponentArray = projectionExposure.priorViewComponentArray();

  272.         double[] cumulativeViewComponentLoadingArray =
  273.             projectionExposure.cumulativeViewComponentLoadingArray();

  274.         System.out.println ("\n\t|------------------------||");

  275.         System.out.println ("\t| TAU   => " + FormatUtil.FormatDouble (tau, 1, 8, 1.) + "   ||");

  276.         System.out.println ("\t| DELTA => " + FormatUtil.FormatDouble (riskAversion, 1, 8, 1.) + "   ||");

  277.         System.out.println ("\t|------------------------||");

  278.         System.out.println ("\n\t|------------------------||");

  279.         System.out.println ("\t|  ASSET EXCESS RETURNS  ||");

  280.         System.out.println ("\t|------------------------||");

  281.         System.out.println ("\t|   ID  => EQ WT |  VOL  ||");

  282.         System.out.println ("\t|------------------------||");

  283.         for (int assetID = 0;
  284.             assetID < assetSpaceJointReturnsReconcilerArray.length;
  285.             ++assetID)
  286.         {
  287.             System.out.println (
  288.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  289.                 FormatUtil.FormatDouble (assetEquilibriumWeightArray[assetID], 2, 1, 100.) + "% |" +
  290.                 FormatUtil.FormatDouble (assetExcessReturnsVolatilityArray[assetID], 2, 1, 100.) + "% ||"
  291.             );
  292.         }

  293.         System.out.println ("\t|------------------------||");

  294.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  295.         System.out.println ("\t|                           PRIOR CROSS ASSET CORRELATION MATRIX                                 ||");

  296.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  297.         String header = "\t|     |";

  298.         for (int assetID = 0;
  299.             assetID < assetIDArray.length;
  300.             ++assetID)
  301.         {
  302.             header += "    " + assetIDArray[assetID] + "     |";
  303.         }

  304.         System.out.println (header + "|");

  305.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  306.         for (int assetIDI = 0;
  307.             assetIDI < assetIDArray.length;
  308.             ++assetIDI)
  309.         {
  310.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  311.             for (int assetIDJ = 0;
  312.                 assetIDJ < assetIDArray.length;
  313.                 ++assetIDJ)
  314.             {
  315.                 dump += "|" + FormatUtil.FormatDouble (
  316.                     assetExcessReturnsCorrelationMatrix[assetIDI][assetIDJ], 1, 8, 1.
  317.                 ) + " ";
  318.             }

  319.             System.out.println (dump + "||");
  320.         }

  321.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  322.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  323.         System.out.println ("\t|                           PRIOR CROSS ASSET COVARIANCE MATRIX                                  ||");

  324.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  325.         header = "\t|     |";

  326.         for (int assetID = 0;
  327.             assetID < assetIDArray.length;
  328.             ++assetID)
  329.         {
  330.             header += "    " + assetIDArray[assetID] + "     |";
  331.         }

  332.         System.out.println (header + "|");

  333.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  334.         for (int assetIDI = 0;
  335.             assetIDI < assetIDArray.length;
  336.             ++assetIDI)
  337.         {
  338.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  339.             for (int assetIDJ = 0;
  340.                 assetIDJ < assetIDArray.length;
  341.                 ++assetIDJ)
  342.             {
  343.                 dump += "|" + FormatUtil.FormatDouble (
  344.                     assetExcessReturnsCovarianceMatrix[assetIDI][assetIDJ], 1, 8, 1.
  345.                 ) + " ";
  346.             }

  347.             System.out.println (dump + "||");
  348.         }

  349.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  350.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  351.         System.out.println ("\t|                          VIEW SCOPING ASSET PROJECTION LOADING                                 ||");

  352.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  353.         header = "\t|     |";

  354.         for (int assetID = 0;
  355.             assetID < assetIDArray.length;
  356.             ++assetID)
  357.         {
  358.             header += "    " + assetIDArray[assetID] + "     |";
  359.         }

  360.         System.out.println (header + "|");

  361.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  362.         for (int viewIndex = 0;
  363.             viewIndex < assetSpaceViewProjectionMatrix.length;
  364.             ++viewIndex)
  365.         {
  366.             String dump = "\t|  #" + viewIndex + " ";

  367.             for (int assetID = 0;
  368.                 assetID < assetIDArray.length;
  369.                 ++assetID)
  370.             {
  371.                 dump += "|" + FormatUtil.FormatDouble (
  372.                     assetSpaceViewProjectionMatrix[viewIndex][assetID], 1, 8, 1.
  373.                 ) + " ";
  374.             }

  375.             System.out.println (dump + "||");
  376.         }

  377.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  378.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  379.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  380.         for (int viewIndexI = 0;
  381.             viewIndexI < assetSpaceViewProjectionMatrix.length;
  382.             ++viewIndexI)
  383.         {
  384.             String dump = "\t|  #" + viewIndexI + " ";

  385.             for (int viewIndexJ = 0;
  386.                 viewIndexJ < assetSpaceViewProjectionMatrix.length;
  387.                 ++viewIndexJ)
  388.             {
  389.                 dump += "|" + FormatUtil.FormatDouble (
  390.                     projectionExcessReturnsCovarianceMatrix[viewIndexI][viewIndexJ], 1, 8, 1.
  391.                 ) + " ";
  392.             }

  393.             System.out.println (
  394.                 dump + "|" + FormatUtil.FormatDouble (
  395.                     projectionExpectedExcessReturnsArray[viewIndexI], 1, 2, 100.
  396.                 ) + "%"
  397.             );
  398.         }

  399.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  400.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  401.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  402.         System.out.println ("\t|                           JOINT CROSS ASSET COVARIANCE MATRIX                                  ||");

  403.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  404.         header = "\t|     |";

  405.         for (int assetID = 0;
  406.             assetID < assetIDArray.length;
  407.             ++assetID)
  408.         {
  409.             header += "    " + assetIDArray[assetID] + "     |";
  410.         }

  411.         System.out.println (header + "|");

  412.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  413.         for (int assetIDI = 0;
  414.             assetIDI < assetIDArray.length;
  415.             ++assetIDI)
  416.         {
  417.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  418.             for (int assetIDJ = 0;
  419.                 assetIDJ < assetIDArray.length;
  420.                 ++assetIDJ)
  421.             {
  422.                 dump += "|" + FormatUtil.FormatDouble (
  423.                     assetSpaceJointCovarianceMatrix[assetIDI][assetIDJ], 1, 8, 1.
  424.                 ) + " ";
  425.             }

  426.             System.out.println (dump + "||");
  427.         }

  428.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  429.         System.out.println ("\n\t|------------------------------------------------------------------------------------------------||");

  430.         System.out.println ("\t|                         POSTERIOR CROSS ASSET COVARIANCE MATRIX                                ||");

  431.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  432.         header = "\t|     |";

  433.         for (int assetID = 0;
  434.             assetID < assetIDArray.length;
  435.             ++assetID)
  436.         {
  437.             header += "    " + assetIDArray[assetID] + "     |";
  438.         }

  439.         System.out.println (header + "|");

  440.         System.out.println ("\t|------------------------------------------------------------------------------------------------||");

  441.         for (int assetIDI = 0;
  442.             assetIDI < assetIDArray.length;
  443.             ++assetIDI)
  444.         {
  445.             String dump = "\t| " + assetIDArray[assetIDI] + " ";

  446.             for (int assetIDJ = 0;
  447.                 assetIDJ < assetIDArray.length;
  448.                 ++assetIDJ)
  449.             {
  450.                 dump += "|" + FormatUtil.FormatDouble (
  451.                     assetSpacePosteriorCovarianceMatrix[assetIDI][assetIDJ], 1, 8, 1.
  452.                 ) + " ";
  453.             }

  454.             System.out.println (dump + "||");
  455.         }

  456.         System.out.println ("\t|------------------------------------------------------------------------------------------------||\n");

  457.         System.out.println ("\t|------------------------||");

  458.         System.out.println ("\t| JOINT/POSTERIOR RETURN ||");

  459.         System.out.println ("\t|------------------------||");

  460.         System.out.println ("\t|   ID  => RIOC  | HL99  ||");

  461.         System.out.println ("\t|------------------------||");

  462.         for (int assetID = 0;
  463.             assetID < assetSpaceJointReturnsReconcilerArray.length;
  464.             ++assetID)
  465.         {
  466.             System.out.println (
  467.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  468.                 FormatUtil.FormatDouble (assetSpaceJointReturnsArray[assetID], 2, 1, 100.) + "% |" +
  469.                 FormatUtil.FormatDouble (assetSpaceJointReturnsReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  470.             );
  471.         }

  472.         System.out.println ("\t|------------------------||");

  473.         System.out.println ("\n\t|------------------------||");

  474.         System.out.println ("\t| OPTIMAL POSTERIOR WTS. ||");

  475.         System.out.println ("\t|------------------------||");

  476.         System.out.println ("\t|   ID  => RIOC  | HL99  ||");

  477.         System.out.println ("\t|------------------------||");

  478.         for (int assetID = 0;
  479.             assetID < assetComponentArray.length;
  480.             ++assetID)
  481.         {
  482.             System.out.println (
  483.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  484.                 FormatUtil.FormatDouble (assetComponentArray[assetID].amount(), 2, 1, 100.) + "% |" +
  485.                 FormatUtil.FormatDouble (posteriorOptimalWeightsReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  486.             );
  487.         }

  488.         System.out.println ("\t|------------------------||");

  489.         System.out.println ("\n\t|------------------------||");

  490.         System.out.println ("\t|   POSTERIOR DEVIATION  ||");

  491.         System.out.println ("\t|------------------------||");

  492.         System.out.println ("\t|   ID  => RIOC  | HL99  ||");

  493.         System.out.println ("\t|------------------------||");

  494.         for (int assetID = 0;
  495.             assetID < assetComponentArray.length;
  496.             ++assetID)
  497.         {
  498.             System.out.println (
  499.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  500.                 FormatUtil.FormatDouble (assetComponentArray[assetID].amount() - (assetEquilibriumWeightArray[assetID]) / (1. + tau), 2, 1, 100.) + "% |" +
  501.                 FormatUtil.FormatDouble (posteriorOptimalDeviationReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  502.             );
  503.         }

  504.         System.out.println ("\t|------------------------||\n");

  505.         System.out.println ("\t|-----------------------------------------------------------------||");

  506.         System.out.println ("\t|              POSTERIOR DEVIATION WEIGHTS ATTRIBUTION            ||");

  507.         System.out.println ("\t|-----------------------------------------------------------------||");

  508.         System.out.println ("\t| VIEW NUM =>  INTRA |  INTER |  PRIOR |  CUMUL |  RECON |  BAYES ||");

  509.         System.out.println ("\t|-----------------------------------------------------------------||");

  510.         for (int viewIndex = 0; viewIndex < interViewComponentArray.length; ++viewIndex)
  511.         {
  512.             System.out.println (
  513.                 "\t| VIEW  #" + (viewIndex + 1) + " => " +
  514.                 FormatUtil.FormatDouble (interViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  515.                 FormatUtil.FormatDouble (intraViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  516.                 FormatUtil.FormatDouble (priorViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  517.                 FormatUtil.FormatDouble (cumulativeViewComponentLoadingArray[viewIndex], 1, 3, 1.) + " | " +
  518.                 FormatUtil.FormatDouble (peLoadingsReconcilerArray[viewIndex], 1, 3, 1.) + " | " +
  519.                 FormatUtil.FormatDouble (
  520.                     cumulativeViewComponentLoadingArray[viewIndex] / (1. + tau), 1, 3, 1.
  521.                 ) + " ||"
  522.             );
  523.         }

  524.         System.out.println ("\t|-----------------------------------------------------------------||");

  525.         EnvManager.TerminateEnv();
  526.     }
  527. }