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
I would like to use bootstrap to calculate statistical significance of mean values of composites.
The composites have length l and are taken from a time-series of length L > l. Now I would like to compute null-composites by randomly selecting the same number of dates (i.e.: l elements) from the whole time-series as had been in the original composite.
Playing around I ended up with: from arch.bootstrap import MovingBlockBootstrap x = numpy.arange(1000) (original dataset) MovingBlockBootstrap(3,x).conf_int(numpy.mean, reps=10000, size=.95)
However, MovingBlockBootstraps leaves me with composites of length l = L = 1000. Is there a way to change this?
I wondered, whether a function like import random def func(x): return np.mean(random.sample(x,l))
could do the job. But testing this with l=200, I got quite high fluctuations for the confidence intervals...
I would be very happy about any hint!
Thank you very much!
L
PS: I'm not sure, whether this github page is the right place to ask that kind of questions. If not I am happily willing to migrate the question to any other forum.
The text was updated successfully, but these errors were encountered:
Hello,
I would like to use bootstrap to calculate statistical significance of mean values of composites.
The composites have length
l
and are taken from a time-series of lengthL > l
. Now I would like to compute null-composites by randomly selecting the same number of dates (i.e.:l
elements) from the whole time-series as had been in the original composite.Playing around I ended up with:
from arch.bootstrap import MovingBlockBootstrap
x = numpy.arange(1000)
(original dataset)MovingBlockBootstrap(3,x).conf_int(numpy.mean, reps=10000, size=.95)
However, MovingBlockBootstraps leaves me with composites of length
l = L = 1000
. Is there a way to change this?I wondered, whether a function like
import random
def func(x): return np.mean(random.sample(x,l))
could do the job. But testing this with
l=200,
I got quite high fluctuations for the confidence intervals...I would be very happy about any hint!
Thank you very much!
L
PS: I'm not sure, whether this github page is the right place to ask that kind of questions. If not I am happily willing to migrate the question to any other forum.
The text was updated successfully, but these errors were encountered: