Skip to content

This project applies classical time series decomposition and forecasting methods to monthly airline passenger data for the United States in the 1950s. The objective is to analyze passenger trends and seasonality, build an appropriate forecasting model, and evaluate its predictive accuracy for the year 1960.

Notifications You must be signed in to change notification settings

SuryaPrakashJ123/Time-series-forecasting-with-the-decomposition-technique

Repository files navigation

<title>Airline Passengers Time Series Forecasting Project</title>

Time Series Forecasting with Decomposition: US Airline Passengers Dataset

Project Overview

This project applies classical time series decomposition and forecasting methods to monthly airline passenger data for the United States in the 1950s. The objective is to analyze passenger trends and seasonality, build an appropriate forecasting model, and evaluate its predictive accuracy for the year 1960.

Dataset Description

  • Source: Public monthly airline passengers data (US, 1949–1960), a standard dataset for time series analysis.
  • Variables: Month (Jan–Dec), Year (1949–1960), Number of passengers per month.
  • Sample Size: 144 months (12 years × 12 months).
  • File Provided: Air-passengersdata.xlsx

Monthly Passengers


Figure 1. Monthly Airline Passengers in the US (1949–1959): Clear trend and strong seasonality are visible.

Analysis Approach

  • Calculated 12-month moving averages to smooth the trend.
  • Computed centered moving averages for seasonal effect estimation.
  • Estimated monthly seasonal indices using the ratio-to-moving-average method.
  • Deseasonalized the time series and fitted a linear trend to the deseasonalized data.
  • Produced monthly forecasts for 1960 and recomposed to the original scale using seasonal indices.
  • Evaluated model accuracy using MAE and MSE.

MA and Seasonal Ratio


Figure 2. Calculation of 12-Month Moving Average, Centered MA, and Seasonal Ratio.

Seasonal Indices


Figure 3. Monthly Seasonal Indices (multiplicative factors for each month).

Trend and Seasonality Detection

Trendline Fit

Figure 4. Scatter plot of deseasonalized values and linear trendline (high R²).

The series shows a strong upward trend and pronounced annual seasonality. Multiplicative decomposition is appropriate as seasonal amplitude increases over time.

Forecasts and Model Performance

Forecasts Table


Figure 5. Forecasted passengers for 1960, actuals, and error metrics.

MAE MSE Table


Mean Absolute Error (MAE) = 16.65  |  Mean Squared Error (MSE) = 580.75

Key Insights & Recommendations

  • Clear upward trend in passengers and strong month-to-month seasonality (especially July–August peaks).
  • Multiplicative decomposition is effective for capturing variable seasonal effect.
  • Model provides accurate predictions (low MAE/MSE) and can inform resource planning.
  • Recommend regular model updates and validation against new actuals.

Limitations & Assumptions

  • No adjustment for external events or shocks (e.g., strikes, economic downturns).
  • Assumes trend and seasonality continue into the forecast year (1960).
  • Model does not detect outliers.

Conclusion

Classical time series decomposition with a multiplicative approach gave accurate and interpretable forecasts for airline passenger numbers. This method is suitable for similar demand forecasting tasks in business analytics, especially where seasonality grows with volume.

About

This project applies classical time series decomposition and forecasting methods to monthly airline passenger data for the United States in the 1950s. The objective is to analyze passenger trends and seasonality, build an appropriate forecasting model, and evaluate its predictive accuracy for the year 1960.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published