Computing probabilties