This repository contains a course project for Time Series Analysis, aimed at analyzing the time series of Gross Value Added (GVA) in the Netherlands for the period 2015Q1–2025Q2, as well as building models that can be used for forecasting.
The project covers the entire time series analysis process — from initial data preprocessing, through econometric modeling, to the interpretation of results.
Tools used: Excel, Gretl
The project involved the following stages of analysis:
- Time series decomposition (removing trend and seasonality),
- Data deflation – converting nominal prices to constant prices,
- Model estimation using the classical Ordinary Least Squares (OLS) method,
- Identification and analysis of structural breaks caused by the COVID-19 pandemic,
- Analysis of autocorrelation and properties of the stochastic component,
- Use of dummy variables,
- Construction and analysis of autoregressive (AR) models.
The project is analytical and modeling in nature, providing a coherent foundation for further forecasting work and expansion with more advanced models.
This section presents the key stages of the analysis and the main conclusions.
For a full overview of the project and complete documentation of calculations and models, please refer to the Excel file located in the src folder.
Gross Value Added (GVA) is a measure that indicates how much real economic value has been created in the economy by enterprises, economic sectors, or the entire country during a given period.
The analyzed time series is described by the following variables:
-
$t$ — a variable representing time, -
$GVA_t$ — Gross Value Added in period$t$ .
First-order differencing was applied to remove the trend:
Seasonality was removed using the additive seasonal decomposition method with seasonal indices:
where
The chart illustrates the changes made through trend and seasonality decomposition.
Due to inflation, price levels from several to over ten years ago are lower compared to current prices, which makes direct comparison of observations over time difficult.
Therefore, the series was analyzed in constant prices, using 2016 and 2024 as base years.
For this purpose, official annual GVA values were obtained, and then — using the Solver tool — the value of
which ensures that the sum of quarterly observations matches the official annual value for 2016.
A similar process was carried out to calculate constant prices for 2024.
The charts show the decomposed series in 2016 and 2024 constant prices. This eliminates the impact of inflation, allowing for the analysis and forecasting of real values in constant prices corresponding to today's levels.
To estimate the model that best describes the series, the classical Ordinary Least Squares (OLS) method was used. Additionally, parameter significance tests were conducted to identify coefficients that are statistically significant. The result of these efforts is the following set of models.
| Model | Formula | |||
|---|---|---|---|---|
| Linear | 138918.19 | 2695.59 | ||
| Power | 11.72 | 0.16 | ||
| Exponential | 11.89 | 0.01 | ||
| Quadratic | 157513.54 | 58.97 | ||
| Logistic | 269320 | 0.62 | 0.07 |
The charts visually present the estimated regression models.
In each model, the average rate and velocity were also estimated:
Based on the analysis of residual variance for different models, the quadratic model was selected, as it exhibits the lowest residual variance, indicating the best fit to the data.
| Model | Variance of Errors | Variance [%] |
|---|---|---|
| Linear | 1,80575E+16 | 499,71% |
| Power | 1,59969E+17 | 4426,86% |
| Exponential | 1,00026E+16 | 276,80% |
| Quadratic | 3,6136E+15 | 100,00% |
| Logistic | 9,01535E+17 | 24948,35% |
Conclusion: The quadratic model best describes the analyzed time series, and its residuals have the lowest variance, indicating minimal fitting error.
In 2020, as a result of the COVID-19 pandemic, the Dutch economy experienced a sharp downturn, reflected in significantly lower GVA values.
To account for this unusual, one-time effect in the time series model, a dummy variable was introduced, taking the value 1 during the pandemic period and 0 in the other quarters.
After analyzing the statistical significance of the model coefficients, the following result was obtained.
The chart presents the analysis of the model with a structural break from the onset of the COVID-19 pandemic.
The analysis used seasonal dummy variables and their alternative forms, e.g.,
The charts visually present the series model with alternative dummy variables, along with the results of the Breusch-Godfrey and CUSUM tests.
In all variants, no residual autocorrelation was detected using the Breusch-Godfrey test.
As a result of these steps, the models obtained are well-suited for forecasting, with proper specification maintained and no risk of misrepresentation.
An analysis was conducted to determine whether an autoregressive (AR) or a mixed model would perform better for forecasting.
The model included 12 lagged GVA variables, and the results were analyzed. After variable reduction, it was found that AR models exhibited autocorrelation. However, when alternative dummy variables were used, no autocorrelation was observed.
The charts visually present the series model with alternative dummy variables and lagged explanatory variables, along with the results of the Breusch-Godfrey and CUSUM tests.
This indicates that, for this time series, forecasting is more effective when using models based on alternative dummy variables.









