.. _sphx_glr_api_gallery_risk_backtesting:
Backtesting
-----------
Checking a VaR model against realised losses: the number of exceptions,
the regulator's zones and whether exceptions cluster.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/risk/backtesting/images/thumb/sphx_glr_plot_01_kupiec_thumb.png
:alt:
:doc:`/api/gallery/risk/backtesting/plot_01_kupiec`
.. raw:: html
Kupiec's proportion-of-failures test
.. raw:: html
.. only:: html
.. image:: /api/gallery/risk/backtesting/images/thumb/sphx_glr_plot_02_basel_traffic_light_thumb.png
:alt:
:doc:`/api/gallery/risk/backtesting/plot_02_basel_traffic_light`
.. raw:: html
Basel historical VaR and the traffic light
.. raw:: html
.. only:: html
.. image:: /api/gallery/risk/backtesting/images/thumb/sphx_glr_plot_03_christoffersen_thumb.png
:alt:
:doc:`/api/gallery/risk/backtesting/plot_03_christoffersen`
.. raw:: html
Christoffersen's independence test
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/risk/backtesting/plot_01_kupiec
/api/gallery/risk/backtesting/plot_02_basel_traffic_light
/api/gallery/risk/backtesting/plot_03_christoffersen