Open In App

Python | Scipy stats.halfgennorm.interval() method

Last Updated : 06 Feb, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

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.




# import halfgennorm
from scipy.stats import halfgennorm
alpha, beta = 0.1, 5
  
# Using stats.halfgennorm.interval() method
gfg = halfgennorm.interval(alpha, beta)
  
print(gfg)


Output :

(0.4140124809044803, 0.5078251542451746)

Example #2 :




# import halfgennorm
from scipy.stats import halfgennorm
alpha, beta = 0.1, 1
  
# Using stats.halfgennorm.interval() method
gfg = halfgennorm.interval(alpha, beta)
  
print(gfg)


Output :

(0.5978370007556202, 0.7985076962177717)


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads