Skip to content

Instantly share code, notes, and snippets.

@mamonu
Created June 11, 2015 10:40
Show Gist options
  • Select an option

  • Save mamonu/da66875f608472dddc6c to your computer and use it in GitHub Desktop.

Select an option

Save mamonu/da66875f608472dddc6c to your computer and use it in GitHub Desktop.
calculate probability of false positive after x tests
import matplotlib.pyplot
import numpy as np
x = np.arange(1,150,1)
y = 1.0-((1.0-0.05)**x)
print x,y
matplotlib.pyplot.scatter(x, y)
#matplotlib.pyplot.show()
matplotlib.pyplot.savefig('PLTDEMO.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment