Code to calculate the "power" of a sample size.
For a given distribution (Exponential or Poisson provided here), the script calculates the proportion of two-tailed statistical tests that are significant, under the assumption that there is a true difference in means of the two distributions