Hi @prebhan27 You are basically correct, I think. I don't want to defend the numeric values in the question (it's not mine), but the equation looks okay to me. As you know the fundamental CDS equality is simply: PV(payments by the protection buyer) = PV(contingent payoff by protection seller). The protection buyer will pay the spread premium regardless, but if the reference defaults then the protection buyer pays the accrued premium. In this case, it's only one year, so it's either
The protection buyer's calculation needs to include the full 100% probability, which is both the probability of survival and the probability of default. The protection seller only needs the default probability term simply because the seller pays zero in the case of survival. So the term, 0.5*d[0.5]*π + d[1.0]*(1-π), is conceptually correct because we need to include the premium(s) paid weighted by both survival and default scenarios. I hope that explains!
- pay the full premium with probability = (1-pd); i.e., survival
- or, pay the premium accrued over half the year (* 0.5); i.e., default