Statistics for Banking regulation: a bayesian network approach to risk management