Video není dostupné.
Omlouváme se.

AR Model Code Example : Time Series Talk

Sdílet
Vložit
  • čas přidán 15. 08. 2024
  • How do we fit an AR model to real data?
    AR Model Theory Video: • Time Series Talk : Aut...

Komentáře • 56

  • @ChungXlan
    @ChungXlan Před 2 lety +8

    I started learning about time series by myself as an adult about 4 years ago.
    Bought books from amazon but never truly understand the concept behind it, most books just list a bunch of formula.
    But after watching many of your videos, I realised it is the way of teaching that make things difficult.
    Sir, you are an exceptional teacher. I truly believe you will excel in all of your future endeavours.
    I hope the channel will keep running for as long as possible, and many others including myself will be able to learn from you.
    Thank you so much!

  • @nicok3345
    @nicok3345 Před 4 lety +15

    Many thanks for uploading these videos. They are outstanding! I really enjoyed all of your videos so far and I cannot wait to see more of your videos. I would love to see something about ARMAX (and the insertion of exogenous variables into the models in general) and maybe something more about the probabilistic/confidence of the predictions.

  • @aayushit1513
    @aayushit1513 Před 2 lety +2

    Thank you so much for the content, they really help us understand these concepts better. It would be even more helpful if you could please provide links to the code in the description.

  • @prisiv
    @prisiv Před 4 lety +2

    Hi, just wanted to say how useful your videos are. really appreciate its both practical and has a good level of intuition/theory. looking forward to your next uploads!

    • @iidtxbc
      @iidtxbc Před 4 měsíci

      We need to recognize that some authors prioritize fame over ensuring their books are easily understood by readers. For them, the primary goal may be gaining recognition rather than ensuring their content is accessible and comprehensible to their audience.

  • @teegnas
    @teegnas Před 4 lety

    Was actually waiting for a video release from your Time-series playlist ... and here is one!

    • @teegnas
      @teegnas Před 4 lety

      @@ulf1 well I have been following his videos for quite some time now!

  • @040040919
    @040040919 Před 3 lety +2

    Wow 50k! Well done.
    I remember when you had 8k followes and I was wondering why doesn't this guy get more followes?!
    On the right track mate. I'll write another comment when you hit 500k :)

  • @vincentnaayem
    @vincentnaayem Před 3 lety +1

    You saved my semester thank you

  • @cedrictchounkeu5219
    @cedrictchounkeu5219 Před rokem +2

    thanks for the vido
    Once the PACF graph is drawn and we see the lags we can consider for the AR model, what code do we use to get our model done only with those lags and not those within the error zone???

  • @Joe-oq2eb
    @Joe-oq2eb Před 3 lety +7

    Great videos, thank you. Could you explain how you would remove the lags with a high 'P' number from the final model? Thanks again

  • @nickkoprowicz4831
    @nickkoprowicz4831 Před 4 lety +7

    Why didn't you have to address the seasonality before fitting the model? I thought the data had to be stationary before fitting any models?

    • @jacobm7026
      @jacobm7026 Před 3 lety

      That's why his predictions weren't great. He didn't address seasonality. But the point was just to show you AR models. He'll do that in future vids

  • @GiulianoTaddei
    @GiulianoTaddei Před 4 lety +4

    In my econometrics class it was recommended to only consider lagged values within a year- since anything beyond could be due to chance

    • @willemhekman1788
      @willemhekman1788 Před 8 měsíci

      But what if there is a yearly pattern? Or bi-yearly pattern? Then you'd miss that right? Doesn't make much sense to me. What was the argument?

  • @yushuangluo8006
    @yushuangluo8006 Před 3 lety +5

    Is it possible to skip the lag 2 in the AR(3) model?

    • @efradgalio3178
      @efradgalio3178 Před 2 lety +2

      did you already got the answer? I'm curious

  • @ronennakash4484
    @ronennakash4484 Před 3 lety +5

    How do you exclude the high P-Value lags? can you show the command syntax?

  • @alteshaus3149
    @alteshaus3149 Před 3 lety +2

    Got a simpler way to make train and test data:
    train_end = int(len(df)*0.7)
    train_data = df.iloc[:train_end]
    test_data = df.iloc[train_end:]
    It splits the dataset into two sets, each 70% of the dataset and 30%

    • @MO-xi1kv
      @MO-xi1kv Před 2 lety

      You are dealing with timeseries data with a nicely typed datetime column. In this context showing intent (which specific date you are considering for the test) I would argue is much clearer.

  • @tinyasira6132
    @tinyasira6132 Před 2 lety +1

    Hi can you or anyone tell me what is high n low frequency of data or obeservation?

  • @hongjiang3399
    @hongjiang3399 Před rokem +1

    Ritvik, really like your videos, could you share the notebook for the AR model? I cannot found it in your github link. Thank you!

  • @jeeves31415
    @jeeves31415 Před rokem +2

    How do you "exclude" certain lags from the tsa ARMA function - does it have a parameter for that or something? For example you determine lags 2, 4 & 5 are insignificant yet when you call ARMA(7,0) it still does all 7. Thanks

    • @magnus.discipulus
      @magnus.discipulus Před rokem +1

      +1!

    • @jeeves31415
      @jeeves31415 Před rokem

      Following up - how do we exclude particular lags from the model? At around 5:50 you determine lag 2 is not significant yet can we explicitly exclude that?

    • @rameshh3821
      @rameshh3821 Před 2 měsíci

      @@jeeves31415 Hi. I found that we can drop lag2 by going ahead with AR(1,3) model. It excludes lag 2.

  • @gonzalosurribassayago4116

    Hi, good video Where can I get the data set?

  • @forrest715
    @forrest715 Před 4 měsíci

    How to exclude lag 2 from the AR(3) model?

  • @sohailhosseini2266
    @sohailhosseini2266 Před rokem

    Thanks for sharing!

  • @onerandomvariable
    @onerandomvariable Před 3 lety +2

    Lag 2 is not a good predictor since p-value is high. Will we just drop lag 2 and proceed with the rest of the equation as the final equation? I thought we need to re-run on just lag 1 and 3 and it will change the coefficient of the equation and then only we can use that equation. If yes, could you please tell how to run AR(3) Model and not include lag 2?

    • @tomislavprimorac1050
      @tomislavprimorac1050 Před 3 lety

      I've been trying to figure this out as well, but with no success

    • @JH-py9wf
      @JH-py9wf Před 27 dny

      @@tomislavprimorac1050 To not include lag2 in the model, you'd create lag 1 and lag 3 variables manually (by shifting the original data). Then we use an ARIMAX model where p=0, q=0 and the exogenous variables are the lag1 and lag3 variables you created

  • @josequinonez3079
    @josequinonez3079 Před 4 lety

    Great videos!

  • @luizscheuer670
    @luizscheuer670 Před 3 lety +3

    "Not great but not terrible". Someone watched Chernobyl.

  • @justsaying8753
    @justsaying8753 Před rokem

    Could you show how to program the final model? Please.

  • @jongcheulkim7284
    @jongcheulkim7284 Před 2 lety

    Thank you.

  • @programmingwithjackchew903

    hi let say i only want to include lags 1,2,3, and 7, if I put 7 in order(7,0) will it take all lags starting from 1 to 7?

  • @al38261
    @al38261 Před rokem

    Many thanks!

  • @SESHUNITR
    @SESHUNITR Před rokem

    One question: Where exactly are we including the lags based on the threshold(0.05). I couldn't find any updated equation in the video.

  • @aanandkautilya
    @aanandkautilya Před rokem

    Excellent,Link to code please !

  • @srushtithorat6637
    @srushtithorat6637 Před 22 dny

    the lag are months or days?

  • @realcirno1750
    @realcirno1750 Před 2 lety

    tysm bruh

  • @adityaagrawal4632
    @adityaagrawal4632 Před rokem

    can you please provide the code

  • @no_life_wth_leafras949
    @no_life_wth_leafras949 Před 4 měsíci

    where the file at ?

  • @eric32145
    @eric32145 Před rokem

    hey Ritivik it would be good if u could make available the python code .
    thanks :)

    • @physicsfaith
      @physicsfaith Před 7 dny

      Type it out... you'll learn with all your senses not just the eye!

  • @41_ahwaszargar73
    @41_ahwaszargar73 Před 2 lety

    HELLO SIR I AM A FREELANCE ENGINEER WHO MAKES MONEY BY MAKING PROJECTS BASED ON CLIENT NEEDS
    I WOULD LIKE TO ASK YOUR PERMISSION TO USE YOUR CONTENT AND TO USE YOUR CODE TO LEARN AND MAKE DIFFERENT PROJECTS.I WONT BE SELLING YOU CONTENT TO ANY WEBSITE