Skip to content
Related Articles

Related Articles

Python | Scipy stats.hypsecant.fit() method
  • Last Updated : 10 Feb, 2020

With the help of stats.hypsecant.fit() method, we can get the parameter estimates for generic data by using stats.hypsecant.fit() method.

Syntax : stats.hypsecant.fit(data)
Return : Return the parameter estimates for generic data.

Example #1 :
In this example we can see that by using stats.hypsecant.fit() method, we are able to get the parameter estimates for generic data by using this method.

filter_none

edit
close

play_arrow

link
brightness_4
code

# import hypsecant
from scipy.stats import hypsecant
data = [1, 2, 3, 4]
  
# Using stats.hypsecant.fit() method
gfg = hypsecant.fit(data)
  
print(gfg)

chevron_right


Output :

(2.5000442723226115, 0.8418290927220122)



Example #2 :

filter_none

edit
close

play_arrow

link
brightness_4
code

# import hypsecant
from scipy.stats import hypsecant
data = [1, 2, 3, 4, 10, -5]
  
# Using stats.hypsecant.fit() method
gfg = hypsecant.fit(data)
  
print(gfg)

chevron_right


Output :

(2.4999694801000487, 2.756410927671771)

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.

My Personal Notes arrow_drop_up
Recommended Articles
Page :