Submitted:
14 May 2025
Posted:
15 May 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Research of the Problem
3. Literature Review
3.1. Difference in my Work
3.2. Goal of the Project
4. Theoretical Background


- Looks to last k days(example: 90);
- Generates one or couple of possible next values;
- Repeats the process many times(example: 500 times);
-
The obtained trajectories are calculated:
- a.
- VaR - quantile;
- b.
- CVaR - average all values which under the VaR.
5. Methodology
5.1. Data
5.2. Model Structure
5.3. CVaR and VaR Estimation
5.4. Comparison Methods
- Historical Simulation: risk measures are calculated directly from past returns, assuming the future will behave like the past.
- Monte Carlo Simulation: uses normally distributed returns based on historical mean and variance.
5.5. Parameter Tuning
5.6. Implementation
- PyTorch for model construction and training,
- NumPy and Pandas for data processing,
- Matplotlib and Seaborn for visualization,
- Optuna for hyperparameter tuning.
6. Results and Discussion
6.1. CVaR Estimation Results
| Method | CVaR (5%) | CVaR (1%) |
|---|---|---|
| Historical Simulation | –2.45% | –4.21% |
| Monte Carlo | –2.68% | –4.57% |
| Diffusion Model | –3.12% | –5.14% |
6.2. VaR Coverage and Backtesting
| Method | VaR (5%) Coverage | VaR (1%) Coverage |
|---|---|---|
| Historical Simulation | 7.1% | 1.9% |
| Monte Carlo | 6.8% | 1.6% |
| Diffusion Model | 5.2% | 1.1% |
6.3. Visualizations



6.4. Discussion
References
- Wang, M., Liu, Y., & Wang, H. (2024). Expected shortfall forecasting using quantile regression and generative adversarial networks. Financial Innovation, 10(1), 1–20. [CrossRef]
- Sicks, R., Buch, R., & Kräussl, R. (2021). Estimating the Value-at-Risk by Temporal VAE. arXiv preprint arXiv:2112.01896. [CrossRef]
- Buch, R., Sicks, R., & Kräussl, R. (2023). Estimating the Value-at-Risk by Temporal VAE. Risks, 11(5), 79. [CrossRef]
- Fatouros, G., Giannopoulos, G., & Kalyvitis, S. (2022). DeepVaR: A framework for portfolio risk assessment leveraging probabilistic deep neural networks. Digital Finance, 5, 135–160. [CrossRef]
- Ho, J., Jain, A., & Abbeel, P. (2020). Denoising diffusion probabilistic models. arXiv preprint arXiv:2006.11239. [CrossRef]
- Rasul, K., Becker, S., Dinh, L., Schölkopf, B., & Mohamed, S. (2021). Autoregressive denoising diffusion models for multivariate probabilistic time series forecasting. arXiv preprint arXiv:2101.12072. [CrossRef]
- Bond-Taylor, S., Leach, A., Long, Y., & Willcocks, C. G. (2021). Deep generative modelling: A comparative review of VAEs, GANs, normalizing flows, energy-based and autoregressive models. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(11), 7327–7347. [CrossRef]
- Tobjork, D. (2021). Value at risk estimation with generative adversarial networks (Master’s thesis). Lund University. https://lup.lub.lu.se/luur/download?func=downloadFile&recordOId=9042741&fileOId=9057935.
- Acerbi, C., & Szekely, B. (2014). Back-testing expected shortfall. Risk, 27(11), 76–81.https://www.msci.com/documents/10199/22aa9922-f874-4060-b77a-0f0e267a489b.
- Cont, R. (2001). Empirical properties of asset returns: stylized facts and statistical issues. Quantitative Finance, 1(2), 223–236. [CrossRef]
- Khan, R. R. Mekuria and R. Isaev, “Applying Machine Learning Analysis for Software Quality Test,” 2023 International Conference on Code Quality (ICCQ), St. Petersburg, Russian Federation, 2023, pp. 1-15. [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).