#NEWLINE# def test_precision( self ) : #NEWLINE# #INDENT# M = 2500 #NEWLINE# n = 50 #NEWLINE# N = 500 #NEWLINE# tot = M #NEWLINE# good = n #NEWLINE# hgpmf = stats . hypergeom . pmf ( 2 , tot , good , N ) #NEWLINE# assert_almost_equal ( hgpmf , 0.0010114963068932233 , 11 )