You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defbootstrap_ci(data, func, n=3000, p=0.95):
index=int(n*(1-p)/2)
samples=np.random.choice(data, size=(n, len(data)))
try:
r=func(samples, axis=1) # if the function supports axisexceptTypeError:
r= [func(s) forsinsamples] # otherwise do it the slow wayr.sort()
returnr[index], r[-index]
The standard deviation is pretty meaningless right now. Standard error is more appropriate for what we're measuring.
The text was updated successfully, but these errors were encountered: