Python Functions for Vasicek Distribution
Project description
Introduction
In the context of statistics, the Vasicek distribution is a continuous distribution governing the open interval between 0 and 1 with two parameters, namely Rho and P, which is similar to the Beta and Kumaraswamy distributions.
The Vasicek distribution has often been used to describe the portfolio credit loss in the development of Economic Capital models. The py_vsk package is a collection of miscellaneous python functions related to the Vasicek distribution with the intent to make the lives of risk modelers easier.
Core Functions
py_vsk
|-- vsk_mle() : Estimates Vasicek parameters by using MLE.
|-- vsk_imm() : Estimates Vasicek parameters by using indirect moment matching.
|-- vsk_dmm() : Estimates Vasicek parameters by using direct moment matching.
|-- vsk_qbe() : Estimates Vasicek parameters by using quantile-based estimator.
|-- vsk_Rho() : Estimates the Rho parameter by assuming P known and varying.
|-- vsk_pdf() : Calculates the probability density function of Vasicek.
|-- vsk_cdf() : Calculates the probability cumulative function of Vasicek.
|-- vsk_ppf() : Calculates the percentile point function (CDF inverse) of Vasicek.
|-- vsk_rvs() : Generates random numbers following the Vasicek distribution.
|-- get_Rho() : Solves for the Rho parameter such that vsk_cdf(x, Rho, P) = Alpha.
|-- gof_ks() : Performs the Kolmogorov-Smirnov GoF test for the Vasicek distribution.
`-- gof_chisq() : Performs the Chi-Square GoF test for the Vasicek distribution.
Reference
Tasche, Dirk. (2008). The Vasicek Distribution.
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
Built Distribution
File details
Details for the file py_vsk-0.0.8.tar.gz
.
File metadata
- Download URL: py_vsk-0.0.8.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df42c365fdc08b834172981a9c371db1e3d096f97a554f5aef007f94cc433d9a |
|
MD5 | e6718530cca2ad71c2e5e218170f2d25 |
|
BLAKE2b-256 | 3136cafe359939f4be73fdedc38d0596a71dbf3939d399a05a31443011e1083a |
File details
Details for the file py_vsk-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: py_vsk-0.0.8-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30f7042eb6b5a29fbb8ee9a43724f9a751eec1bed1e36ca71942be9286af99ee |
|
MD5 | 9d5e9f7fa094a797aeb2b74df7a418a6 |
|
BLAKE2b-256 | 72fdef1cc5ebe9234008944376e61175dd56ea2df12084db786e69ce9843890d |