Above: what it imports. Below: what imports it.
mf-expected-negative-exposure-gaussian · credit.json · full statement
Expected Negative Exposure, Gaussian Closed Form
ENE(s) = E[(-V_s)⁺]. For integrable V_s, ENE = EE − E[V_s]; for V_s = a + b√s Z with Z ~ N(0,1), b > 0, s > 0, ENE = aΦ(d) + b√s φ(d) − a, d = a/(b√s).
mf-dva-cva-mirror · credit.json · full statement
DVA as the Integral of Expected Negative Exposure
DVA is defined as CVA.cva at the bank's own default time τ_B and the exposure −V seen from the bank's side. With τ_B independent of the exposure (a product measure) and of CDF 1 − exp(−∫₀ᵃ h) on [0, ∞) (h continuous, h ≥ 0; hypothesized), D measurable, V jointly measurable, T ≥ 0 and the integrand integrable: DVA = LGD_B · ∫₀ᵀ D(s) · ENE(s) · h(s) e^{−∫₀ˢ h} ds, with ENE(s) = E[(−V_s)⁺] the expected negative exposure.