Contribution to risk assessment: a dynamic approach using Bayesian theory