Package org.drip.exposure.universe
Class MarketCorrelation
java.lang.Object
org.drip.exposure.universe.MarketCorrelation
public class MarketCorrelation
extends java.lang.Object
MarketCorrelation holds the Cross Latent State Correlations needed for computing the Valuation
Adjustment. The References are:
- Burgard, C., and M. Kjaer (2013): Funding Costs, Funding Strategies Risk 23 (12) 82-87
- Burgard, C., and M. Kjaer (2014): In the Balance Risk 24 (11) 72-75
- Burgard, C., and M. Kjaer (2014): PDE Representations of Derivatives with Bilateral Counter- party Risk and Funding Costs Journal of Credit Risk 7 (3) 1-19
- Gregory, J. (2009): Being Two-faced over Counter-party Credit Risk Risk 20 (2) 86-90
- Piterbarg, V. (2010): Funding Beyond Discounting: Collateral Agreements and Derivatives Pricing Risk 21 (2) 97-102
- Module = Portfolio Core Module
- Library = Exposure Analytics
- Project = Exposure Group Level Collateralized/Uncollateralized Exposure
- Package = Exposure Generation - Market States Simulation
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description MarketCorrelation(java.util.List<LatentStateLabel> latentStateLabelList, double[][] matrix)
MarketCorrelation Constructor -
Method Summary
Modifier and Type Method Description MarketCorrelation
customMarketCorrelation(java.util.List<LatentStateLabel> customLatentStateLabelList)
Synthesize a MarketCorrelation Instance for the Custom Latent State Listdouble
entry(LatentStateLabel latentStateLabel1, LatentStateLabel latentStateLabel2)
Retrieve the Cross State Correlationboolean
latentStateExists(LatentStateLabel latentStateLabel)
Check if the Latent State is available in the Correlation Matrixjava.util.List<LatentStateLabel>
latentStateLabelList()
Retrieve the Latent State Label Listdouble[][]
matrix()
Retrieve the Cross-Latent State Correlation MatrixMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MarketCorrelation
public MarketCorrelation(java.util.List<LatentStateLabel> latentStateLabelList, double[][] matrix) throws java.lang.ExceptionMarketCorrelation Constructor- Parameters:
latentStateLabelList
- The Latent State Label Listmatrix
- The Square Correlation Matrix- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
latentStateLabelList
Retrieve the Latent State Label List- Returns:
- The Latent State Label List
-
matrix
public double[][] matrix()Retrieve the Cross-Latent State Correlation Matrix- Returns:
- The Cross-Latent State Correlation Matrix
-
latentStateExists
Check if the Latent State is available in the Correlation Matrix- Parameters:
latentStateLabel
- The Latent State Label- Returns:
- TRUE - The Latent State is available in the Correlation Matrix
-
entry
Retrieve the Cross State Correlation- Parameters:
latentStateLabel1
- Latent State Label #1latentStateLabel2
- Latent State Label #2- Returns:
- The Cross State Correlation
-
customMarketCorrelation
public MarketCorrelation customMarketCorrelation(java.util.List<LatentStateLabel> customLatentStateLabelList)Synthesize a MarketCorrelation Instance for the Custom Latent State List- Parameters:
customLatentStateLabelList
- The Custom Latent State List- Returns:
- The MarketCorrelation Instance for the Custom Latent State List
-