ARIMA Forecasting in R

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • Making #ARIMA #TimeSeries models in #R used to be difficult. But, with the purrr nest() function and Modeltime, forecasting has never been easier. Learn how to make MANY ARIMA MODELS in this tutorial. Here are the links to get set up. 👇
    1. Sign Up to Get the R-Tips Weekly (You'll get access to GitHub Code + NEW R-Tips as they are released): learn.business...
    2. Check out the R-Tips TH-cam Setup Video ( • Setup R Project from G... ).
    Once you take these actions, you'll be set up to receive R-Tips with Code every week. 👍
    THE R-TRACK PROGRAM
    🆓FREE R-TRACK MASTERCLASS: learn.business...
    ==============================
    Learning R is tough, takes a long time, is advanced, is...
    What am I say?! Learning R for business can be fast & fun. Here's how.
    I have a complete system designed to teach you R, Data Science, Advanced Machine Learning, Web App Development, Time Series, & more - all for business. It's insanely powerful. Over 6+ months, learn everything needed to become an R Rockstar for Your Organization.
    👉 Learn more: university.bus...

ความคิดเห็น • 24

  • @georgew7814
    @georgew7814 3 ปีที่แล้ว +1

    are you incorporating the auto.arima() function in the forecast package into your modeltime package?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      Yes, the arima_reg() model spec connects to forecast::Arima() and forecast::auto.arima() depending on the engine you set.

  • @drasko40
    @drasko40 3 ปีที่แล้ว

    Could you explain what is nesting_column? Or is it that "nest" is a function and a nesting_column is predefined? Thanks

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      Hey, nested columns are just columns that contain a complex data structure stored inside of lists. Typically data frames, which is what modeltime stores.

  • @alvaromorales6828
    @alvaromorales6828 3 ปีที่แล้ว

    How do you deal with missing values?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      There are several ways to deal with missing values. The timetk package that I’ve created has padding and imputation capabilities. business-science.github.io/timetk/

  • @maksim0933
    @maksim0933 3 ปีที่แล้ว

    why forecast on plot 1_38 insensitive to wavering? Just a straight line

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      That’s the downside of auto arima. You need to use better methods if you expect better results.

    • @maksim0933
      @maksim0933 3 ปีที่แล้ว

      @@BusinessScience thank you for your reply, and one more question: is it possible to combine your method with prophet package? I mean, instead of auto.arima from forecast package use prophet?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      Yes - I teach ARIMA, Prophet, Prophet Boost (my invention), Machine Learning & Deep Learning in my Time Series Course. university.business-science.io/p/ds4b-203-r-high-performance-time-series-forecasting

    • @janiobachmann5029
      @janiobachmann5029 3 ปีที่แล้ว

      Also, this is due because the model was not able to capture seasonality. When Matt talks about more advanced concepts one that will definitely help your models is the concept of "Feature Engineering", this will better help your model capture seasonality. These concepts I learned in the time series course of Matt (Note I am not a sponsor), I am just a student of Matt who enjoys taking his courses!

  • @Miyazaki97
    @Miyazaki97 3 ปีที่แล้ว

    How can I include modeltime_calibrate to get the confidence interval in the nested model_table?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว +1

      This is pretty easy to do. When you calibrate, just use modeltime_forecast() and you can get the confidence intervals.

    • @Miyazaki97
      @Miyazaki97 3 ปีที่แล้ว

      Thank you for your kind reply. This is what I did but it didn't work.
      mutate(nested_forecast = map2(fitted_model, nested_column, .f = function(arima_model, df){
      modeltime_table(
      arima_model
      ) %>%
      modeltime_calibrate(df)%>%

      modeltime_forecast(
      h = 30, conf_interval = 0.95, actual_data = df, keep_data = T)
      I am sorry I am not familiar with nesting. Could you please help me?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      I think the map and nested structure is throwing you off. Simply the problem. Just do one without the nest - see if you can get the CI. Then turn it into a function that you can map.

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      One more thing - the docs exist to help you. Qbusiness-science.github.io/modeltime/

    • @Miyazaki97
      @Miyazaki97 3 ปีที่แล้ว

      Thank you for your enormous support and guidance.

  • @kunalsatpute8379
    @kunalsatpute8379 3 ปีที่แล้ว

    what was the accuracy of the model?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว +1

      There were 7 models. The accuracies can be obtained by splitting each iteration and evaluating with modeltime_accuracy(). This is just a quick R-Tip, so I didn't go into the details there. Also, the accuracy can be vastly improved. We're using pretty simple techniques (ARIMA) here, but machine learning offers a BIG improvement. With our Nostradamus Auto-Forecasting app, we were getting around 5000 RMSE on this data. Simple ARIMA is probably on the order of 10,000+ (much worse).

  • @sulochandhungel
    @sulochandhungel 3 ปีที่แล้ว

    Links?

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      Which links do you need?

    • @sulochandhungel
      @sulochandhungel 3 ปีที่แล้ว

      @@BusinessScience the video says there are links on the description.
      I also wanted to see if this course would be helpful to understand stochastic hydrology and time series. I'm having trouble finding a r based course on that.

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      @@sulochandhungel Sorry - Just added the links. You can check out the R-Track here. university.business-science.io/p/5-course-bundle-machine-learning-web-apps-time-series/

    • @BusinessScience
      @BusinessScience  3 ปีที่แล้ว

      Time Series Course Here: university.business-science.io/p/ds4b-203-r-high-performance-time-series-forecasting