Skip to main content

# clayton

## Sampling from copulae

The modeling of dependence between random variables is an important subject in several applied fields of science. To this aim the copula function can be used as a margin-free description of the dependence structure. Several copulae belong to specific families such as Archimedean, Elliptical or Extreme. While software implementation of copulae has been thoroughly explored in R software, methods to work with copula in Python are still in their infancy. To promote the dependence modeling with copula in Python, we have developed clayton, a library that provides a range of random vector generation vector for copulae.

The module clayton is implemented using the object-oriented features of the Python language. The classes are designed for Archimedean, elliptical, extreme value copulae. Each contains methods to generate random vectors.

For more information, the reader can access the paper describing the code, which was accepted for publication in computo, at the following URL: https://aleboul.github.io/computo/.

## Installation

### Dependencies

COPPY requires :

  • Python (>= 3.7)

  • NumPY (>= 1.14.6)

  • SciPY (>= 1.1.0)

### Source Code

You can check the latest sources with the command:

git clone https://github.com/Aleboul/clayton/

## Examples

[Graphical Representations](https://github.com/Aleboul/clayton/blob/master/examples/sample.ipynb)

Release files for clayton 0.0.4

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

Source distribution (sdist)

Source distribution for clayton 0.0.4
File Size Uploaded
clayton-0.0.4.tar.gz 23.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clayton 0.0.4
File Interpreter ABI Platform
clayton-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 50.4 kB

Release files / clayton-0.0.4.tar.gz

Download URL clayton-0.0.4.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d750d09621630d8a9ab1d2f30525ee1a327976e33d46605259c669df82a808be
BLAKE2b-256 checksum
How to use checksums
18e70a95171109e16db7022f3d876eb17032d212b389083a6d17601c3e20e307
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release files / clayton-0.0.4-py3-none-any.whl

Download URL clayton-0.0.4-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd3c05ad399bdf90b5775a8446682e46a52a54edff85988e493a133432ac27e4
BLAKE2b-256 checksum
How to use checksums
41bd7ec10a664ca608eec2f8a6dc75dd8596a41e7e150a7a529a5ab1e66fa32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

3 release files

0.0.2

1 release file

0.0.1

3 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