예제 #1
0
 def test_jarque_bera(self):
     obs = diagnostics.jarque_bera(reg)
     exp = {'df':2, 'jb':1.835752520076, 'pvalue':0.399366291249}
     self.assertEquals(obs['df'],exp['df'])
     self.assertAlmostEquals(obs['jb'],exp['jb'])
     self.assertAlmostEquals(obs['pvalue'],exp['pvalue'])
예제 #2
0
 def test_jarque_bera(self):
     obs = diagnostics.jarque_bera(reg)
     exp = {'df': 2, 'jb': 1.835752520076, 'pvalue': 0.399366291249}
     np.testing.assert_equal(obs['df'], exp['df'])
     np.testing.assert_allclose(obs['jb'], exp['jb'], RTOL)
     np.testing.assert_allclose(obs['pvalue'], exp['pvalue'], RTOL)
예제 #3
0
 def test_jarque_bera(self):
     obs = diagnostics.jarque_bera(reg)
     exp = {'df': 2, 'jb': 1.835752520076, 'pvalue': 0.399366291249}
     self.assertEquals(obs['df'], exp['df'])
     self.assertAlmostEquals(obs['jb'], exp['jb'])
     self.assertAlmostEquals(obs['pvalue'], exp['pvalue'])
예제 #4
0
 def test_jarque_bera(self):
     obs = diagnostics.jarque_bera(reg)
     exp = {'df':2, 'jb':1.835752520076, 'pvalue':0.399366291249}
     np.testing.assert_equal(obs['df'],exp['df'])
     np.testing.assert_allclose(obs['jb'],exp['jb'], RTOL)
     np.testing.assert_allclose(obs['pvalue'],exp['pvalue'], RTOL)