Calculate the standard deviation of a normal distribution
Code: "stat_sdeviation.py". Programming language: Python
DMelt Version 1. Last modified: 12/11/2015. License: Pro
https://datamelt.org/code/cache/stat_sdeviation_4003.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
"""
Normal distribution
Normal distribution: Normal_distribution
Look at the Standard deviation definition
"""
# Method I
from javanpst.distributions.common.continuous import NormalDistribution
p=NormalDistribution()
print "1 sigma=",p.computeCumulativeProbability(1)
print "2 sigma=",p.computeCumulativeProbability(2)
print "\n Inverse 0.95 sigma. Method 1=",p.inverseNormalDistribution(0.95)
# Method II
from org.apache.commons.math3.distribution import NormalDistribution
p=NormalDistribution()
print "Inverse 0.95 sigma. Method 2=",p.inverseCumulativeProbability(0.95)
You see the box below because you did not login.