Skip to main content

Computing Value at Risk in OpenCL on the Graphics Processing Unit

  • Conference paper
  • First Online:
Future Information Technology - II

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 329))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Advanced Micro Devices, Inc. (AMD) (2013) AMD accelerated parallel processing OpenCL programming guide. http://www.developer.amd.com/appsdk

  2. Box GEP, Muller ME (1958) A note on the generation of random normal deviates. Ann Math Stat 29(2):610–611

    Article  MATH  Google Scholar 

  3. Bratley P, Fox BL (1988) Algorithm 659: implementing Sobol’s quasirandom sequence generator. ACM Trans Math Softw 14(1):88–100

    Article  MATH  Google Scholar 

  4. Britten-Jones M, Schaefer SM (1999) Non-linear value-at-risk. Eur Finance Rev 2:161–187

    Article  Google Scholar 

  5. Castellacci G, Siclari MJ (2003) The practice of delta-gamma VaR: implementing the quadratic portfolio model. Eur J Oper Res 150(3):529–545

    Article  MATH  Google Scholar 

  6. Feuerverger A, Wong ACM (2000) Computation of value-at-risk for nonlinear portfolios. J Risk 3:37–56

    Google Scholar 

  7. Glasserman P (2004) Monte Carlo methods in financial engineering, Chap. 9. Springer, New York

    Google Scholar 

  8. Hull JC (2007) Risk management and financial institutions, Chap. 8, 1st edn. Pearson Education, New Jersey

    Google Scholar 

  9. Hull JC (2012) Options, futures, and other derivatives, Chap. 21, 8th edn. Prentice Hall, New York

    Google Scholar 

  10. Joe S, Kuo FY (2008) Constructing Sobol sequences with better two-dimensional projections. SIAM J Sci Comput 30(5):2635–2654

    Article  MATH  MathSciNet  Google Scholar 

  11. Khindanova IN, Rachev ST (2000) Value at risk: recent advances. In: Handbook on analytic-computational methods in applied mathematics. CRC Press LLC, New York

    Google Scholar 

  12. Khronos Group: OpenCL (Open Computing Language). http://www.khronos.org/opencl/

  13. 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

    Article  MathSciNet  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Dejun Xie .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics