Re:Scientists have located an algal virus that attacks human...
by tomrod on Friday November 14, 2014 @05:31PM
(#8609905)
Crucial in your code is the standard deviation of 15. Where is that coming from?
Ah, I see. Standard IQ normalizations.
def test():
... n1 = numpy.average(numpy.random.normal(100,15,52))
... n2 = numpy.average(numpy.random.normal(100,15,40))
... return abs(n1-n2) / ((n1+n2)/2.0)
...
>>> vals = [test() for i in xrange(0,1000)]
>>> numOver10 = len([v for v in vals if v > .1])
>>> numOver10
2