Added Probability Matrix Calcluation