Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

A python library for sampling and generating new Data points by multivariate Gaussian copulas.

Project description

alt text


A python library for sampling and generating new Data points by multivariate Gaussian copulas.


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


Install using pip

pip install copula


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)
[2.697128268374179, 6.29726013955287, 2.983951810593502, 2.1149729235834496], [3.0, 1.0, 6.831369733333171, 4.631091408593663], [2.147377031275032, 6.75098812552581, 1.9789800708813163, 1.1200891337867478]]


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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for copula, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size copula-0.0.4-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size copula-0.0.4.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page