Python | Scipy stats.halfgennorm.interval() method
Last Updated :
06 Feb, 2020
With the help of stats.halfgennorm.interval()
method, we can get the value of endpoints of the range that contains alpha percent of the distribution by using stats.halfgennorm.interval()
method.
Syntax : stats.halfgennorm.interval(alpha, beta)
Return : Return the value of endpoints of the distribution.
Example #1 :
In this example we can see that by using stats.halfgennorm.interval()
method, we are able to get the value of endpoints of the distribution by using this method.
from scipy.stats import halfgennorm
alpha, beta = 0.1 , 5
gfg = halfgennorm.interval(alpha, beta)
print (gfg)
|
Output :
(0.4140124809044803, 0.5078251542451746)
Example #2 :
from scipy.stats import halfgennorm
alpha, beta = 0.1 , 1
gfg = halfgennorm.interval(alpha, beta)
print (gfg)
|
Output :
(0.5978370007556202, 0.7985076962177717)
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...