Mathematical computation and visualization of bivariate copulas.
Project description
copul
copul is a package designed for mathematical computation with and visualization of bivariate copula families.
Install
Install the copul library using pip.
pip install copul
Documentation
A guide and documentation is available at https://copul.readthedocs.io/.
Copula families and copulas
The copul
package covers implementations of the following copula families:
- Archimedean copula families: The 22 Archimedean copula families from the book "Nelsen - An Introduction to Copulas" including
- Clayton
- Gumbel-Hougaard
- Frank
- Joe
- Ali-Mikhail-Haq
- etc.
- Extreme-value copulas families:
- BB5
- Cuadras-Augé
- Galambos
- Gumbel
- Husler-Reiss
- Joe
- Marshall-Olkin
- tEV
- Tawn
- Elliptical copula families:
- Gaussian
- Student's t
- Laplace.
- Other copula families:
- Farlie-Gumbel-Morgenstern
- Fréchet
- Mardia
- Plackett
- Raftery
Furthermore, the package provides the following copulas:
- Independence copula
- Lower and upper Fréchet bounds
- Checkerboard copulas
Copula properties
The following properties are available for the above copula families and copulas if they exist and are known:
cdf
: Cumulative distribution functionpdf
: Probability density functioncond_distr_1
,cond_distr_2
: Conditional distribution functionslambda_L
,lambda_U
: Lower and upper tail dependence coefficientsrho
,tau
,xi
: Spearman's rho, Kendall's tau, and Chatterjee's xigenerator
,inv_generator
: Generator and inverse generator for Archimedean copula familiespickands
: Pickands dependence functions for extreme-value copula families
Copula methods
The following methods are available for the above copula families and copulas:
rvs
: Generate random samples from the copulascatter_plot
: Generate a scatter plot of the copulaplot_cdf
: Visualize the cumulative distribution functionplot_pdf
: Visualize the probability density functionplot_rank_correlations
: Visualize Spearman's rho, Kendall's tau, and Chatterjee's xiplot_generator
: Visualize the generator functionplot_pickands
: Visualize the Pickands dependence function
Project details
Release history Release notifications | RSS feed
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 copul-0.1.1.tar.gz
.
File metadata
- Download URL: copul-0.1.1.tar.gz
- Upload date:
- Size: 165.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b7179b81e1b03a3fb6af89fd0d699d0c830a6f33fe4f7f5cb3837a66b3f4ec |
|
MD5 | a989b9c4e172dfe262304c7486b4cdcb |
|
BLAKE2b-256 | fd302cdd81a28b5808fca99df604f89056b5c05513eebaaece1715b9e349ee8f |
File details
Details for the file copul-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: copul-0.1.1-py3-none-any.whl
- Upload date:
- Size: 200.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb62f1f8c185b0a6e8db38be62cb07845a7851c3de9b68d38677672ddd346d8c |
|
MD5 | 7e6fee2406100e2b2e8059ac91b87910 |
|
BLAKE2b-256 | 4206835f7d9e7b7513a075464346a9f7ec3119df155e937a91869c4951a1c8a1 |