This Streamlit application provides a comprehensive framework for multivariate time series analysis using Vector Error Correction Models (VECM) and Generalized Autoregressive Conditional Heteroskedasticity (GARCH) modeling. It's designed for economists, financial analysts, and researchers working with cointegrated time series data.
- Data Processing: Upload and preprocess time series data with automatic frequency detection
- Stationarity Testing: Augmented Dickey-Fuller tests with automatic differencing
- Lag Selection: Information criteria-based optimal lag selection (AIC, BIC, FPE, HQIC)
- Cointegration Analysis: Johansen tests for detecting long-run relationships
- VECM Estimation: Full model estimation with customizable deterministic terms
- Impulse Response Analysis: Dynamic response visualization with confidence intervals
- Residual Diagnostics: Comprehensive tests for model validation
- GARCH Modeling: Volatility analysis with multiple GARCH specifications
- Visualization: Interactive plots for all analysis components
- Result Export: Download detailed analysis results in ZIP format
- Upload Data: CSV or Excel files with time series data
- Configure Analysis: Set parameters for VECM and GARCH modeling
- Run Analysis: Automated pipeline performs all analytical steps
- Interpret Results: View detailed outputs and visualizations
- Export Findings: Download comprehensive reports and figures
The application implements a rigorous statistical workflow:
- Data Validation: Checks for time series properties and stationarity
- Cointegration Testing: Identifies long-run equilibrium relationships
- VECM Specification: Estimates adjustment mechanisms and short-run dynamics
- Impulse Response Analysis: Examines system responses to shocks
- Residual Diagnostics: Validates model assumptions
- GARCH Modeling: Captures conditional heteroskedasticity in residuals
- Time series data with at least 2 variables
- Recommended minimum of 100 observations
- Data should be potentially cointegrated (integrated of the same order)
- CSV or Excel format with a date/time index column
# Install dependencies
pip install -r requirements.txt
# Run the application
streamlit run vecmgarch.py