Table5Reconciler.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>Table5Reconciler</i> reconciles the First Set of Outputs (Table #5) 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 Table5Reconciler
  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.03
  158.         };
  159.         double[][] projectionExcessReturnsCovarianceMatrix = new double[][]
  160.         {
  161.             {0.021 * tau, 0.000 * tau},
  162.             {0.000 * tau, 0.017 * tau}
  163.         };
  164.         double[] assetSpaceJointReturnsReconcilerArray = new double[]
  165.         {
  166.             0.044,
  167.             0.087,
  168.             0.095,
  169.             0.112,
  170.             0.046,
  171.             0.070,
  172.             0.075
  173.         };
  174.         double[] posteriorOptimalWeightsReconcilerArray = new double[]
  175.         {
  176.              0.015,
  177.              0.419,
  178.             -0.034,
  179.              0.336,
  180.              0.110,
  181.             -0.082,
  182.              0.188
  183.         };
  184.         double[] posteriorOptimalDeviationReconcilerArray = new double[]
  185.         {
  186.              0.000,
  187.              0.398,
  188.             -0.084,
  189.              0.284,
  190.              0.000,
  191.             -0.200,
  192.             -0.398
  193.         };
  194.         double[] peLoadingsReconcilerArray = new double[]
  195.         {
  196.             0.298,
  197.             0.418
  198.         };

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

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

  211.         for (int assetID1 = 0; assetID1 < assetIDArray.length; ++assetID1)
  212.         {
  213.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  214.             {
  215.                 assetExcessReturnsCovarianceMatrix[assetID1][assetIDJ] = assetExcessReturnsCorrelationMatrix[assetID1][assetIDJ] *
  216.                     assetExcessReturnsVolatilityArray[assetID1] * assetExcessReturnsVolatilityArray[assetIDJ];
  217.             }
  218.         }

  219.         BlackLittermanCombinationEngine blackLittermanCombinationEngine =
  220.             new BlackLittermanCombinationEngine (
  221.                 ForwardReverseHoldingsAllocation.Reverse (
  222.                     Portfolio.Standard (
  223.                         assetIDArray,
  224.                         assetEquilibriumWeightArray
  225.                     ),
  226.                     assetExcessReturnsCovarianceMatrix,
  227.                     riskAversion
  228.                 ),
  229.                 new PriorControlSpecification (
  230.                     false,
  231.                     riskFreeRate,
  232.                     tau
  233.                 ),
  234.                 new ProjectionSpecification (
  235.                     viewDistribution,
  236.                     assetSpaceViewProjectionMatrix
  237.                 )
  238.             );

  239.         R1MultivariateConvolutionMetrics jointPosteriorMetrics =
  240.             blackLittermanCombinationEngine.customConfidenceRun().jointPosteriorMetrics();

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

  242.         R1MultivariateNormal posteriorDistribution =
  243.             (R1MultivariateNormal) jointPosteriorMetrics.posterior();

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

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

  246.         double[][] assetSpacePosteriorCovarianceMatrix =
  247.             posteriorDistribution.covariance().covarianceMatrix();

  248.         HoldingsAllocation optimizationOutput = new QuadraticMeanVarianceOptimizer().allocate (
  249.             new HoldingsAllocationControl (
  250.                 assetIDArray,
  251.                 CustomRiskUtilitySettings.RiskAversion (
  252.                     riskAversion
  253.                 ),
  254.                 EqualityConstraintSettings.Unconstrained()
  255.             ),
  256.             AssetUniverseStatisticalProperties.FromMultivariateMetrics (
  257.                 MultivariateMoments.Standard (
  258.                     assetIDArray,
  259.                     posteriorDistribution.mean(),
  260.                     assetSpacePosteriorCovarianceMatrix
  261.                 )
  262.             )
  263.         );

  264.         AssetComponent[] assetComponentArray = optimizationOutput.optimalPortfolio().assetComponentArray();

  265.         ProjectionExposure projectionExposure =
  266.             blackLittermanCombinationEngine.projectionExposureAttribution();

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

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

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

  270.         double[] cumulativeViewComponentLoadingArray =
  271.             projectionExposure.cumulativeViewComponentLoadingArray();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  294.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  295.         {
  296.             header += "    " + assetIDArray[assetID] + "     |";
  297.         }

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

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

  300.         for (int assetID1 = 0; assetID1 < assetIDArray.length; ++assetID1)
  301.         {
  302.             String dump = "\t| " + assetIDArray[assetID1] + " ";

  303.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  304.             {
  305.                 dump += "|" + FormatUtil.FormatDouble (assetExcessReturnsCorrelationMatrix[assetID1][assetIDJ], 1, 8, 1.) + " ";
  306.             }

  307.             System.out.println (dump + "||");
  308.         }

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

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

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

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

  313.         header = "\t|     |";

  314.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  315.         {
  316.             header += "    " + assetIDArray[assetID] + "     |";
  317.         }

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

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

  320.         for (int assetID1 = 0; assetID1 < assetIDArray.length; ++assetID1)
  321.         {
  322.             String dump = "\t| " + assetIDArray[assetID1] + " ";

  323.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  324.             {
  325.                 dump += "|" + FormatUtil.FormatDouble (assetExcessReturnsCovarianceMatrix[assetID1][assetIDJ], 1, 8, 1.) + " ";
  326.             }

  327.             System.out.println (dump + "||");
  328.         }

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

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

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

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

  333.         header = "\t|     |";

  334.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  335.         {
  336.             header += "    " + assetIDArray[assetID] + "     |";
  337.         }

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

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

  340.         for (int viewIndex = 0; viewIndex < assetSpaceViewProjectionMatrix.length; ++viewIndex)
  341.         {
  342.             String dump = "\t|  #" + viewIndex + " ";

  343.             for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  344.             {
  345.                 dump += "|" + FormatUtil.FormatDouble (
  346.                     assetSpaceViewProjectionMatrix[viewIndex][assetID], 1, 8, 1.
  347.                 ) + " ";
  348.             }

  349.             System.out.println (dump + "||");
  350.         }

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

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

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

  354.         for (int viewIndexI = 0; viewIndexI < assetSpaceViewProjectionMatrix.length; ++viewIndexI)
  355.         {
  356.             String dump = "\t|  #" + viewIndexI + " ";

  357.             for (int viewIndexJ = 0; viewIndexJ < assetSpaceViewProjectionMatrix.length; ++viewIndexJ)
  358.             {
  359.                 dump += "|" + FormatUtil.FormatDouble (
  360.                     projectionExcessReturnsCovarianceMatrix[viewIndexI][viewIndexJ], 1, 8, 1.
  361.                 ) + " ";
  362.             }

  363.             System.out.println (dump + "|" + FormatUtil.FormatDouble (
  364.                 projectionExpectedExcessReturnsArray[viewIndexI], 1, 2, 100.) + "%"
  365.             );
  366.         }

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

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

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

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

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

  372.         header = "\t|     |";

  373.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  374.         {
  375.             header += "    " + assetIDArray[assetID] + "     |";
  376.         }

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

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

  379.         for (int assetID1 = 0; assetID1 < assetIDArray.length; ++assetID1)
  380.         {
  381.             String dump = "\t| " + assetIDArray[assetID1] + " ";

  382.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  383.             {
  384.                 dump += "|" + FormatUtil.FormatDouble (assetSpaceJointCovarianceMatrix[assetID1][assetIDJ], 1, 8, 1.) + " ";
  385.             }

  386.             System.out.println (dump + "||");
  387.         }

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

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

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

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

  392.         header = "\t|     |";

  393.         for (int assetID = 0; assetID < assetIDArray.length; ++assetID)
  394.         {
  395.             header += "    " + assetIDArray[assetID] + "     |";
  396.         }

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

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

  399.         for (int assetID1 = 0; assetID1 < assetIDArray.length; ++assetID1)
  400.         {
  401.             String dump = "\t| " + assetIDArray[assetID1] + " ";

  402.             for (int assetIDJ = 0; assetIDJ < assetIDArray.length; ++assetIDJ)
  403.             {
  404.                 dump += "|" + FormatUtil.FormatDouble (assetSpacePosteriorCovarianceMatrix[assetID1][assetIDJ], 1, 8, 1.) + " ";
  405.             }

  406.             System.out.println (dump + "||");
  407.         }

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

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

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

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

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

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

  414.         for (int assetID = 0; assetID < assetSpaceJointReturnsReconcilerArray.length; ++assetID)
  415.         {
  416.             System.out.println (
  417.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  418.                 FormatUtil.FormatDouble (assetSpaceJointReturnsArray[assetID], 2, 1, 100.) + "% |" +
  419.                 FormatUtil.FormatDouble (assetSpaceJointReturnsReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  420.             );
  421.         }

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

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

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

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

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

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

  428.         for (int assetID = 0; assetID < assetComponentArray.length; ++assetID)
  429.         {
  430.             System.out.println (
  431.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  432.                 FormatUtil.FormatDouble (assetComponentArray[assetID].amount(), 2, 1, 100.) + "% |" +
  433.                 FormatUtil.FormatDouble (posteriorOptimalWeightsReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  434.             );
  435.         }

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

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

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

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

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

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

  442.         for (int assetID = 0; assetID < assetComponentArray.length; ++assetID)
  443.         {
  444.             System.out.println (
  445.                 "\t| [" + assetIDArray[assetID] + "] =>" +
  446.                 FormatUtil.FormatDouble (assetComponentArray[assetID].amount() - (assetEquilibriumWeightArray[assetID]) / (1. + tau), 2, 1, 100.) + "% |" +
  447.                 FormatUtil.FormatDouble (posteriorOptimalDeviationReconcilerArray[assetID], 2, 1, 100.) + "% ||"
  448.             );
  449.         }

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

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

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

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

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

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

  456.         for (int viewIndex = 0; viewIndex < interViewComponentArray.length; ++viewIndex)
  457.         {
  458.             System.out.println (
  459.                 "\t| VIEW  #" + (viewIndex + 1) + " => " +
  460.                 FormatUtil.FormatDouble (interViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  461.                 FormatUtil.FormatDouble (intraViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  462.                 FormatUtil.FormatDouble (priorViewComponentArray[viewIndex], 1, 3, 1.) + " | " +
  463.                 FormatUtil.FormatDouble (cumulativeViewComponentLoadingArray[viewIndex], 1, 3, 1.) + " | " +
  464.                 FormatUtil.FormatDouble (peLoadingsReconcilerArray[viewIndex], 1, 3, 1.) + " | " +
  465.                 FormatUtil.FormatDouble (cumulativeViewComponentLoadingArray[viewIndex] / (1. + tau), 1, 3, 1.) + " ||"
  466.             );
  467.         }

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

  469.         EnvManager.TerminateEnv();
  470.     }
  471. }