Skip to content
Related Articles

Related Articles

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.




# 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)

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

My Personal Notes arrow_drop_up
Recommended Articles
Page :