Class HedgingErrorDistribution
java.lang.Object
com.quantfinlib.hedging.HedgingErrorDistribution
Distribution of delta-hedging P&L across Monte Carlo paths: how well the
hedge replicates the option, where the tail risk sits, and what the hedging
itself costs. P&L is the replication error of the short-option hedge
(positive = the hedge portfolio beat the payoff).
-
Method Summary
Modifier and TypeMethodDescriptiondoublebest()doubleconditionalValueAtRisk(double confidence) Expected loss beyond the VaR quantile, as a positive number.doublemean()doubledoubleintpaths()doublepercentile(double p) doublepremium()doubleFraction of paths where the hedge lost money.doubleReplication error as a fraction of the premium (std / premium).doublestdDev()toString()doublevalueAtRisk(double confidence) Hedging VaR: loss at the given confidence, as a positive number (0 if a gain).doubleworst()
-
Method Details
-
paths
public int paths() -
mean
public double mean() -
stdDev
public double stdDev() -
meanTradingCosts
public double meanTradingCosts() -
meanRebalances
public double meanRebalances() -
worst
public double worst() -
best
public double best() -
percentile
public double percentile(double p) -
probabilityOfLoss
public double probabilityOfLoss()Fraction of paths where the hedge lost money. -
valueAtRisk
public double valueAtRisk(double confidence) Hedging VaR: loss at the given confidence, as a positive number (0 if a gain). -
conditionalValueAtRisk
public double conditionalValueAtRisk(double confidence) Expected loss beyond the VaR quantile, as a positive number. -
relativeHedgeError
public double relativeHedgeError()Replication error as a fraction of the premium (std / premium). -
toString
-