Statistics for Pricing of credit risk and credit risk derivatives : from theory to implementation