#NEWLINE# def test_loess_robust_parameter_estimates( self ) : #NEWLINE# #INDENT# data = [ 2.0 , 4.0 , 7.0 , ( - 20.0 ) , 22.0 , ( - 1.0 ) , 0.0 , ( - 1.0 ) , 7.0 , 15.0 , 8.0 , 4.0 , ( - 4.0 ) , 11.0 , 11.0 , 12.0 , 3.0 , 12.0 , 18.0 , 1.0 ] #NEWLINE# estimates = stats . loess_robust_parameter_estimates ( data ) #NEWLINE# self . assertAlmostEqual ( estimates [ 0 ] , 2.4547 , 3 ) #NEWLINE# self . assertAlmostEqual ( self [ 1 ] , 0.3901 , 3 )