Granger Causality Statistical Test for Time Series

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 14

  • @SkyRiderJavelin
    @SkyRiderJavelin 7 месяцев назад

    Well presented content clear and concise, Thanks for posting

  • @jaypdevaney
    @jaypdevaney 3 года назад +1

    Another great video, thanks!

  • @siddhant17khare
    @siddhant17khare 3 года назад +1

    Hello Sir,
    Thanks a lot for providing this wonderful demonstration!
    Just a small query : should both the variables (x and y ) be made stationary before applying Granger causality (of x on y) Or only making the x variable stationary would suffice the need ?

    • @AIEngineeringLife
      @AIEngineeringLife  3 года назад +1

      In time series y is a feature as well as y used for forecasting. So ideally if you see that way it is target as well

    • @siddhant17khare
      @siddhant17khare 3 года назад +1

      @@AIEngineeringLife Another related question Sir -
      a) When a t-test at lag 2 gets evaluated for Granger causality, then I guess the p-value is only for that specific lag (i.e 2) w.r.t the target variable, isn't it?
      b) However, when an F-test gets evaluated for Granger causality at lag =2 , does it mean that the p values is for both lag 1 and lag 2 put together in the equation? (since it is F-Test)
      c) Also Sir, rejecting the null hypothesis based on p value of F-Test (for lag=2) only suggests that atleast one of the two coefficients of lags is not equal to 0 . Therefore, ideally shouldn't we also look at t-test results of Granger causality once we have ascertained the p-value of F-Test, in order to conclude which lag(either 1 or 2 or both) play a role in predicting the target variable or not? Because I feel this method of Granger causality is no different from how we interpret OLS model.
      Please let me know your suggestions.

  • @sriadityab4794
    @sriadityab4794 3 года назад +1

    Hi. Your lecturers are really helping me. Thanks a lot.
    I have a question on this topic. Can we use this test to select the features for an LSTM model?

    • @AIEngineeringLife
      @AIEngineeringLife  3 года назад

      Yes you can do that if you have lot of features. But again any statistical test we have to take it with some caution and not rely completely on it

    • @sriadityab4794
      @sriadityab4794 3 года назад

      @@AIEngineeringLife Thanks. You mean to say results given by the test to be considered from a domain perspective?

  • @dimplechutani2768
    @dimplechutani2768 Год назад

    Hi Sir , Have you uploaded your code notebooks somewhere ?

  • @drmearajuddin2334
    @drmearajuddin2334 3 года назад

    If data is stationary is at first difference.. Shall. We have to run granger causality test on differenced data or level data?

  • @hanooltari
    @hanooltari 2 года назад

    Are the ‘p values’ the same as ‘granger causality magnitude’?

  • @bmebri1
    @bmebri1 Год назад

    Right...

  • @siddarama2284
    @siddarama2284 4 года назад +2

    Could you please share me the code for this video?

    • @AIEngineeringLife
      @AIEngineeringLife  4 года назад +4

      Here it is - github.com/srivatsan88/End-to-End-Time-Series/blob/master/Granger_Causality_Test_For_usefulness_of_TimeSeries_in_Forecasting.ipynb