Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Python | Scipy stats.halfgennorm.interval() method

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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)

My Personal Notes arrow_drop_up
Last Updated : 06 Feb, 2020
Like Article
Save Article
Similar Reads
Related Tutorials