Icon

JKISeason3-14_sryu

Forecasting Avocado Prices


Level: Medium

Description: You are a data scientist asked to analyze an avocado dataset by your team. The task at hand is to pick a specific avocado type in the whole of the US and forecast its daily average prices. To do that, you should train, apply, and score an ARIMA model. Do you see any seasonality in the line plot or autocorrelation plots? Do you think a seasonal ARIMA (SARIMA) would perform better? For your model, visualize forecasts and compute scoring metrics.

Annotations and comments
  • ARIMA (Parameters optimization)
  • Optimized parameters of ARIMA p = 4 , d = 0 , q = 4
  • SARIMA (Parameters optimization)
  • Optimized parameters of SARIMA p = 2 , d = 2 , q = 1 P = 2 , D = 1 , Q = 1
  • Prediction with optimized model (SARIMA, p=2, d=2, q=1, P2, D=1, Q=1)
  • read data
  • Mean AveragePrice
  • round & rename
  • RMSE
  • Optimization by TPE p: 0-5 P=0-2 d:0-2 D=0-2 d:0-5 Q=0-2
  • Optimization by Brute Foce p: 0-5 d:0-2 d:0-5
  • 0: ~2017/3 1:2017/4~2018/3
  • organic
  • Predicts two years into the future
  • RMSE ascending
  • ARIMA_Parameter _Search_Result.
  • SARIMA_Parameter _Search_Result.
  • Save Results
  • Visualization of parameter optimization results (ARIMA)
  • Visualization of parameter optimization results (SARIMA)

Nodes

Extensions

Links