Пример #1
0
def test_calc_populationCorrelationCoefficient_fail():
    from StatisticsModule import populationCorrelationCoefficient
    assert populationCorrelationCoefficient(dataSet) != 5
    print('mode(s): ', str(mode(dataSet)))
elif choice =="4":
    from StatisticsModule import populationStandardDeviation
    print('Population Standard Deviation: ', str(populationStandardDeviation(dataSet)))
elif choice == "5":
    from StatisticsModule import variancePopulationProportion
    print('variance of population proportion: ', str(variancePopulationProportion(dataSet)))    
elif choice == "6":
    from StatisticsModule import zScore
    print('z-score: ', str(zScore(dataSet)))
elif choice == "7":
    from StatisticsModule import standardizedScore
    print('Standardized Score: ', str(standardizedScore(dataSet)))
elif choice == "8":
    from StatisticsModule import populationCorrelationCoefficient
    print('Population Correlation Coefficient: ', str(populationCorrelationCoefficient(dataSet)))
elif choice == "9":
    from StatisticsModule import confidenceInterval
    print('confidence interval: ', str(confidenceInterval(dataSet)))    
elif choice == "10":
    from StatisticsModule import variance
    print('variance: ', str(variance(dataSet)))
elif choice == "12":
    from StatisticsModule import varianceSampleProportion
    print('Variance Sample Proportion: ', str(varianceSampleProportion(dataSet)))
elif choice == "13":
    from StatisticsModule import sampleMean
    print('sample mean: ', str(sampleMean(dataSet)))    
elif choice == "14":
    from StatisticsModule import standardDeviation
    print('standard deviation: ', str(standardDeviation(dataSet)))    
Пример #3
0
def test_calc_populationCorrelationCoefficient():
    from StatisticsModule import populationCorrelationCoefficient
    assert populationCorrelationCoefficient(dataSet)) == -0.43371655224528094
Пример #4
0
    print('Population Standard Deviation: ',
          str(populationStandardDeviation(dataSet)))
elif choice == "5":
    from StatisticsModule import variancePopulationProportion
    print('variance of population proportion: ',
          str(variancePopulationProportion(dataSet)))
elif choice == "6":
    from StatisticsModule import zScore
    print('z-score: ', str(zScore(dataSet)))
elif choice == "7":
    from StatisticsModule import standardizedScore
    print('Standardized Score: ', str(standardizedScore(dataSet)))
elif choice == "8":
    from StatisticsModule import populationCorrelationCoefficient
    print('Population Correlation Coefficient: ',
          str(populationCorrelationCoefficient(dataSet)))
elif choice == "9":
    from StatisticsModule import confidenceInterval
    print('confidence interval: ', str(confidenceInterval(dataSet)))
elif choice == "10":
    from StatisticsModule import variance
    print('variance: ', str(variance(dataSet)))
elif choice == "11":
    from StatisticsModule import pValue
    print('p-value: ', str(pValue(dataSet)))
elif choice == "12":
    from StatisticsModule import proportion
    print('proportion: ', str(proportion(dataSet)))
elif choice == "13":
    from StatisticsModule import sampleMean
    print('sample mean: ', str(sampleMean(dataSet)))