-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: warning on look-ahead bias with resampling #26754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26754 +/- ##
==========================================
- Coverage 91.7% 41.2% -50.5%
==========================================
Files 179 179
Lines 50767 50767
==========================================
- Hits 46555 20918 -25637
- Misses 4212 29849 +25637
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #26754 +/- ##
==========================================
+ Coverage 91.7% 91.71% +0.01%
==========================================
Files 179 178 -1
Lines 50767 50771 +4
==========================================
+ Hits 46555 46564 +9
+ Misses 4212 4207 -5
Continue to review full report at Codecov.
|
doc/source/user_guide/timeseries.rst
Outdated
frequency offsets except for 'M', 'A', 'Q', 'BM', 'BA', 'BQ', and 'W' | ||
which all have a default of 'right'. | ||
|
||
This might lead to unintended look-ahead bias as in the following example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "look-ahead bias" a common term?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in the context of timeseries forecasting.
EDIT: what about dropping the word bias
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, dropping bias, and perhaps adding a small definition sounds good. Something like
This might lead to unintended looking ahead, where the value for a later date (Sunday) is pulled back to
a previous date (Friday).
thanks @0x0L |
git diff upstream/master -u -- "*.py" | flake8 --diff