Skip to content
Python scripts for generating analytic tests for credit portfolio loss distributions
Python Batchfile Other
Branch: master
Clone or download
Latest commit c9a086f Oct 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
datasets Version 0.3.0 (sphinx documentation) Jun 17, 2019
docs further documentation Jun 18, 2019
examples further documentation Jun 18, 2019
portfolioAnalytics Version 0.3.0 (sphinx documentation) Jun 17, 2019
tests Version 0.3.0 (sphinx documentation) Jun 17, 2019
.gitignore Version 0.3.0 (sphinx documentation) Jun 17, 2019
CHANGELOG.rst Version 0.3.0 (sphinx documentation) Jun 17, 2019
LICENSE initial commit Apr 16, 2014
MANIFEST.in Version 0.2 (shifting functionality from transitionMatrix, new analyt… Mar 31, 2019
Makefile Version 0.2 (shifting functionality from transitionMatrix, new analyt… Mar 31, 2019
README.md
TODO.md Version 0.3.0 (sphinx documentation) Jun 17, 2019
conf.py Version 0.3.0 (sphinx documentation) Jun 17, 2019
description.rst further documentation Jun 18, 2019
index.rst Version 0.3.0 (sphinx documentation) Jun 17, 2019
make.bat Version 0.3.0 (sphinx documentation) Jun 17, 2019
requirements.txt further documentation Jun 18, 2019
run_examples.py Version 0.3.0 (sphinx documentation) Jun 17, 2019
setup.cfg Version 0.3.0 (sphinx documentation) Jun 17, 2019
setup.py Version 0.2 (shifting functionality from transitionMatrix, new analyt… Mar 31, 2019
test.py Version 0.3.0 (sphinx documentation) Jun 17, 2019
test_upload.sh Version 0.2 (shifting functionality from transitionMatrix, new analyt… Mar 31, 2019

README.md

PortfolioAnalytics Library

A python library that provides semi-analytical functions useful for testing the accuracy of credit portfolio simulation models

The basic formulas are reasonably simple and well known: They underpin the calculation of RWA (risk weighted assets), and in turn required capital, thus ensuring stability for the entire banking systems worldwide

The library provides support for the Monte Carlo testing framework

Dependencies: scipy, sympy

Examples

Check the jupyter notebook

Current Functions

  • vasicek_base
  • vasicek_base_el
  • vasicek_base_ul
  • vasicek_lim
  • vasicek_lim_el
  • vasicek_lim_ul
  • vasicek_lim_q

The Vasicek Base family produces finite pool loss probabilities and measures (EL, UL)

The Vasicek Lim family produces asymptotic pool loss probabities and measures (EL, UL, Quantile)

Risk Manual

Use the manual for documentation of use cases

Contributions

Contributions are welcome. Check the TODO list for ideas of where to take this library next

Portfolio Analytics Library (PAT)


Set of semi-analytical functions for testing the accuracy of credit portfolio simulation models

Contributions


Screenshot


Screenshot

Contributing


License


You can’t perform that action at this time.