def unknownPopulationStdev(seed, data, percent): ZScore = Zsc.zsc(seed, data) MarOfError = MarginOfError.marginOfError(seed, data) p = percent q = Subtraction.difference(1, p) pq = Division.division(ZScore, MarOfError) samplePopulation = Exponential.exponential(pq, 2) * p * q return samplePopulation
def test_MathOperations_division(self): self.assertEqual(2, Division.division(4, 2))
def Division(self, a, b): self.Result = Division.division(a, b) return self.Result
def medianskewness(data): ni = (Subtraction.difference(Mean.mean(data), Median.median(data))) nii = Division.division(ni, Stddev.stddev(data)) return nii
def modeskewness(data): n = (Subtraction.difference(Mean.mean(data), Mode.mode(data))) nn = Division.division(n, Stddev.stddev(data)) return nn
def test_MathOperations_Division(self): self.assertEqual(5, Division.division(35, 7))