Valuing credit default swap in a non-homogeneous semi-Markovian rating based model · Study