Two essays on credit risk correlation