Introduce script for analysing the probabilities

Copied as is from other repository