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 MapdoublecorrelatedPnL()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 MapEntityComponentCapitalentityComponentCapital()Retrieve the Entity Component CapitaldoubleexpectedShortfall()Retrieve the Expected Short-falldoublefsGrossPnL()Retrieve the Gross VaR FS PnLjava.util.Map<java.lang.String,java.lang.Double>fsPnLDecompositionExplainMap()Retrieve the FS PnL Decomposition Explain MapdoubleidiosyncraticGrossPnL()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 MapintpathCount()Retrieve the Number of Contributing Pathsjava.util.List<java.lang.Integer>pathIndexList()Generate the Contributing Path Index ListdoublesystemicGrossPnL()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 MapdoublesystemicPnL()Retrieve the Systemic PnLjava.util.Map<java.lang.String,java.lang.Double>systemicPnLExplainMap()Retrieve the Systemic PnL Explain Mapdoublevar()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:PnLAttributionRetrieve the FS PnL Decomposition Explain Map- Overrides:
fsPnLDecompositionExplainMapin classPnLAttribution- Returns:
- The FS PnL Decomposition Explain Map
-
paaCategoryDecompositionExplainMap
public java.util.Map<java.lang.String,java.lang.Double> paaCategoryDecompositionExplainMap()Description copied from class:PnLAttributionRetrieve the PAA Category Decomposition Explain Map- Overrides:
paaCategoryDecompositionExplainMapin classPnLAttribution- Returns:
- The PAA Category Decomposition Explain Map
-
systemicPnLExplainMap
public java.util.Map<java.lang.String,java.lang.Double> systemicPnLExplainMap()Description copied from class:PnLAttributionRetrieve the Systemic PnL Explain Map- Overrides:
systemicPnLExplainMapin classPnLAttribution- Returns:
- The Systemic PnL Explain Map
-
systemicGrossPnLExplainMap
public java.util.Map<java.lang.String,java.lang.Double> systemicGrossPnLExplainMap()Description copied from class:PnLAttributionRetrieve the Systemic Gross PnL Explain Map- Overrides:
systemicGrossPnLExplainMapin classPnLAttribution- Returns:
- The Systemic Gross PnL Explain Map
-
idiosyncraticPnLExplainMap
public java.util.Map<java.lang.String,java.lang.Double> idiosyncraticPnLExplainMap()Description copied from class:PnLAttributionRetrieve the Idiosyncratic PnL Explain Map- Overrides:
idiosyncraticPnLExplainMapin classPnLAttribution- Returns:
- The Idiosyncratic PnL Explain Map
-
idiosyncraticPnLWorstMap
public java.util.Map<java.lang.String,java.lang.Double> idiosyncraticPnLWorstMap()Description copied from class:PnLAttributionRetrieve the Idiosyncratic Worst PnL Map- Overrides:
idiosyncraticPnLWorstMapin classPnLAttribution- Returns:
- The Idiosyncratic Worst PnL Map
-
var
public double var()Description copied from class:PnLAttributionRetrieve the VaR- Overrides:
varin classPnLAttribution- Returns:
- VaR
-
expectedShortfall
public double expectedShortfall()Description copied from class:PnLAttributionRetrieve the Expected Short-fall- Overrides:
expectedShortfallin classPnLAttribution- Returns:
- Expected Short-fall
-
systemicInstanceCountMap
public java.util.Map<java.lang.String,java.lang.Integer> systemicInstanceCountMap()Description copied from class:PnLAttributionRetrieve the Systemic Instance Count Map- Overrides:
systemicInstanceCountMapin classPnLAttribution- Returns:
- The Systemic Instance Count Map
-
idiosyncraticInstanceCountMap
public java.util.Map<java.lang.String,java.lang.Integer> idiosyncraticInstanceCountMap()Description copied from class:PnLAttributionRetrieve the Idiosyncratic Instance Count Map- Overrides:
idiosyncraticInstanceCountMapin classPnLAttribution- Returns:
- The Idiosyncratic Instance Count Map
-
pathIndexList
public java.util.List<java.lang.Integer> pathIndexList()Description copied from class:PnLAttributionGenerate the Contributing Path Index List- Specified by:
pathIndexListin classPnLAttribution- Returns:
- Contributing Path Index List
-
pathCount
public int pathCount()Description copied from class:PnLAttributionRetrieve the Number of Contributing Paths- Specified by:
pathCountin classPnLAttribution- Returns:
- The Number of Contributing Paths
-
systemicPnL
public double systemicPnL()Description copied from class:PnLAttributionRetrieve the Systemic PnL- Overrides:
systemicPnLin classPnLAttribution- Returns:
- The Systemic PnL
-
systemicGrossPnL
public double systemicGrossPnL()Description copied from class:PnLAttributionRetrieve the Systemic Gross PnL- Overrides:
systemicGrossPnLin classPnLAttribution- Returns:
- The Systemic Gross PnL
-
idiosyncraticGrossPnL
public double idiosyncraticGrossPnL()Description copied from class:PnLAttributionRetrieve the Idiosyncratic Gross PnL- Overrides:
idiosyncraticGrossPnLin classPnLAttribution- Returns:
- The Idiosyncratic Gross PnL
-
fsGrossPnL
public double fsGrossPnL()Description copied from class:PnLAttributionRetrieve the Gross VaR FS PnL- Overrides:
fsGrossPnLin classPnLAttribution- Returns:
- The Gross VaR FS PnL
-