Be the first to rate this file! 28 downloads (last 30 days) File Size: 7.69 KB File ID: #26905

Fitting Survival Probability Models

by Gabo

 

10 Mar 2010

Code covered by the BSD License  

Companion code for "Fitting Survival Probability Models" article.

Download Now | Watch this File

File Information
Description

This is a MATLAB(R) implementation of the ideas discussed in

   Lopez-Calva, G. and K. Shea, "Fitting Survival Probability Models," WILMOTT Magazine, issue 45, pp. 16-22.

We estimate the parameters of three different survival probability models based on credit default swap (CDS) spreads. The parameters of the models are fitted using a nonlinear least-squares solver. For the standard model, a bootstrapping technique is also implemented, for comparisons. The mark-to-market (MtM) of an existing CDS contract is also calculated under the three alternative survival models. Code for a general survival model is provided, though it is not used in the main demo.

Dependencies: This demo uses functionality from the Financial Toolbox(TM), Fixed-Income Toolbox(TM) and Optimization Toolbox(TM).

Required Products Financial Toolbox
Fixed-Income Toolbox
Optimization Toolbox
MATLAB release MATLAB 7.9 (2009b)
Zip File Content  
Other Files FittingSurvivalModels.m,
genHazFun.m,
license.txt,
protectLeg.m,
rpv01.m,
survProbGenHazFun.m,
survProbNelsonSiegel.m,
survProbStdModel.m,
survProbWeibull.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
credit default swaps Gabo 11 Mar 2010 12:26:08
cds Gabo 11 Mar 2010 12:26:08
wilmott Gabo 11 Mar 2010 12:26:08
credit risk Gabo 11 Mar 2010 12:26:08
credit derivatives Gabo 11 Mar 2010 12:26:08
default probability Gabo 11 Mar 2010 12:26:08

Contact us at files@mathworks.com