-
At first, thank you for this library. The docs say, that the bias corrected and accelerated (BCa) bootstrap method is used. However, this method was designed for data that is independent and identically distributed (iid). As this is not the case for stock data, I wonder how exactly pybroker applies bootstrapping. If I understand BCa correctly, it draws samples randomly with a specific sample size, as does pybroker. However, because the data is assumed independent in BCa, it draws each sample randomly. From data in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @saddy001, No, Pybroker does not choose consecutive samples when bootstrapping. However, I can add an option to support this. |
Beta Was this translation helpful? Give feedback.
I am not sure what you mean by "the ordering of the splits itself is sampled randomly." The BCa is sampled randomly from the test split(s).
The data in the train and test window is always ordered by date, you can verify this yourself in your execution function. BCa samples randomly to calculate confidence intervals.