Abstract
We present our work on computing the value at risk (VaR) of a large hypothetical portfolio in the OpenCL programming model on an AMD FirePro V7900 graphics processing unit (GPU). In the computation of the VaR we follow the delta-gamma Monte Carlo approach. The value change of the portfolio within a short time period is approximated by the sum of a linear delta component and a non-linear gamma component. To approximate the distribution of the value change of the portfolio we generate a large number scenarios. From each scenario a loss or gain of the portfolio is calculated by the delta-gamma approximation. All these potential losses and gains are then sorted, from which an appropriate percentile is chosen as the VaR. We implemented this algorithm in OpenCL. The details are discussed and the experimental results are reported.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Advanced Micro Devices, Inc. (AMD) (2013) AMD accelerated parallel processing OpenCL programming guide. http://www.developer.amd.com/appsdk
Box GEP, Muller ME (1958) A note on the generation of random normal deviates. Ann Math Stat 29(2):610–611
Bratley P, Fox BL (1988) Algorithm 659: implementing Sobol’s quasirandom sequence generator. ACM Trans Math Softw 14(1):88–100
Britten-Jones M, Schaefer SM (1999) Non-linear value-at-risk. Eur Finance Rev 2:161–187
Castellacci G, Siclari MJ (2003) The practice of delta-gamma VaR: implementing the quadratic portfolio model. Eur J Oper Res 150(3):529–545
Feuerverger A, Wong ACM (2000) Computation of value-at-risk for nonlinear portfolios. J Risk 3:37–56
Glasserman P (2004) Monte Carlo methods in financial engineering, Chap. 9. Springer, New York
Hull JC (2007) Risk management and financial institutions, Chap. 8, 1st edn. Pearson Education, New Jersey
Hull JC (2012) Options, futures, and other derivatives, Chap. 21, 8th edn. Prentice Hall, New York
Joe S, Kuo FY (2008) Constructing Sobol sequences with better two-dimensional projections. SIAM J Sci Comput 30(5):2635–2654
Khindanova IN, Rachev ST (2000) Value at risk: recent advances. In: Handbook on analytic-computational methods in applied mathematics. CRC Press LLC, New York
Khronos Group: OpenCL (Open Computing Language). http://www.khronos.org/opencl/
Sobol’ IM (1967) On the distribution of points in a cube and the approximate evaluation of integrals. USSR Comput Math Math Phys 7(4):86–112
Acknowledgments
This work was supported by the Xi’an Jiaotong-Liverpool University (XJTLU) Research Development Fund under Grant 10-03-08.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2015 Springer Science+Business Media Dordrecht
About this paper
Cite this paper
Zhang, N., Man, K.L., Xie, D. (2015). Computing Value at Risk in OpenCL on the Graphics Processing Unit. In: Park, J., Pan, Y., Kim, C., Yang, Y. (eds) Future Information Technology - II. Lecture Notes in Electrical Engineering, vol 329. Springer, Dordrecht. https://doi.org/10.1007/978-94-017-9558-6_9
Download citation
DOI: https://doi.org/10.1007/978-94-017-9558-6_9
Published:
Publisher Name: Springer, Dordrecht
Print ISBN: 978-94-017-9557-9
Online ISBN: 978-94-017-9558-6
eBook Packages: EngineeringEngineering (R0)