Quantifying Credit Risk I: Default Prediction