Intro to Time Series

Intro to Time Series Unit 9 – Seasonal ARIMA Models

Seasonal ARIMA models extend regular ARIMA models to handle seasonal patterns in time series data. They incorporate both non-seasonal and seasonal components to capture complex patterns and dependencies, making them useful for data exhibiting regular, repeating patterns over fixed periods. These models combine autoregressive, differencing, and moving average components with their seasonal counterparts. This enables businesses to make informed decisions based on seasonal trends and fluctuations, providing a powerful framework for understanding and predicting seasonal behavior in various domains like economics, finance, and weather.

Got a Unit Test this week?

we crunched the numbers and here's the most likely topics on your next test

What's the Deal with Seasonal ARIMA?

  • Seasonal ARIMA (SARIMA) models extend regular ARIMA models to handle seasonal patterns in time series data
  • Incorporates both non-seasonal and seasonal components to capture complex patterns and dependencies
  • Useful for data exhibiting regular, repeating patterns over fixed periods (monthly sales, quarterly earnings)
  • Combines autoregressive (AR), differencing (I), and moving average (MA) components with seasonal counterparts
  • Requires careful identification of seasonal patterns and appropriate model specification for accurate forecasting
  • Enables businesses to make informed decisions based on seasonal trends and fluctuations (inventory management, resource allocation)
  • Provides a powerful framework for understanding and predicting seasonal behavior in various domains (economics, finance, weather)

The Building Blocks: AR, I, and MA

  • AR (autoregressive) component captures the relationship between an observation and a certain number of lagged observations
    • Assumes the current value depends on its own past values
    • Specified by the order pp, indicating the number of lag terms included
  • I (differencing) component removes the trend and makes the time series stationary
    • Applies differencing operator \nabla to eliminate non-stationarity
    • Specified by the order dd, indicating the number of times the series is differenced
  • MA (moving average) component captures the relationship between an observation and past forecast errors
    • Assumes the current value depends on the past errors or residuals
    • Specified by the order qq, indicating the number of lagged forecast errors included
  • The combination of AR, I, and MA components forms the basis of ARIMA models
  • Orders (p,d,q)(p, d, q) are determined through careful analysis of autocorrelation and partial autocorrelation plots
  • Selecting appropriate orders is crucial for capturing the underlying patterns and achieving accurate forecasts

Seasonality: Why It Matters

  • Seasonality refers to regular, repeating patterns in time series data over fixed periods (yearly, quarterly, monthly)
  • Ignoring seasonality can lead to inaccurate forecasts and poor decision-making
  • Seasonal patterns can arise from various factors (weather, holidays, business cycles)
  • Identifying and modeling seasonality is essential for understanding the underlying dynamics of the data
  • Seasonal components in SARIMA models capture the recurring patterns and improve forecast accuracy
  • Enables businesses to anticipate and plan for seasonal fluctuations (demand planning, resource allocation)
  • Helps in detecting anomalies and unusual behavior deviating from the expected seasonal patterns
  • Seasonal adjustments can reveal underlying trends and facilitate comparisons across different time periods

SARIMA Components Breakdown

  • SARIMA models incorporate both non-seasonal and seasonal components
  • Non-seasonal components:
    • AR(pp): Autoregressive component of order pp
    • I(dd): Differencing component of order dd
    • MA(qq): Moving average component of order qq
  • Seasonal components:
    • Seasonal AR(PP): Autoregressive component of order PP for the seasonal part
    • Seasonal I(DD): Differencing component of order DD for the seasonal part
    • Seasonal MA(QQ): Moving average component of order QQ for the seasonal part
    • Seasonal period mm: The number of periods per season (12 for monthly data, 4 for quarterly data)
  • The complete SARIMA model is denoted as SARIMA(p,d,qp,d,q)(P,D,QP,D,Q)m_m
  • Each component contributes to capturing different aspects of the time series behavior
  • Seasonal components are applied at the seasonal lags determined by the seasonal period mm
  • Interaction between non-seasonal and seasonal components allows for modeling complex patterns and dependencies

Identifying Seasonal Patterns

  • Visual inspection of time series plots can reveal apparent seasonal patterns
  • Seasonal subseries plots display observations from the same season together, highlighting seasonal behavior
  • Autocorrelation function (ACF) and partial autocorrelation function (PACF) plots can indicate seasonal lags
    • Significant spikes at seasonal lags in ACF suggest the presence of seasonality
    • PACF can help determine the order of seasonal AR terms
  • Seasonal differencing can remove seasonal patterns and make the series stationary
    • Applying seasonal differencing of order DD at lag mm eliminates seasonal non-stationarity
  • Statistical tests (Seasonal Kendall test, Friedman test) can formally assess the presence of seasonality
  • Domain knowledge and understanding of the underlying process can guide the identification of seasonal patterns
  • Iterative process of model fitting and diagnostic checks helps refine the identification of seasonal components

Model Selection and Fitting

  • Selecting the appropriate SARIMA model involves determining the orders (p,d,q)(P,D,Q)m(p,d,q)(P,D,Q)_m
  • Iterative process of model specification, estimation, and diagnostic checking
  • Use ACF and PACF plots to identify potential orders for non-seasonal and seasonal components
  • Consider multiple candidate models and compare their performance
  • Estimation methods (maximum likelihood, least squares) are used to estimate the model parameters
  • Information criteria (AIC, BIC) help in model selection by balancing goodness of fit and model complexity
    • Lower values of AIC and BIC indicate better model fit
  • Residual analysis is performed to assess the adequacy of the fitted model
    • Residuals should exhibit no significant autocorrelation and follow a white noise process
  • Cross-validation techniques can be used to evaluate the model's performance on unseen data
  • Iterative refinement of the model based on diagnostic checks and domain knowledge
  • Parsimony principle suggests selecting the simplest model that adequately captures the underlying patterns

Diagnostic Checks: Is Your Model Any Good?

  • Diagnostic checks assess the adequacy and validity of the fitted SARIMA model
  • Residual analysis is a key component of diagnostic checking
    • Residuals should be uncorrelated and normally distributed
    • ACF and PACF plots of residuals should show no significant autocorrelation
    • Ljung-Box test can formally test for residual autocorrelation
  • Normality of residuals can be assessed using histograms, Q-Q plots, and statistical tests (Shapiro-Wilk test)
  • Homoscedasticity (constant variance) of residuals can be checked using residual plots against fitted values or time
  • Overfitting should be avoided by selecting parsimonious models and using cross-validation
  • Stability of model parameters can be assessed by examining their significance and confidence intervals
  • Forecast accuracy measures (MAPE, RMSE) evaluate the model's performance on test data
  • Visual inspection of fitted values against actual values helps assess the model's goodness of fit
  • Diagnostic checks provide insights into the model's limitations and areas for improvement

Real-World Applications

  • SARIMA models find applications in various domains where seasonal patterns are prevalent
  • Retail and e-commerce: Forecasting sales, demand planning, and inventory management based on seasonal trends
  • Finance and economics: Modeling and forecasting economic indicators (GDP, inflation), stock prices, and trading volumes
  • Energy and utilities: Predicting energy consumption, electricity demand, and load forecasting considering seasonal patterns
  • Tourism and hospitality: Forecasting tourist arrivals, hotel occupancy rates, and revenue management strategies
  • Weather and climate: Modeling and predicting temperature, precipitation, and other meteorological variables with seasonal variations
  • Healthcare: Analyzing and forecasting disease incidence, hospital admissions, and resource allocation based on seasonal patterns
  • Supply chain management: Optimizing inventory levels, production planning, and logistics considering seasonal demand fluctuations
  • Marketing and advertising: Planning promotional campaigns and allocating budgets based on seasonal consumer behavior


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.