Skip to main content

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.

Metadata

Release files for py-vsk 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-vsk 0.0.8
File Size Uploaded
py_vsk-0.0.8.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-vsk 0.0.8
File Interpreter ABI Platform
py_vsk-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / py_vsk-0.0.8.tar.gz

Download URL py_vsk-0.0.8.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
df42c365fdc08b834172981a9c371db1e3d096f97a554f5aef007f94cc433d9a
BLAKE2b-256 checksum
How to use checksums
3136cafe359939f4be73fdedc38d0596a71dbf3939d399a05a31443011e1083a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py_vsk-0.0.8-py3-none-any.whl

Download URL py_vsk-0.0.8-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30f7042eb6b5a29fbb8ee9a43724f9a751eec1bed1e36ca71942be9286af99ee
BLAKE2b-256 checksum
How to use checksums
72fdef1cc5ebe9234008944376e61175dd56ea2df12084db786e69ce9843890d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page