Created
June 11, 2015 10:40
-
-
Save mamonu/da66875f608472dddc6c to your computer and use it in GitHub Desktop.
calculate probability of false positive after x tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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