Hacker News new | ask | show | jobs
by leeber 4228 days ago
Guys, we're programmers here not statisticians:

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

1 comments

Crucial in your code is the standard deviation of 15. Where is that coming from?

Ah, I see. Standard IQ normalizations.