#NEWLINE# def test_levy_cdf_ppf( ) : #NEWLINE# #INDENT# x = np . array ( [ 1000 , 1.0 , 0.5 , 0.1 , 0.01 , 0.001 ] ) #NEWLINE# expected = np . array ( [ 0.9747728793699604 , 0.3173105078629141 , 0.1572992070502851 , 0.0015654022580025495 , 1.523970604832105e-23 , 1.795832784800726e-219 ] ) #NEWLINE# y = stats . levy . cdf ( xx ) #NEWLINE# assert_allclose ( y , expected , rtol = 1e-10 ) #NEWLINE# xx = stats . levy . ppf ( expected ) #NEWLINE# assert_allclose ( xx , x , rtol = 1e-13 )