Time series forecasting in stata - ARIMA Models Part 3

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 111

  • @JDEconomics
    @JDEconomics  3 роки тому +8

    Hello Everyone! Thanks for Watching!
    🌐Video 1: ARIMA models in STATA - Part 1: Identification
    Link: ua-cam.com/video/pquD3OjeLFU/v-deo.html
    🌐Video 2: ARIMA models in STATA - Part 2: Estimation
    Link: ua-cam.com/video/mPDNH-rA4OQ/v-deo.html
    ✅ Patreon: Support my channel for more content creation and get special deals and members bonus (such as help in your research and material downloads): www.patreon.com/JDEconomics
    ✅ Get the DO files + Slides + Dataset at: payhip.com/b/Mj2v
    ✅ The tutorial is also available in EViews: ua-cam.com/video/ukGJ0sLgbqI/v-deo.html
    ✅ Subscribe to my channel by clicking: ua-cam.com/channels/5P21WGFO4WRUlAiGLcwymg.html
    ✅ You can get access to all the EViews Workfiles, DO files (STATA) and Slides from my videos at: payhip.com/JDEconomics
    Thanks a lot!
    JD Economics.

    • @alikaraca163
      @alikaraca163 10 місяців тому

      Hello. Can we do this forecasting for the ARIMAX model which refers to a set of (exogenous) independent variables for a single regression (and single dependent variable)?

  • @bulelanjemla7894
    @bulelanjemla7894 Місяць тому +1

    I have watched almost all your videos and they are good. I used your two videos on VAR model using Stata and I literally followed your guide for my time series project. I am now studying for my exams and your videos have made this course more fascinating than my course at uni has done. Thank you sir!🙇‍♀️

    • @JDEconomics
      @JDEconomics  Місяць тому

      Great to hear! I wish you good luck at Uni! Cheers, JD

  • @upamanyubhattacharya3763
    @upamanyubhattacharya3763 10 місяців тому +1

    I am really thankful to you for uploading these videos on time series which helped me to get a new job as a research assistant. From India.

    • @JDEconomics
      @JDEconomics  10 місяців тому +1

      Thanks so much for your kind words! I wish you good luck! Best, JD

  • @rorycurrrie8838
    @rorycurrrie8838 8 місяців тому +1

    This video has been a life saver. Thank you so much!

  • @zerinjannat
    @zerinjannat 3 роки тому +3

    Thank you so much for your videos on ARIMA. I learned so much and now can use it to write my paper. Many thanks and please keep on making more videos. Will be waiting for them.

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

      Hello Zerin! Thanks for your message. I am happy to hear my video was able to help you! Definitely feel free to subscribe to get notified of new tutorials and feel free to share my UA-cam Channel with anyone you think may be interested! Best regards and good luck on your paper! JD

  • @emikeanoghena-bello9859
    @emikeanoghena-bello9859 Рік тому +1

    If I get an A in this course, sir, just know you were part of it. Watched all three videos. Thank you so much sir!!!

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

      Great! Let me know how it goes! I wish you good luck. Please feel free to share my channel with your friends. Best, JD

  • @arbitachakraborty1637
    @arbitachakraborty1637 Рік тому +3

    Thanks a ton for these videos. All 3 of them were super helpful. You made my life easy. Very grateful!!!!

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

      My pleasure! Thanks for your positive feedback! Please feel free to share my channel with your close ones and don’t forget to check my website. Www.jdeconomics.com
      Best regards,
      JD

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

    I would like to thank you for this clear and helpful explanation for ARIMA process

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

      My pleasure! Thanks a lot for your kind feedback! I wish you very good luck! JD

  • @sralaophoneshop5028
    @sralaophoneshop5028 Місяць тому +1

    Thank you so much from Cambodia.

    • @JDEconomics
      @JDEconomics  Місяць тому

      @@sralaophoneshop5028 no problem! Cheers

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

    Impressive. Thanks for sharing the knowledge

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

      Thanks for your kind feedback! Wish you good luck!

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

    Thank you so much for such a brilliant video!! Easy to understand and follow. 100 thumbs up! 👍👍👍👍👍👍👍👍👍

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

    Many thanks for the videos. They are very helpful.

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

      Thanks for your comment! Make sure to visit my website www.jdeconomics.com

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

      @@JDEconomics You are doing a great job.
      Please, I have a question.
      If a time series variable has unit root, and the autocorrelation and the partial autocorrelation graph of the 1st difference of the render all lags within the confidence bound, how would the orders of the AR and MA component of an ARIMA model for such a variable be determined? Would it be necessary to consider the 2nd difference variable?

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

    you are just great

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

    Great videos, quite helpful and remarkably organised. It would be great to watch video on SARIMA model, how to identify (at least)

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

      Thanks! And yes! Hopefully soon. Regards, JD

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

    Excellent video! Thank you.

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

      Glad you enjoyed it! Regards, JD

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

    this video is amazing., thanks

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

      Thanks for your comment! I am glad it helped you. Best regards, JD

  • @ThinhNguyen-nt8sg
    @ThinhNguyen-nt8sg 3 роки тому +2

    Thank for your video, it's useful for me to finnish my study. I hope you can product more videos about economists such as Arch, Garch...

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

      Thanks for your message and feedback! I will be submitting more videos shortly! Next topic is cointegration. Feel free to subscribe for more content!
      Regards,
      JDEcon.

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

    Thank you for the detailed explanation of videos. I have followed all the method as suggested in your three videos. I have used the command "predict fbn, y dynamic(2022)" as I need to predict the yearly data of my variable from 2022. It did generate a new column "fbn" but it did not generate any values from 2022 to 2031 for ten years and all the rows were blank. I am not sure what was the issue.
    Could you please suggest me with any solution to fix this issue. Thank you so much.

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

    Commands estat aroots and
    tsappend, add(5) are not working for me, what shall I do?

  • @v.bakhriddinov
    @v.bakhriddinov 2 роки тому

    very helpful tutorial video. Thanks a lot!

  • @abalhassanesilahi9466
    @abalhassanesilahi9466 11 місяців тому +1

    EXCELLENT

    • @JDEconomics
      @JDEconomics  11 місяців тому

      Thanks a lot! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck in your studies/work!

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

    Thank you so much! very helpful video series!!

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

      Thanks! Please feel free to check my website: www.jdeconomics.com
      Regards!

  • @riyandisaras
    @riyandisaras 3 роки тому +3

    Hello, greeting from Indonesia.
    Thank you so much for your videos on ARIMA. It helped me so much, however when I run same command ( in forecast part ), I didnt get the same result like yours. a forecast line, isn't behave like actual, and it shows resid only. could you please advise ?

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

      The command may be running on the differenced series. I suggest you estimate the model, use the predict command after the arima command, and use "predict y,y ". See if that works. However, I do suggest you to check the arima posestimation manual which has a lot of useful information: www.stata.com/manuals/tsarimapostestimation.pdf
      Best Regards,
      JDEcon.

  • @sarita.paudel
    @sarita.paudel 2 роки тому +1

    Thank you! How can we add confidence intervals to the forecast?

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

      No worries! there is no easy way to generate the confidence bands. You can always get the standard error of the forecasts and create the upper bound and lower bound manually. Yet, it doesn't work great. Regards,

  • @santanaaji09
    @santanaaji09 3 роки тому +3

    Hi thank you so much for the series of ARIMA videos you have shared. They help me a lot on my dissertation. But one thing to ask, after we finally find the best ARIMA model from stage 1-3, so where is the continuity from having a good ARIMA model to the forecasting process? Am I missing something here? Thank you so much!

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

      Hi, thanks for your feedback. There are only 3 tutorials. The arima that has the most desirable properties among all of those you identified is the one you should use to forecast. Regards, JD

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

      @@JDEconomics okay i got it finally. So i need to generate the best model of ARIMA first before start to forecast. Thx Juan!

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

      @@JDEconomics Hi Juan, do you have any example on doing Interrupted Time Series using ARIMA with multiple independent variables?

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

      Hey, no. Sorry

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

    Hello JDeconomics. What if I have the import of beef as a dependent variable and my independent variables are the production of beef and the exchange rate. I am using time series annual data. Should I take into account all of them to forecast or only I can focus on my dependent variable only?

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

      Hi! An Arima model is not appropriate for what you want to do. Linear regression or var model. Regards

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

    Dear Juan. If I want to forecast a dependent variable by adding factors (independent variables)that can affect the dependent variable, which command should I use to predict? Are the identification and estimation processes the same as not including independent variables? Thank you so much for your help. 🙏🙏🙏

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

    rlly useful for me thx!

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

    Excellent video ... Could you make other videos about ARCH, GARCH, EGARCH, etc, and the Vector Autorregressive Models??? Thanks a lot about this very useful theme.

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

      Hello Carlos, Thanks for your message. I have a video about Vector Autorregressive models in Stata. The link is: ua-cam.com/video/I2IpCRfi7ts/v-deo.html
      The tutorial is also available in Eviews. I will get into the other topics shortly (Garch, Arch, etc). Lastly, feel free to check my website: www.jdeconomics.com where you have all the tutorials available in an organized way so you can find them easier.
      Subscribe to my channel (if you haven't) so you get notified of the new videos.
      Kind Regards,
      JD.

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

    Thanks!! You are great!

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

      Thanks Sona! I am glad you find it useful. Beat regards, JD

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

    @JD Economics, how do I add 95% confidence interval to my forecasted model?

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

      Hey! I don’t have the code, or know how to add a confidence interval to the forecast in Stata. Regards

  • @aleesh30
    @aleesh30 3 роки тому +5

    Hello. Thank you so much for your videos! they're helping me with my dissertation. One question please; when we perform forecasting do we use the raw data of cpi or the first difference of it? i.e. while typing the command arima cpi, arima(1,1,1). is cpi the normal one or d.cpi? thanks a bunch.

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

      Hello! Thanks for your comment. It’s doing it on the raw data. You can use the command xb (instead of y) to obtain the differenced mean equation. Here is the link for the predict command of ARIMA models. www.stata.com/manuals/tsarimapostestimation.pdf . Best regards, JD

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

      @@JDEconomics Thank you for your timely reply! Last thing please. if our series is non-stationary, and we find that taking the first difference makes it stationary, we will have to run the arima with d.cpi right? or do we stick with cpi.

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

      @@aleesh30 no, because if you use d.cpi and for example arima(1,1,1), you are telling stata to difference once the variable d.cpi. Meaning: You are differencing a differenced variable. I hope that helps to clarify)

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

      @@JDEconomics omg yes! thank you. You just saved my thesis!

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

      Lol. Glad to hear so. Feel free to get me a coffee if you do well! Lol. I wish you good luck! Best regards

  • @alipaf2002
    @alipaf2002 27 днів тому

    How can we do BG test ARIMA after estimation?

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

    I appreciate your tutorials. Please, I want to know the author of the textbook (Time series and applied econometrics).

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

      Thanks for your feedback! I create the content of my tutorials. The literature I use to teach the content is displayed in my website. You can check the recommended literature at the end of the tutorial in the web. Best Regards, JD

  • @ТимБакал
    @ТимБакал 2 роки тому

    Could you possibly help me with the error in stata (option yline() not allowed), u've done it in the part with white noise

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

    Dear sir, how to write the command for daily forecast?

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

      Hi, thanks for your message. You mean the arima command or the predict command?
      You can just try using the following command, "predict y, y". That should create the forecasts. Also, feel free to check the arima postestimation manual which will give you some insights: www.stata.com/manuals/tsarimapostestimation.pdf
      Good luck!
      JDEcon.

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

    Hi, Your videos arehighly informative and helpful. I have a small doubt, for the predict fcpi,y dynamic(m(2021m3)) i have is a unit. So how do i change the code and run? i tried - predict fnet_income(g(3069)), but the g() is not recognised. Can please tell me how to run the code if we have units instead of quarter or month time format.

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

      Hey! Yes, you need to review the syntax. Looks like its wrong your code. Also, I don;t know what g stands for. Good luck!

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

      @@JDEconomics g for generic likewise m for month and q for qurater.
      it will be of great help, if you can help me.

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

    can i help for to get data
    topic thesis are
    the impact of climate change on agriculural product thank you

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

      Hello Karin, I haven't really worked in the past with climate change papers so I am not too familiar with the databases. I know the world bank database has CO2 emissions, which is normally used for climate change research. However, the frequency is yearly.
      Here is the link: data.worldbank.org/topic/19
      Feel free to subscribe if you would like to get notified about the new content I submit!
      Regards,
      JD

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

    Hi, your videos are extremely helpful! just one thing, how do I add confidence band in the forecast in stata?

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

    The only thing I can think of are:
    1- Make sure that estat aroots is a command that exists in stata 12.
    2- Make sure that you are using the command right after estimating the arima nodel.
    Regards

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

    Hello, Juan. Thanks a lot for your videos! Could I ask you please how could be written a command for ARIMA with raw data, if I made the logarithm to stabilize the variance ? Where "Lncpi" could be specified ?

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

      Hi, I am not sure I understand your inquiry. But I think this is what you ar looking for: IF you use the command: *predict, fcpi y* , stata will forecast the variable in levels (regardless of the transformation you did on the data). However, if you use the command: *predict, fcpi xb* Stata will show the forecasts for the transformation. It is all in the manual, in page 3 you have further details. I attached the link for simplicity: www.stata.com/manuals13/tsarimapostestimation.pdf#tsarimapostestimation
      Regards, JD

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

      @@JDEconomics Thank you so much, Juan. Your videos and explanation are really very very helpful, thank you very much! Best wishes for the upcoming holidays 🧑‍🎄

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

      @@dariakravchenko5433 thanks! Merry xmas and happy holidays! JD

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

    Hi thank you for the tutorial. Could you also explain how to forecast using SARIMA model?

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

    Wow Great Explanation ,but i think you must clarify that Eviews shows the inverse roots not the roots itself

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

    AR lags are not significant. Rest all properties work during estimatation. Is that okay to ingore the significance of ar p value

  • @念芸
    @念芸 2 роки тому

    Thank you so much for your video. One question please: because I use the daily data and I set my time with 「gen t =_n」so that my new time series data would be 「t」 and that it starts from 1,2,...,900. How do I type the 「y dynamic(_(__))」about the underline in these two parts? Thanks

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

      I do have the same doubt. Can u explain what needs to be filled. If u have found out urself.

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

    Hello! Will there be a part 4 for this?

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

      Hi, Thanks for your message. There are only 3 videos, one for each stage of the Box Jenkins Method. What did you want me to cover in video 4?
      Regards,
      JDEc,

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

      @@JDEconomics I greatly appreciate your immediate response. It would be great if there would be a tutorial on the forecast command and not the predict command. Or are they just practically the same?
      Because it seems like different ARIMA models would result to the same predict results. Thank you. Subscribed.

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

      @@naokimikoshiba667 hi! Thanks for your message and subscribing! So you use the predict command to forecast periods ahead. Basically the predict command is used after a model estimation. By typing predict “y” we are telling Stata it has to predict the dependant variable (in our case cpi) and using dynamic we are telling Stata it needs to be a dynamic rather than static prediction. For this example, the graph will look very similar among diverse arima models specifications because as you can see the CPI is an increasing line. Any arima model for this case will fit a line. However if you type “browse” you will see that different arima models produce different predictions numbers. I hope that helped!
      Regards, JDEc.

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

    Thank you very much for your valuable videos. Can you please guide me about Multivariate ARIMA models?

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

      I haven't estimated many of those models. I may look into them and make a video some day. Regards, JD

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

    what if p=0 and q=0 ?
    how should I proceed

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

      That’s a random walk. There are no significant patterns. You model that as a random walk y= y(-1) +et
      Regards

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

    Thanks a lot!!1

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

      You're welcome! Please feel free to subscribe to my channel and share it with your friends/social network. I wish you good luck in your studies/work!

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

    "estat aroots"
    invalid subcommand aroots. Can anyone help to solve this problem? Thank you

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

      What’s your stata version?

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

      @@JDEconomics 12.0

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

      Try typing “help estat aroots”

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

      I did and it says no entries found for search on "estat aroots". @@JDEconomics

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

      So do you have any suggestions for that problem? thank you@@JDEconomics