Skip to main content

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

Project description

alt text

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


Download files

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

Source Distribution

copula-0.0.4.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

copula-0.0.4-py3-none-any.whl (3.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page