Package org.drip.capital.explain
Class AllocatedPnLAttribution
java.lang.Object
org.drip.capital.explain.PnLAttribution
org.drip.capital.explain.AllocatedPnLAttribution
public class AllocatedPnLAttribution extends PnLAttribution
AllocatedPnLAttribution exposes the Path-Level Capital Component Attributions Post Allocation
Adjustments. The References are:
- Bank for International Supervision(2005): Stress Testing at Major Financial Institutions: Survey Results and Practice https://www.bis.org/publ/cgfs24.htm
- Glasserman, P. (2004): Monte Carlo Methods in Financial Engineering Springer
- Kupiec, P. H. (2000): Stress Tests and Risk Capital Risk 2 (4) 27-39
- Module = Portfolio Core Module
- Library = Capital Analytics
- Project = Basel Market Risk and Operational Capital
- Package = Economic Risk Capital Attribution Explain
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description AllocatedPnLAttribution(PnLAttribution standalonePnLAttribution, EntityComponentCapital entityComponentCapital)
AllocatedPnLAttribution Constructor -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Integer>
correlatedInstanceCountMap()
Retrieve the Correlated Instance Count Mapdouble
correlatedPnL()
Retrieve the Correlated PnLjava.util.Map<java.lang.String,java.lang.Double>
correlatedPnLExplainMap()
Retrieve the Correlated PnL Explain Mapjava.util.Map<java.lang.String,java.lang.Double>
correlatedPnLWorstMap()
Retrieve the Correlated Worst PnL MapEntityComponentCapital
entityComponentCapital()
Retrieve the Entity Component Capitaldouble
expectedShortfall()
Retrieve the Expected Short-falldouble
fsGrossPnL()
Retrieve the Gross VaR FS PnLjava.util.Map<java.lang.String,java.lang.Double>
fsPnLDecompositionExplainMap()
Retrieve the FS PnL Decomposition Explain Mapdouble
idiosyncraticGrossPnL()
Retrieve the Idiosyncratic Gross PnLjava.util.Map<java.lang.String,java.lang.Integer>
idiosyncraticInstanceCountMap()
Retrieve the Idiosyncratic Instance Count Mapjava.util.Map<java.lang.String,java.lang.Double>
idiosyncraticPnLExplainMap()
Retrieve the Idiosyncratic PnL Explain Mapjava.util.Map<java.lang.String,java.lang.Double>
idiosyncraticPnLWorstMap()
Retrieve the Idiosyncratic Worst PnL Mapjava.util.Map<java.lang.String,java.lang.Double>
paaCategoryDecompositionExplainMap()
Retrieve the PAA Category Decomposition Explain Mapint
pathCount()
Retrieve the Number of Contributing Pathsjava.util.List<java.lang.Integer>
pathIndexList()
Generate the Contributing Path Index Listdouble
systemicGrossPnL()
Retrieve the Systemic Gross PnLjava.util.Map<java.lang.String,java.lang.Double>
systemicGrossPnLExplainMap()
Retrieve the Systemic Gross PnL Explain Mapjava.util.Map<java.lang.String,java.lang.Integer>
systemicInstanceCountMap()
Retrieve the Systemic Instance Count Mapdouble
systemicPnL()
Retrieve the Systemic PnLjava.util.Map<java.lang.String,java.lang.Double>
systemicPnLExplainMap()
Retrieve the Systemic PnL Explain Mapdouble
var()
Retrieve the VaRMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AllocatedPnLAttribution
public AllocatedPnLAttribution(PnLAttribution standalonePnLAttribution, EntityComponentCapital entityComponentCapital) throws java.lang.ExceptionAllocatedPnLAttribution Constructor- Parameters:
standalonePnLAttribution
- The Stand-alone PnL AttributionentityComponentCapital
- The Entity Component Capital- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
entityComponentCapital
Retrieve the Entity Component Capital- Returns:
- The Entity Component Capital
-
fsPnLDecompositionExplainMap
public java.util.Map<java.lang.String,java.lang.Double> fsPnLDecompositionExplainMap()Description copied from class:PnLAttribution
Retrieve the FS PnL Decomposition Explain Map- Overrides:
fsPnLDecompositionExplainMap
in classPnLAttribution
- Returns:
- The FS PnL Decomposition Explain Map
-
paaCategoryDecompositionExplainMap
public java.util.Map<java.lang.String,java.lang.Double> paaCategoryDecompositionExplainMap()Description copied from class:PnLAttribution
Retrieve the PAA Category Decomposition Explain Map- Overrides:
paaCategoryDecompositionExplainMap
in classPnLAttribution
- Returns:
- The PAA Category Decomposition Explain Map
-
systemicPnLExplainMap
public java.util.Map<java.lang.String,java.lang.Double> systemicPnLExplainMap()Description copied from class:PnLAttribution
Retrieve the Systemic PnL Explain Map- Overrides:
systemicPnLExplainMap
in classPnLAttribution
- Returns:
- The Systemic PnL Explain Map
-
systemicGrossPnLExplainMap
public java.util.Map<java.lang.String,java.lang.Double> systemicGrossPnLExplainMap()Description copied from class:PnLAttribution
Retrieve the Systemic Gross PnL Explain Map- Overrides:
systemicGrossPnLExplainMap
in classPnLAttribution
- Returns:
- The Systemic Gross PnL Explain Map
-
idiosyncraticPnLExplainMap
public java.util.Map<java.lang.String,java.lang.Double> idiosyncraticPnLExplainMap()Description copied from class:PnLAttribution
Retrieve the Idiosyncratic PnL Explain Map- Overrides:
idiosyncraticPnLExplainMap
in classPnLAttribution
- Returns:
- The Idiosyncratic PnL Explain Map
-
idiosyncraticPnLWorstMap
public java.util.Map<java.lang.String,java.lang.Double> idiosyncraticPnLWorstMap()Description copied from class:PnLAttribution
Retrieve the Idiosyncratic Worst PnL Map- Overrides:
idiosyncraticPnLWorstMap
in classPnLAttribution
- Returns:
- The Idiosyncratic Worst PnL Map
-
var
public double var()Description copied from class:PnLAttribution
Retrieve the VaR- Overrides:
var
in classPnLAttribution
- Returns:
- VaR
-
expectedShortfall
public double expectedShortfall()Description copied from class:PnLAttribution
Retrieve the Expected Short-fall- Overrides:
expectedShortfall
in classPnLAttribution
- Returns:
- Expected Short-fall
-
systemicInstanceCountMap
public java.util.Map<java.lang.String,java.lang.Integer> systemicInstanceCountMap()Description copied from class:PnLAttribution
Retrieve the Systemic Instance Count Map- Overrides:
systemicInstanceCountMap
in classPnLAttribution
- Returns:
- The Systemic Instance Count Map
-
idiosyncraticInstanceCountMap
public java.util.Map<java.lang.String,java.lang.Integer> idiosyncraticInstanceCountMap()Description copied from class:PnLAttribution
Retrieve the Idiosyncratic Instance Count Map- Overrides:
idiosyncraticInstanceCountMap
in classPnLAttribution
- Returns:
- The Idiosyncratic Instance Count Map
-
pathIndexList
public java.util.List<java.lang.Integer> pathIndexList()Description copied from class:PnLAttribution
Generate the Contributing Path Index List- Specified by:
pathIndexList
in classPnLAttribution
- Returns:
- Contributing Path Index List
-
pathCount
public int pathCount()Description copied from class:PnLAttribution
Retrieve the Number of Contributing Paths- Specified by:
pathCount
in classPnLAttribution
- Returns:
- The Number of Contributing Paths
-
systemicPnL
public double systemicPnL()Description copied from class:PnLAttribution
Retrieve the Systemic PnL- Overrides:
systemicPnL
in classPnLAttribution
- Returns:
- The Systemic PnL
-
systemicGrossPnL
public double systemicGrossPnL()Description copied from class:PnLAttribution
Retrieve the Systemic Gross PnL- Overrides:
systemicGrossPnL
in classPnLAttribution
- Returns:
- The Systemic Gross PnL
-
idiosyncraticGrossPnL
public double idiosyncraticGrossPnL()Description copied from class:PnLAttribution
Retrieve the Idiosyncratic Gross PnL- Overrides:
idiosyncraticGrossPnL
in classPnLAttribution
- Returns:
- The Idiosyncratic Gross PnL
-
fsGrossPnL
public double fsGrossPnL()Description copied from class:PnLAttribution
Retrieve the Gross VaR FS PnL- Overrides:
fsGrossPnL
in classPnLAttribution
- Returns:
- The Gross VaR FS PnL
-