Python copulae library for dependency modelling
Project description
Copulae
A python package for building Copulas.
Background
Implemented this package because I couldn't find a suitable package during work. This package is part of a larger piece in my work that I found ot convenient to extract as its own piece.
In particular, I use it as part of an AR-GARCH-Copula risk-modelling in finance. If you have any feedback, love to hear from you. Just ping me ;).
Acknowledgements
Most of the code has been implemented by learning from others. In particular, I referred quite a lot to the textbook Elements of Copula Modeling with R. I recommend their work!
Usage
from copulae import NormalCopula
import numpy as np
np.random.seed(8)
data = np.random.normal(size=(300, 8))
cop = NormalCopula(8)
cop.fit(data) copulae
cop.random(10) # simulate random number
# getting parameters
print(cop.params)
# overriding parameters
cop.params = np.eye(8) # in this case, setting to independent Gaussian Copula
I'll work on the docs and other copulas as soon as I can!
TODOS
[ ] Set up package for pip and conda installation [ ] More documentation on usage and post docs on rtd [ ] Implement in Gumbel, Joe, Frank and AMH (Archmedeans) copulas [ ] Implement goodness of fit [ ] Implement mixed copulas [ ] Implement convenient graphing functions
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 copulae-0.2.0.tar.gz
.
File metadata
- Download URL: copulae-0.2.0.tar.gz
- Upload date:
- Size: 157.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8020e26fa7cf5fce3c1d23ee40eb716937b0236be1eb5f97ac9a6d5613aa5af4 |
|
MD5 | 36b42e6e284600d82c3938e8d8aa2279 |
|
BLAKE2b-256 | 1a8b77905722e5a1152f5e53d27da51aadb235d6f797f8c22b02b1451ac100fd |
File details
Details for the file copulae-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: copulae-0.2.0-py3-none-any.whl
- Upload date:
- Size: 171.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfd46e7f364073eac4e8e1d847a0ec038bcea1a7c21ce8685154b84ef0173b96 |
|
MD5 | fc11279f2750dd74c852f12cf0f88dd7 |
|
BLAKE2b-256 | c17186b9f02e250c82e7c625fbfc79ce76bb7e37716696859cf757227cf3283d |