CRAN status of the SWIM package:
SWIM is a free and powerful tool for sensitivity analysis, which can be used to analyse the simulation output of models used by insurers. It offers both standard choices for stressing models and the ability to design custom stresses and sensitivity measures.
The SWIM package is an efficient sensitivity analysis tool for stochastic models developed in Pesenti et al. 2019. It provides a stressed version of a stochastic model, subject to model components (random variables) fulfilling given probabilistic constraints (stresses). Possible constraints include stressing moments, probability intervals and risk measures such as the Value-at-Risk and the Expected Shortfall. Provided with simulated scenarios from a stochastic model, the SWIM package returns scenario weights under which the stochastic model satisfies the stress and minimises the relative entropy with respect to the baseline model.
A practical introduction to SWIM:
-
- News Article: SWIM featured in the Actuary, the magazine for British actuaries, online version and TheActuary.pdf
- Vignette: Download the interactive bookdown (html) Vignette.html or its pdf version Vignette.pdf for an applied introduction to SWIM featuring a credit risk portfolio case study.
- Intro to SWIM: A short introductory example SWIM_intro.pdf.
- Master thesis: of Alberto Bettini (in Italian): Reverse Sensitivity Analysis.pdf
The mathematics of SWIM:
-
- Pesenti, S. M., Millossovich P. and Tsanakas A., 2019. Reverse sensitivity testing: What does it take to break the model? European Journal of Operational Research, 274(2), pp. 654–670
Free online version: https://openaccess.city.ac.uk/id/eprint/18896/
- Pesenti, S. M., Millossovich P. and Tsanakas A., 2019. Reverse sensitivity testing: What does it take to break the model? European Journal of Operational Research, 274(2), pp. 654–670
-
Government Actuary’s Department, UK, 25. June 2020 (GAD_Presentation.pdf)
-
Committee of Actuaries in the Lloyd's Market (CALM), 25 November 2019, London UK (CALM_2019.pdf)
- Casualty Actuarial Society Spring Meeting, 1. March 2019, London UK (CAE_spring_meeting_2019.pdf)
- Technical Issues in General Insurance, 25. April 2019, London UK (TIGI_2019.pdf)
CRAN version: https://CRAN.R-project.org/package=SWIM
GitHub version: https://github.com/spesenti/SWIM
Develop version: https://github.com/spesenti/SWIM/blob/develop/NEWS.md