Add script from computing mean from a CDF

Not sure if this is the right repo for this script, but oh well