BDSL test: Testing for non-linear dependencies in time series (Excel)

Поділитися
Вставка
  • Опубліковано 25 лип 2024
  • Is there a model that would allow you to potentially predict a time series? What if it is a very complicated non-linear model? The Brock-Dechert-Scheinkman-LeBaron test (BDSL test; or BDS test) is designed just for that! It cleverly combines the insights from probability theory and graph theory to develop a rather simple procedure to test for any dependencies in your data. Today, we are applying this very test in Excel. Econometrics is easy with NEDL!
    Please consider supporting NEDL on Patreon: / nedleducation

КОМЕНТАРІ • 29

  • @NEDLeducation
    @NEDLeducation  3 роки тому +2

    You can find the spreadsheets for this video and some additional materials here: drive.google.com/drive/folders/1sP40IW0p0w5IETCgo464uhDFfdyR6rh7
    Please consider supporting NEDL on Patreon: www.patreon.com/NEDLeducation

  • @chandnirana369
    @chandnirana369 Рік тому +1

    Thank you sir 🙏

  • @richapatel8892
    @richapatel8892 3 місяці тому

    Please suggest on how to check nonlinear dependency in panel data

  • @aishamusa7714
    @aishamusa7714 9 місяців тому

    Hello thank you for this , tplease can you do a video on how to estimate BDS test on eviews ?

  • @Niko-yx7jp
    @Niko-yx7jp Рік тому +1

    Thank you for the video! Do you think BDS test can be done this way with big samples of data?

    • @NEDLeducation
      @NEDLeducation  Рік тому

      Hi Niko, and thanks for the question! Conceptually, this is still the relevant procedure, however Excel is computationally very inefficient with large datasets as all the calculations are quadratic (so with 1,000 data points you will need 1,000,000 calculations, etc.)

  • @RustuYucel
    @RustuYucel 3 роки тому +1

    Do you mind sharing the excel files of this and previous tuts? It will be time saving. Wonderful tut, keep going on!

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      Hi Rustu and glad you liked the video! Please check the Google Drive link in the pinned comment, the file should be there already :)

    • @RustuYucel
      @RustuYucel 3 роки тому

      @@NEDLeducation Thanks!

  • @tristanselm1259
    @tristanselm1259 2 роки тому +1

    Hey thanks so much for this video.
    I still have one question regarding the optimal choice of epsilon. You mention that the optimal choice is 70 %, but I couldn't find that specific value in the original paper by Brock et al. Am I missing something, or is there another source for that value ?

    • @NEDLeducation
      @NEDLeducation  2 роки тому

      Hi Tristan, and glad you liked the video! Excellent question, 70% stems from the idea that the test reaches maximum power when approximately half of pairs of pairs are within the distance and half are not, and if we assume independence, then (70%)^2 = 49% which is approximately a half.

  • @rand0mati0n
    @rand0mati0n Рік тому

    Hey Savva, Just wanted to say thank you so much for this video and others like it. I recently completed my Masters thesis investigating information efficiency of cryptocurrency returns, and your videos were a huge help when it came to deciphering these tests! Best wishes from KCL!

    • @NEDLeducation
      @NEDLeducation  Рік тому

      Hi Alexander, and happy to hear my videos were helpful in your research!

  • @javalemcgee4723
    @javalemcgee4723 3 роки тому +1

    Hi and thanks for your help, you’re amazing!! I wanted to ask what does non linear dependency mean?

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      Hi JaVale, and happy the videos helped! Non-linear dependence implies that there exists some non-linear model that has predictive power over future stock returns, without necessarily specifying what this model is. It is quite nicely related to the concept of deterministic chaos, if you are approaching it from the chaos theory perspective. Hope it helps!

    • @javalemcgee4723
      @javalemcgee4723 3 роки тому +1

      @@NEDLeducation thank you, and what is meant by nonlinear and independent in this case as we are only looking at a single time series?

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      @@javalemcgee4723 Hi, independent here would mean time-independent, i.e., of previous realisations of the variable. Non-linear would mean that there can be a non-linear model that can predict future values of time series. For example, if a series is linearly independent, i.e., a model of form x(t) = a + b*x(t-1) has no explanatory power, a non-linear model of form, e.g., x(t) = a + b*x(t-1) + c*x^2(t-1) (not necessarily polynomial and not necessarily of lag one, any model that uses past variables) can have explanatory power, which would imply non-linear dependence. Hope it helps!

  • @alimsatim6568
    @alimsatim6568 2 роки тому +1

    Hi Sava! I would like to ask you a question. What is the difference between BDS test (1996 in Econometrics, EViews Programme) and BDSL test? And the other question is that a small time series which has 25 years time series (t=25) can be applied this BDS test ? Thank you, have a nice day.

    • @NEDLeducation
      @NEDLeducation  2 роки тому +1

      Hi Alim, and thanks for the question! As far as I know, there is no fundamental difference between the two, the test is the same, it is just the same concept that is being referred to from two different papers (one including LeBaron, hence "L").

  • @javalemcgee4723
    @javalemcgee4723 3 роки тому +1

    Hi, I wanted to know where would I be able to find other datasets like this? Thanks.

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      Hi and thanks for the question! You can get many data series for financial markets free of charge from YahooFinance for example.

    • @javalemcgee4723
      @javalemcgee4723 3 роки тому +1

      @@NEDLeducation Thank you for replying, I really appreciate it. I also wanted to know how You calculated the daily returns too if its not too much trouble. Thanks again.

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      The daily returns are calculated using the usual formula price today/price yesterday - 1.

  • @javalemcgee4723
    @javalemcgee4723 3 роки тому +1

    Hi, what does it mean for the time series to be independent? Thank you.

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      Hi again, and thanks for the question! Independent series, broadly, are those that cannot be predicted from their past values.

    • @NEDLeducation
      @NEDLeducation  3 роки тому

      By the way, the video on approximate entropy is here, check it out if you are interested: ua-cam.com/video/aDFs09eEiAU/v-deo.html

  • @user-ew3rh4vn4c
    @user-ew3rh4vn4c 3 роки тому +1

    What do u think about my result ?
    Percentile 70%
    Epsilon 0.5936%

    N 512
    C1(pairs) 70%
    K(triples) 54.03%

    m=2 (pairs of pairs)
    c2 (pairs of pairs) 51.81%
    c12(pairs in trimmed sample) 69.95%
    difference 2.88%
    variance 0.010103043
    stdev 0.44%
    z-stat 6.4837
    p-value 0.00%

    m=3 (triple of pairs)
    c3 (triple of pairs) 39.53%
    c12(pairs in trimmed sample) 69.92%
    difference -9.35%
    variance 0.025260526
    stdev 0.70%
    z-stat -13.2898
    p-value 0.00%

    • @NEDLeducation
      @NEDLeducation  3 роки тому +1

      Hi, and thanks for sharing your results! This looks legit, seems there are significant non-linear dependencies in your data. Hope it helps!

    • @user-ew3rh4vn4c
      @user-ew3rh4vn4c 3 роки тому

      @@NEDLeducation thanks for the fast response, any idea how to build prediction model based on that results?