def test_valid_cases_7(self): list = [] for i in range(10000): list.append(i) self.assertAlmostEqual(standard_deviation(list), 2886.7512882131014) self.assertAlmostEqual(standard_error(list), 28.867512882131013)
def test_valid_cases_8(self): list = [] for i in range(9999999): list.append(i) self.assertAlmostEqual(standard_deviation(list), 2886751.0572728645) self.assertAlmostEqual(standard_error(list), 912.8708835335426)
def test_valid_cases_1(self): self.assertAlmostEqual(standard_deviation([0]), 0) self.assertAlmostEqual(standard_error([0]), 0)
def test_valid_cases_6(self): self.assertAlmostEqual(standard_deviation([0.0, -1.0, -2.0]), 0.816496580927726) self.assertAlmostEqual(standard_error([0.0, -1.0, -2.0]), 0.47140452079103173)