Above: what it imports. Below: what imports it.
mf-contract-cds-cox-default-time · contracts.json · full statement
A Credit Default Swap on a Payment Grid Under the Cox Default Time
The protection buyer's credit default swap on a payment grid t_0, t_1, ..., t_n, written as a contract -- at t_(i+1) receive (1 - R)(N(t_(i+1)) - N(t_i)) and pay s (t_(i+1) - t_i)(1 - N(t_(i+1))), where N(u) = 1{tau <= u} is the default indicator -- is worth, against the Cox default time tau built from a unit-exponential clock xi by inverting the cumulative hazard of a continuous positive intensity h with divergent integral, and for any discount factor D: (1 - R) sum_{i<n} D(t_(i+1)) (S(t_i) - S(t_(i+1))) - s sum_{i<n} D(t_(i+1)) (t_(i+1) - t_i) S(t_(i+1)), where S = hazardSurvival h. Default is paid at the end of the period it falls in, not at tau, and no premium accrues between the last payment date and a default: this is the grid discretisation of the continuous legs, not those legs.
mf-contract-cds-protection-at-default · contracts.json · full statement
The CDS Protection Leg Paid at the Default Time Is the Continuous Protection Leg
The protection leg of a credit default swap written as a contract that pays at the default time: cdsProtectionAtDefault T R pays (1 - R) N_T at the first time the default indicator N u = 1{tau <= u} reaches 1 (Contract.payAtHit), that is at tau if tau <= T, and nothing otherwise. Against the Cox default time tau of a continuous positive intensity h with divergent cumulative hazard (a unit-exponential clock xi inverted through the cumulative hazard), discounted at the flat rate r (D u = e^{-ru}), it is worth Cox.protectionLeg R r h T = (1 - R) int_0^T e^{-rs} h(s) S(s) ds, S = hazardSurvival h. The default indicator is the observed underlying; the recovery is a constant and the discount rate is deterministic.
mf-contract-cds-recovery-timing · contracts.json · full statement
Recovery Paid at the Default Time Versus at the Horizon
For a measurable default time tau, a discount curve D whose discounted default payment D(tau) 1{tau <= T} is integrable under Q, and a recovery payment rho, the contract that pays rho at the default time if tau <= T (cdsProtectionAtDefault T 0 scaled by rho, a Contract.payAtHit on the default indicator N u = 1{tau <= u}) is worth rho E_Q[(D(tau) - D(T)) 1{tau <= T}] more than the contract that pays rho at the horizon T if tau <= T (pay T (rho N_T)): the value difference is the discount-curve gap between tau and T, weighted by the default event. The discount curve is deterministic; the integrability hypothesis holds for any curve that is measurable and bounded on [0, T].