Stochastic and copula models for credit derivatives