The qualitative difference between stationary and non-stationary AR(1)

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

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

  • @SpartacanUsuals
    @SpartacanUsuals  11 лет назад +10

    Hi, glad to hear you liked it. I will add that suggestion to my list! Thanks, Ben

  • @tonyfang4970
    @tonyfang4970 2 года назад +2

    Sketched the same thing in Python, hope it helps!
    import numpy as np
    import pandas as pd
    import matplotlib
    import matplotlib.pyplot as plt
    # define each datapoint as a normal r.v.
    def generate_datapoint(params):
    mu = params[0]
    sigma = params[1]
    return np.random.normal(mu,sigma)
    # Set the number of datapoints
    T = 100
    B = pd.Series(index=range(T))
    B.name = 'B'
    for t in range(T):
    # Now the parameters are dependent on time
    # Specifically, the mean of the series changes over time
    params = (t * 0.1, 1)
    B[t] = generate_datapoint(params)
    plt.plot(B)
    plt.xlabel('Time')
    plt.ylabel('Value')
    plt.legend(['Series B']);

  • @JesseMaurais
    @JesseMaurais 11 лет назад +16

    I just mocked up a similar simulation in R, but I animated it, increasing rho by 0.01 from 0 to 1 in each frame, at 2 frames per second, using the same white noise data. Watching how the data changes makes a lot more sense now. Thanks for the videos.

    • @SpartacanUsuals
      @SpartacanUsuals  11 лет назад +1

      Hi Jesse, many thanks for your comment and effort reproducing the above in R. Would you mind sharing it below here? I think some people would potentially be interested to reproduce above in R. Best, Ben

    • @JesseMaurais
      @JesseMaurais 11 лет назад +24

      z = rnorm(1000)
      gen = function(rho) {
      x = numeric(length(z))
      x[1] = z[1]
      for (i in 2:length(z)) {
      x[i] = rho*x[i-1] + z[i]
      }
      x
      }
      display = function(rho) {
      x = gen(rho)
      plot(x, main=as.character(rho))
      lines(x)
      }
      for (it in 1:100) {
      display(it/100)
      Sys.sleep(0.5)
      }

    • @SpartacanUsuals
      @SpartacanUsuals  11 лет назад +2

      Jesse Maurais That's great. Many thanks for this! Am sure it will be useful. Best, Ben

    • @IanBorgessen
      @IanBorgessen 6 лет назад

      Thanks!

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

      @@SpartacanUsuals Sketched the same thing in Python, hope it helps!
      import numpy as np
      import pandas as pd
      import matplotlib
      import matplotlib.pyplot as plt
      # define each datapoint as a normal r.v.
      def generate_datapoint(params):
      mu = params[0]
      sigma = params[1]
      return np.random.normal(mu,sigma)
      # Set the number of datapoints
      T = 100
      B = pd.Series(index=range(T))
      B.name = 'B'
      for t in range(T):
      # Now the parameters are dependent on time
      # Specifically, the mean of the series changes over time
      params = (t * 0.1, 1)
      B[t] = generate_datapoint(params)
      plt.plot(B)
      plt.xlabel('Time')
      plt.ylabel('Value')
      plt.legend(['Series B']);

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

    Amazingly explained. Probably the best video on this topic on internet.

  • @MrScattterbrain
    @MrScattterbrain 5 лет назад +2

    Ben, thank you so much for these videos on time series. And, in particular, for this one. This answered all little confusions and doubts that I used to have.

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

    Wow this is really helpful..ive been really strugling with econometrics at uni..but these videos are so well explained! Thanks so much..Cheers!

  • @luistato7437
    @luistato7437 4 года назад +1

    Ben, you are absolutely mental. I really appreciate this, thanks so much!

  • @alvise2165
    @alvise2165 4 года назад +1

    GREAT Explanation! now is all more clear!

  • @asadkhanbb
    @asadkhanbb 5 лет назад +1

    @Ben Lambert, I got addicted to your videos on Econometrics. Thanks

  • @ljw1419
    @ljw1419 9 лет назад +1

    Really helps, best Time Series Econometrics videos on youtube, thanks !

  • @elfadlaouielfadel932
    @elfadlaouielfadel932 7 лет назад

    you have explained this course very well.thank you very much.

  • @Hatorye
    @Hatorye 5 лет назад

    Yet another amazing video. Thanks, Benny

  • @schnickerfritzel
    @schnickerfritzel 9 лет назад +1

    Hi Ben! thank you for posting this video, helps me clear up my confusion :) Although I do wanna clarify one thing: so does this mean that non stationary AR(1) process is synonymous with random walk process? and it also follows a unit root?

  • @saulmirandaaliaga
    @saulmirandaaliaga 6 лет назад

    Love your videos, mate! Thank you so much!

  • @ThuHuongHaThi
    @ThuHuongHaThi 4 года назад +1

    I basically understand this as: the closer rho is towards 1, the more time it takes for the time series to return to its mean

  • @Konzor
    @Konzor 9 лет назад +1

    hey ben,
    Very helpful videos! Thanks for that!
    But i got a question: is there any playlist which cover the hole time series stuff? Can't find a playlist/course on you channel.

  • @neodrone1
    @neodrone1 10 лет назад

    Great explanation. Thanks!

  • @hedgehog_fox
    @hedgehog_fox 7 лет назад

    Great Matlab demo!

  • @rupikakhanna306
    @rupikakhanna306 11 лет назад

    It was a very useful video for starters. I was wondering if you could post something on ADF and (weak form) stock market efficiency tests.

  • @oscarlu9919
    @oscarlu9919 4 года назад

    I think 4:28-4:41 is some kind of intuition to understand the magnitude of p

  • @nancyaliaga7079
    @nancyaliaga7079 6 лет назад

    You legend! Thank you very much for all your videos!

  • @pedroluque7371
    @pedroluque7371 7 лет назад

    Hi Ben, thanks for your videos!

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

    Thanks a lot for this video!

  • @alexlo6393
    @alexlo6393 6 лет назад +2

    this is a great video!

  • @shreyajain8028
    @shreyajain8028 7 лет назад

    If there are 2independent and 1 dependent variable in a regression and DF test needs to be applied and the significance of the two independent variables is 0 and for dependent variable it is 0.1156. Which of the variables are having unit roots?

  • @johncharles3907
    @johncharles3907 6 лет назад +1

    Can you explain the math again very slowly and clearly? :) Good illustrations!

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

    Hello sir, I am studing the debt sustainability of WAEMU countries. It is said in littterature that when dependent variable which is primary surplus and independent variable which is debt are both stationary this mean that there is sustainability. In my case both are not stationary and this signals unsustainability of debt.
    For my GLS regression I am wondering wether I should take those variables in level or differenced them first?
    Thanks

  • @volkanky
    @volkanky 4 года назад

    I have a question please help me ; I have a export data but ı reach the trend stationary process, so can I use this data for VAR analysis? how can I transform the trend stationary process to sationary process

  • @becoruthia
    @becoruthia 10 лет назад

    Thank you, explained a lot.

  • @alexgold432
    @alexgold432 7 лет назад

    Very good video. The et in the non stationary equation is IID as is the case with the stationary one?

  • @MootBoogie
    @MootBoogie 5 лет назад

    what is Rho in this context? like how is it defined? wow this makes so much sense now, thanks!

  • @Sam-gn6og
    @Sam-gn6og 5 лет назад

    The explanation of the ARX model you gave is very simplistic, would make a Control Engineer cringe. There is a mathematical stability theory behind the difference equations of the parametric models (ARX.....ARIMAX) Econometrists hardly know about

    • @Sam-gn6og
      @Sam-gn6og 5 лет назад

      @Peripo
      They do...if their analysis is to be taken seriously.

  • @Institute.research
    @Institute.research 5 лет назад

    need answer if some variables are at level and others are the first difference so what I can do so can go at first difference or at level and how the equation will

  • @kpatel306
    @kpatel306 9 лет назад

    Hi Ben
    Thanks a lot fort this video.
    I have a query related to statiority test - do we required series to be stationary while doing the linear regression forecasting? e.g. forecasting based on economic variables.
    Thanks
    KP

  • @jacinthdavid1122
    @jacinthdavid1122 8 лет назад

    Can someone explain how we got the conditional means for AR(1) process? Really confused about that.

  • @youngbin0200
    @youngbin0200 6 лет назад

    You re just amazing

  • @graceliao5978
    @graceliao5978 7 лет назад +1

    you're the best

  • @justinlundgren50
    @justinlundgren50 6 лет назад

    Brilliant! Thanks!

  • @louisbatalha8912
    @louisbatalha8912 5 лет назад

    That is great Sir

  • @javierromera1997
    @javierromera1997 4 года назад

    Thank you Ben

  • @urabi3tube
    @urabi3tube 8 лет назад

    I have a question it might be silly but it's very important, why when we analyse time series we use AR model or MA Arima in others words why we use the lagged values as explanatory variables??? please be advice :)

  • @larsahnlandnordfors9170
    @larsahnlandnordfors9170 8 лет назад

    What is rho?

  • @AngshumanPalKolkata313
    @AngshumanPalKolkata313 4 года назад

    You started with X(0) = 0?

  • @Albert-cs1uh
    @Albert-cs1uh 11 лет назад

    really helpfull!

  • @gabriellegall8278
    @gabriellegall8278 7 лет назад

    thank you so much

  • @dudeB15
    @dudeB15 4 года назад

    thank you ben

  • @nabeelsyed5228
    @nabeelsyed5228 7 лет назад

    Hey Ben i have an exam next wednesday, its basically a stats exam and i have no idea what is going on in it, my prof doesnt know how to teach and i was hoping you could help me out please respond, my exam is covering a couple chapters, ill send u the topic when i get my textbook

  • @tempvariable
    @tempvariable 6 лет назад

    thanks