Examples

Finite portfolio with N credits - Calculate probability of k losses


In [6]:
import vasicek as vs

Calculate the probability of four losses in a portfolio of ten credits when the PD is 0.1 and correlation is 20%


In [9]:
print("p=", vs.vasicek_base(10, 0, 0.34140, 0.2))


p= 0.0247698052830416

In [ ]: