Skip to main content

Credit risk validation and development tools

Project description

PyPI version CI Build

About the package

meliora is a Python package that provides a set of statistical tests and tools to assess the performance of the credit risk models. All tests are covered with unit tests and algorithms have been replicated in other tools like R, MATLAB and SAS to avoid errors. Whenever possible, the definition of the test was retrieved from the authoritive source like the EBA, the ECB or the Basel Committee.

The main contributors started building their first statistical credit models back in 2003. Over the years, we have impemented similar set of tests in several different financial institutions.

This package is standing on the shoulders of giants as it makes heavy use of the Python ecosystem and especially Scikit-learn, Scipy and Statsmodels. Several functions are straightforward wrappers using these resources and are provided to the user for convenience purposes. The authors have taken great care to ensure that no part of this package contains proprietary code.

Main aim

The aim of the package is to provide all common tests used by today's modellers when developing, maintaining and validating their PD, LGD, EAD and prepayment models. The aim of this package is to provide credit risk practioners with the tools to develop their credit risk models without reinventing the wheel.

Main Features

  • tests cover both IFRS 9 and IRB models as well as non-regulatory models
  • the tool contains more than 30 tests
  • all test have been covered with unit tests
  • the tests have been documented in detail
  • commonly accepted tresholds have been provided for convenience purposes

For the list of all tests, see Overview > List of tests

Tests that are currently included in the package

# Name Area Estimate
1 Binomial test Calibration PD
2 Chi-Square test (Hoshmer-Lemeshow test) Calibration PD
3 Normal test Calibration PD
4 Spiegehalter test Calibration PD
5 Redelmeier test Calibration PD
6 Herfhindahl index / Concentration of rating grades Concentration PD
7 Brier score Discrimination PD
8 Receiver Operating Characteristic Discrimination PD
9 Accuracy Ratio Discrimination PD
10 Kendall’s τ Discrimination PD
11 Somers’ D Discrimination PD
12 Conditional Information Entropy Ratio Discrimination PD
13 Kullback-Leibler distance Discrimination PD
14 Information value Discrimination PD
15 Bayesian error rate Discrimination PD
16 Cumulative LGD accuracy ratio Discrimination LGD
17 Loss Capture Ratio Discrimination LGD
18 Kolmogorov-Smirnov test Discrimination PD
19 Spearman’s rank correlation Discrimination LGD
20 Jeffrey's test Discrimination PD
21 ELBE back-test using a t-test Discrimination LGD
22 Migration matrices test Discrimination PD
23 Loss Shortfall Predictive power LGD
24 Mean Absolute Deviation Predictive power LGD
25 Population Stability Index Stability PD
26 Stability of transition matrices Stability PD

Full list of dependencies

Getting Help

For usage questions, send an email to anton.treialt@aistat.com

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meliora-0.1.2.tar.gz (25.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meliora-0.1.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file meliora-0.1.2.tar.gz.

File metadata

  • Download URL: meliora-0.1.2.tar.gz
  • Upload date:
  • Size: 25.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for meliora-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aad7e6bfaf99940906e87a3b2346bdd0b05dbbd6bc392e67a5934917e76904c2
MD5 1e2f28126cdafc7ed276e75d19d2d93f
BLAKE2b-256 39df78c720d86df46506a6a9948378dc6a2665129080eccce3b390e1a59e9206

See more details on using hashes here.

File details

Details for the file meliora-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: meliora-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for meliora-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e1247bd5a8fa3b08bbdb2cdd38d7a9d2f92f21b84808ba9f64bcf790cff06dd
MD5 a4e57bfcc75383e4896fe69a0c99b6d7
BLAKE2b-256 9e3e6495d6b085e41a9f623241c373924ee6482c4419ea1c0c3c049b48f8fd3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page