A python library for sampling and generating new Data points by multivariate Gaussian copulas.
Project description
Copula
A python library for sampling and generating new Data points by multivariate Gaussian copulas.
Overview
A python libray to build multivariate gaussian copula for given data points and sample arbitary number of new data points from input data distribution. In short given some input data points, it can generate more such data points which follow the input data distribution
Installation
Install using pip
pip install copula
Usage
If you have some data points and distribution of this multivariate data points is not explicitly given. Then this library can be used to sample new points from this dritribution. gendata() funtion number of new samples to be generated as input
>>>from copula import pyCopula
>>>data = [[2,1,2,4],[3,1,7,4],[2,9,1,0],[3,6,1,6] ]
>>>cop = pyCopula.Copula(data)
>>>samples = cop.gendata(3)
>>>print(samples)
[2.697128268374179, 6.29726013955287, 2.983951810593502, 2.1149729235834496], [3.0, 1.0, 6.831369733333171, 4.631091408593663], [2.147377031275032, 6.75098812552581, 1.9789800708813163, 1.1200891337867478]]
Assumptions
data provided to copula must be a 2D numeric array
Data must be clean (no null values)
Every row of input data must contain same number of columns
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 copula-0.0.4.tar.gz
.
File metadata
- Download URL: copula-0.0.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a714efaf984e1dd5a4c0fa8f49c952d30a68c9a9f8df92c4bbd79b73457f949 |
|
MD5 | 8c84ae50353895eb2f687dcad09a1b2c |
|
BLAKE2b-256 | c55d95657af10af15457ff62d6220efb4eb85b88e2b35a629980b199339ba2c6 |
File details
Details for the file copula-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: copula-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89a4eab1ea3b474b53f394a50294f2463774f299f547ba6780351f1d6a40a9cf |
|
MD5 | 39042cbdb40a6eb2c03528f3529b20fb |
|
BLAKE2b-256 | c012ee98bbda9666964bbc8777572a988ef6025d8a65705a50bcd1566ebc4c22 |