#NEWLINE# def test_logpdf_ticket_1866( self ) : #NEWLINE# #INDENT# ( alpha , beta ) = ( 267 , 1472 ) #NEWLINE# x = np . array ( [ 0.2 , 0.5 , 0.6 ] ) #NEWLINE# b = stats . beta ( alpha , beta ) #NEWLINE# assert_allclose ( b . logpdf ( x ) . sum ( ) , ( - 1201.699061824062 ) ) #NEWLINE# assert_allclose ( b . pdf ( x ) , np . exp ( b . logpdf ( x ) ) )