Skip to main content

Distribution Tests

  • Chapter
  • First Online:
Hands-On Value-at-Risk and Expected Shortfall

Part of the book series: Management for Professionals ((MANAGPROF))

  • 1734 Accesses

Abstract

We can relate the VaR model’s prediction (tomorrow’s PnL distribution) with actual, later outcomes (the realized and experienced PnL) in a way that is more expressive than the backtesting with its focus on relatively rare VaR violations.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 89.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

Notes

  1. 1.

    The probability of a random number falling between two quantiles q d  < q u is u − d (see Sect. A.7). The PnL predictions (our interval bounds) correspond to k/1001-quantiles; the probability of a random number falling between two adjacent ones, e.g., d = 17/1001 and u = 18/1001, is u − d = 1/1001.

    You will notice that this treatment of quantiles is slightly different from our previous one, where we defined the 10th most negative PnL value to correspond to the 1%-quantile instead of the 10/1001 = 0.99%-quantile. This is largely inconsequential here due to the large number of PnL values involved, and our respective definition choices are solely motivated by convenience and concise, short form notation. In any case, empirical quantiles like these are often handled slightly differently according to a given problem at hand, for example, when it comes to dealing with the very first and last intervals or with questions of quantile interpolation.

  2. 2.

    The confidence interval delimits the outcome of each u between an upper and lower bound (it is thus two-sided); it uses the 5% and the 95% quantiles of the Beta distribution for this, spanning the 90% of outcomes in between (hence it is a 90% confidence interval). You can use Excel’s BETA.INV(0.95;k;n+1-k) and BETA.INV(0.05;k;n+1-k) functions to obtain each day’s upper and lower bounds.

  3. 3.

    While we generally prefer Python and NumPy when doing statistics, the software suite R offers some good support for such tests. The Kolmogorov-Smirnov test is built-in (ks.test(u, "punif")), while Anderson-Darling is available as a separate library (called ADGofTest). Please note that some tests do not allow for identical u-values, which in our case can happen because of the discrete intervals. You can simply add/subtract tiny and different offsets to each u-value to disentangle them, e.g., .

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Auer, M. (2018). Distribution Tests. In: Hands-On Value-at-Risk and Expected Shortfall. Management for Professionals. Springer, Cham. https://doi.org/10.1007/978-3-319-72320-4_16

Download citation

Publish with us

Policies and ethics