Closed lisandrojim closed 1 year ago
The confidence bound is undefined at 0.
Use:
from surpyval import ExpoWeibull, LogLogistic, LogNormal
for _ in ['ExpoWeibull','LogLogistic','LogNormal']:
if _ == 'ExpoWeibull':
x = eval(_+'.random(100,1,1,1)')
else:
x = eval(_+'.random(100,1,1)')
model = ExpoWeibull.fit(x)
print(model.cb(1))
This gave me defined (non nan) answers.
When using the functions ExpoWeibull, LogLogistic, LogNormal with Maximum Likelihood Estimation. The method fails to compute confidence intervals. See the example below.
It outputs for all three cases that the confidence bound:
[[nan nan]]