Deep statistical forecasting and volatility learning for macro-financial time series.
Project description
MacroVolPy
MacroVolPy is a Python package for deep statistical forecasting and volatility learning in macro-financial time series.
It provides tools for:
- simulated macro-financial uncertainty data
- time-series transformation
- descriptive diagnostics
- CNN forecasting
- LSTM forecasting
- conditional mean-variance volatility learning
- Student-t likelihood
- prediction intervals
- ARIMA and GARCH benchmarks
- rolling-origin validation
- Differential Evolution search
Installation
pip install macrovolpy
For deep learning models:
pip install macrovolpy[deep]
For econometric benchmarks:
pip install macrovolpy[econometrics]
For development:
pip install macrovolpy[dev]
Quick start
from macrovolpy import simulate_macro_series
from macrovolpy import DeepStatForecaster
data = simulate_macro_series(n=360)
y = data['change'].values
model = DeepStatForecaster(
model='cnn',
optimizer='adam',
lookback=12,
)
model.fit(y)
forecast = model.predict(horizon=12)
print(forecast)
Volatility intervals
from macrovolpy import VolatilityForecaster
vol_model = VolatilityForecaster(lookback=12)
vol_model.fit(y)
intervals = vol_model.prediction_intervals(
horizon=12,
levels=(0.80, 0.95),
)
print(intervals)
Citation
This package is based on the methodology introduced in:
Alakkari, K., Abotaleb, M., El-kenawy, E. M., and Mishra, P.
Advanced Deep Statistical Learning Approach for Forecasting Global Economic Policy Uncertainty and Volatility.
Computational Economics.
DOI: 10.1007/s10614-026-11350-7
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file macrovolpy-0.1.0.tar.gz.
File metadata
- Download URL: macrovolpy-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db080d8b60636903ba9abded2d1b3f56a1302e3a5e29395638ffe86031da50f8
|
|
| MD5 |
b824e5adcaa36796d34bedb6e81e2711
|
|
| BLAKE2b-256 |
611a9192e64e6780700f1ee0cc04ea773fe0e5e8378e455b0ec8a0a2baf9ed9c
|
File details
Details for the file macrovolpy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: macrovolpy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5069a282e6ab12c7a08cb01b5b3189646f5b8440b21917a1c11081b8ef53a85
|
|
| MD5 |
33c70f268635b72ea43d4d1a1021301c
|
|
| BLAKE2b-256 |
7effc75ac78beb424a6a71ef51debc92eb40bbdefbbc5b88ba2bff792ee7619b
|