Skip to content
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

Only train data in granger causality test? #8706

Open
tim-roethig-db opened this issue Feb 27, 2023 · 1 comment
Open

Only train data in granger causality test? #8706

tim-roethig-db opened this issue Feb 27, 2023 · 1 comment

Comments

@tim-roethig-db
Copy link

def grangercausalitytests(x, maxlag, addconst=True, verbose=None):

Is the granger causality test only ran on training data? If yes, is that correct? Isn't it possible then to face issues with overfitting?

@josef-pkt
Copy link
Member

All hypothesis tests, specification tests, and similar are only in-sample. There is no cross-validation or similar to choose the model, or number of lags.

If maxlag is large compared to the number of observations, then the test looses power, but should still be consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants