1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//! # Risk Metrics
//!
//! $$
//! \mathrm{VaR}_{\alpha}(L)=\inf\{\ell:\mathbb{P}(L>\ell)\le 1-\alpha\},\qquad
//! \mathrm{ES}_{\alpha}(L)=\mathbb{E}[L\mid L\ge\mathrm{VaR}_{\alpha}(L)]
//! $$
//!
//! Portfolio-level Value at Risk, Expected Shortfall, drawdown analytics,
//! performance ratios (Sharpe, Sortino, Information, Calmar), a light-weight
//! scenario / stress-test engine, and instrument-level Greeks via
//! bump-and-reprice.
//!
//! Reference: Jorion, "Value at Risk: The New Benchmark for Managing Financial
//! Risk", 3rd ed., McGraw-Hill (2007).
//!
//! Reference: Acerbi & Tasche, "On the Coherence of Expected Shortfall",
//! Journal of Banking & Finance, 26(7), 1487–1503 (2002).
//! DOI: 10.1016/S0378-4266(02)00283-2
//!
//! Reference: Rockafellar & Uryasev, "Conditional Value-at-Risk for General
//! Loss Distributions", Journal of Banking & Finance, 26(7), 1443–1471 (2002).
//! DOI: 10.1016/S0378-4266(02)00271-6
//!
//! Reference: Sharpe, "The Sharpe Ratio", Journal of Portfolio Management,
//! 21(1), 49–58 (1994). DOI: 10.3905/jpm.1994.409501
//!
//! Reference: Sortino & van der Meer, "Downside Risk", Journal of Portfolio
//! Management, 17(4), 27–31 (1991). DOI: 10.3905/jpm.1991.409343
pub use expected_credit_loss;
pub use probability_of_default_before;
pub use DrawdownStats;
pub use max_drawdown;
pub use max_drawdown_duration;
pub use running_drawdown;
pub use liquidity_adjusted_var;
pub use expected_shortfall;
pub use gaussian_es;
pub use historical_es;
pub use monte_carlo_es;
pub use Sensitivities;
pub use bucket_dv01;
pub use central_difference;
pub use finite_difference_greek;
pub use forward_difference;
pub use calmar_ratio;
pub use information_ratio;
pub use sharpe_ratio;
pub use sortino_ratio;
pub use CurveShift;
pub use Scenario;
pub use ScenarioResult;
pub use Shock;
pub use StressTest;
pub use PnlOrLoss;
pub use VarMethod;
pub use gaussian_var;
pub use historical_var;
pub use monte_carlo_var;
pub use monte_carlo_var_with_sampler;
pub use value_at_risk;