Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- time-series
|
| 5 |
+
- forecasting
|
| 6 |
+
- finance
|
| 7 |
+
- crypto
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# crypto_volatility_forecaster
|
| 11 |
+
|
| 12 |
+
## Overview
|
| 13 |
+
This model utilizes a Time-Series Transformer architecture to predict the volatility of major cryptocurrencies (e.g., BTC, ETH). By processing historical price action and volume data, it forecasts a probabilistic distribution of future price movements over a 24-hour window based on a 7-day look-back period.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
## Model Architecture
|
| 18 |
+
The model implements a specialized **Encoder-Decoder Transformer** designed for sequential numerical data.
|
| 19 |
+
- **Temporal Embedding**: Captures hourly and daily seasonalities.
|
| 20 |
+
- **Distribution Head**: Instead of point forecasts, it outputs parameters for a **Student's t-distribution**, which is better suited for the "fat tails" observed in financial market data.
|
| 21 |
+
- **Context Window ($L$):** 168 hours.
|
| 22 |
+
- **Prediction Horizon ($H$):** 24 hours.
|
| 23 |
+
|
| 24 |
+
The loss function used is the Negative Log-Likelihood ($NLL$):
|
| 25 |
+
$$NLL = -\sum_{t=1}^{H} \log P(x_t | \theta_t)$$
|
| 26 |
+
|
| 27 |
+
## Intended Use
|
| 28 |
+
- **Risk Management**: Estimating potential Value at Risk (VaR) for digital asset portfolios.
|
| 29 |
+
- **Algorithmic Trading**: Providing volatility signals as features for automated execution strategies.
|
| 30 |
+
- **Financial Research**: Studying market regime shifts and anomaly detection.
|
| 31 |
+
|
| 32 |
+
## Limitations
|
| 33 |
+
- **Black Swan Events**: Cannot predict volatility spikes caused by external shocks (e.g., regulatory changes, exchange failures) not present in historical price data.
|
| 34 |
+
- **Stationarity**: Financial markets are non-stationary; the model requires frequent retraining to adapt to new market conditions.
|
| 35 |
+
- **Not Financial Advice**: This model is for research purposes and should not be used as the sole basis for investment decisions.
|