Techniques for probabilistic and risk calculations