Package jdistlib.finance
Class FinancialRisk
java.lang.Object
jdistlib.finance.FinancialRisk
Atom-aware tail-risk, partial-moment, and option-payoff functionals.
-
Method Summary
Modifier and TypeMethodDescriptionstatic NumericalEstimatecallPayoff(GenericDistribution terminalPrice, double strike) static NumericalEstimatedownsideDeviation(GenericDistribution returns, double minimumAcceptableReturn) static NumericalEstimateexpectedShortfall(GenericDistribution distribution, double level, RiskConvention convention) Atom-aware expected loss beyond VaR, defined through the quantile integral.static NumericalEstimateexpectedShortfallMagnitude(GenericDistribution distribution, double target) static NumericalEstimateexpectile(GenericDistribution distribution, double probability) Asymmetric least-squares expectile with a bracket/convergence report.static NumericalEstimatepartialMoment(GenericDistribution distribution, double threshold, double order, Tail tail) Lower/upper partial moment E[(threshold-X)+^order] or E[(X-threshold)+^order].static NumericalEstimateputPayoff(GenericDistribution terminalPrice, double strike) static doubleshortfallProbability(GenericDistribution distribution, double target) static NumericalEstimatestopLoss(GenericDistribution distribution, double retention) static doublevalueAtRisk(GenericDistribution distribution, double level, RiskConvention convention) Loss VaR at confidencelevel; returns are converted to losses first.static voidvalueAtRiskInto(GenericDistribution distribution, double[] levels, int inputOffset, double[] output, int outputOffset, int length, RiskConvention convention)
-
Method Details
-
valueAtRisk
public static double valueAtRisk(GenericDistribution distribution, double level, RiskConvention convention) Loss VaR at confidencelevel; returns are converted to losses first. -
expectedShortfall
public static NumericalEstimate expectedShortfall(GenericDistribution distribution, double level, RiskConvention convention) Atom-aware expected loss beyond VaR, defined through the quantile integral. -
partialMoment
public static NumericalEstimate partialMoment(GenericDistribution distribution, double threshold, double order, Tail tail) Lower/upper partial moment E[(threshold-X)+^order] or E[(X-threshold)+^order]. -
stopLoss
-
callPayoff
-
putPayoff
-
downsideDeviation
public static NumericalEstimate downsideDeviation(GenericDistribution returns, double minimumAcceptableReturn) -
shortfallProbability
-
expectedShortfallMagnitude
public static NumericalEstimate expectedShortfallMagnitude(GenericDistribution distribution, double target) -
expectile
Asymmetric least-squares expectile with a bracket/convergence report. -
valueAtRiskInto
public static void valueAtRiskInto(GenericDistribution distribution, double[] levels, int inputOffset, double[] output, int outputOffset, int length, RiskConvention convention)
-