Trust and Reputation Management: a Probabilistic Approach