Exemple #1
0
 def test_confidence_interval_SUB(self):
     for row in test_data_values({}):
         result = test_data_results.float(row['Confidence_Interval_SUB'])
         self.assertEqual(
             self.statistics.confidence_interval_SUB((row['Values']),
                                                     result))
         self.assertEqual(self.statistics.result, result)
Exemple #2
0
 def test_population_standard_deviance(self):
     for row in test_data_values({}):
         result = test_data_results.float(
             row['Population_Standard_Deviance'])
         self.assertAlmostEqual(
             self.statistics.population_standard_deviance((row['Values']),
                                                          result))
         self.assertAlmostEqual(self.statistics.result, result)
Exemple #3
0
 def test_population_correlation_coefficient(self):
     for row in test_data_values({}):
         result = test_data_results.float(
             row['Population_Correlation_Coefficient'])
         self.assertEqual(
             self.statistics.population_correlation_coefficient(
                 (row['Values']), result))
         self.assertEqual(self.statistics.result, result)
Exemple #4
0
 def test_variance_population_proportion(self):
     for row in test_data_values({}):
         result = test_data_results.float(
             row['Variance_Population_Proportion'])
         self.assertEqual(
             self.statistics.variance_population_proportion((row['Values']),
                                                            result))
         self.assertEqual(self.statistics.result, result)
Exemple #5
0
 def test_proportion(self):
     for row in test_data_values({}):
         result = test_data_results.float(row['Proportion'])
         self.assertEqual(
             self.statistics.proportion((row['Values']), result))
         self.assertEqual(self.statistics.result, result)
Exemple #6
0
 def test_zscore(self):
     for row in test_data_values({}):
         result = test_data_results.float(row['Zscore'])
         self.assertEqual(self.statistics.zscore((row['Values']), result))
         self.assertEqual(self.statistics.result, result)
Exemple #7
0
 def test_median(self):
     for row in test_data_values({}):
         result = test_data_results.float(row['Median'])
         self.assertEqual(self.statistics.median((row['Values']), result))
         self.assertEqual(self.statistics.result, result)
Exemple #8
0
 def test_population_mean(self):
     for row in test_data_values({}):
         result = test_data_results.float(row['Population_Mean'])
         self.assertEqual(
             self.statistics.population_mean((row['Values']), result))
         self.assertEqual(self.statistics.result, result)
Exemple #9
0
 def test_get_sample(self):
     expected_range = range(5, 6)
     for row in test_data_values({}):
         result = float(row['Values']).getSample(
             test_data_values, sample_size=self.sample_size)
         self.assertIn(result, expected_range)
Exemple #10
0
 def test_num_values(self):
     for row in test_data_values({}):
         result = test_data_results.float(row['Num_Values'])
         self.assertEqual(
             self.statistics.num_values((row['Values']), result))
         self.assertEqual(self.statistics.result, result)
Exemple #11
0
 def test_data_value(self, test_data):
     self.result = test_data_values(self.test_data)
     return self.result