Skip to main content

A Python package for tabular synthetic data

Project description

copula-tabular

Generate tabular synthetic data using Gaussian copulas

Overview

Advancements in synthetic data generation have made it a viable solution for applications in various fields, such as finance, biomedical research, and data science. Synthetic data is generated artificially, yet replicates the joint probability distribution of its real-world counterpart. Its ability to mimic the statistical behaviour of real data makes it a useful tool for testing algorithms, systems, and training machine learning models, and it can be used as an economical substitute for real data when it is not available, is too sensitive to release, or too costly to acquire. Copula-based data generation methods have been demonstrated to produce reliable and accurate tabular data when generating synthetic data.

In this package, we present a tool for generating multivariate synthetic data through the implementation of a Gaussian copula. This model incorporates conditional joint distributions into its framework, allowing for the splitting of single variables into multiple component marginal distributions. The conditional enhancements provides greater usability in the synthesis of complex, non-linear sample distributions, allowing for the replication of a wider range of datasets.

The tool is designed to work with a data dictionary, or a file describing the metadata of the input dataset. There are additional class-based implementations of data cleaning, visualisation tools, transformation tools, privacy leakage evaluation, and sample wrapper scripts for generating synthetic data from start to finish.

Example Result:

Figure showing correlation plots of a simulated multivariate dataset, containing non-trivial, non-linear and non-monotonic relationships. The left plot shows the original Pearson correlation between variables, while the middle and right plots show the correlation for synthetic data generated using standard copula and conditional copula respectively. Figure showing correlation plots of a simulated multivariate dataset, containing non-trivial, non-linear and non-monotonic relationships. The left plot shows the original Pearson correlation between variables, while the middle and right plots show the correlation for synthetic data generated using standard copula and conditional copula respectively.

Figure showing superimposed scatterplots of the same simulated multivariate dataset, containing non-trivial, non-linear and non-monotonic relationships. The training, synthetic (standard copula), synthetic (conditional copula) data points are in blue, grey, and red respectively. Figure showing superimposed scatterplots of the same simulated multivariate dataset, containing non-trivial, non-linear and non-monotonic relationships. The training, synthetic (standard copula), synthetic (conditional copula) data points are in blue, grey, and red respectively.

Documentation

For installation instructions, getting started guides and tutorials, background information, and API reference summaries, please see the website.

Contributing

Thank you for considering contributing to copula-tabular. Please follow this link for more details.

Development notes

Please visit the website for more details.

Copyright and license

Copyright 2023 BiomedDAR, BII, A*STAR. Licensed under MIT.

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

bdarpack-0.1.8.tar.gz (77.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bdarpack-0.1.8-py3-none-any.whl (80.8 kB view details)

Uploaded Python 3

File details

Details for the file bdarpack-0.1.8.tar.gz.

File metadata

  • Download URL: bdarpack-0.1.8.tar.gz
  • Upload date:
  • Size: 77.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for bdarpack-0.1.8.tar.gz
Algorithm Hash digest
SHA256 99bb364b54cff2aeba3289b30ac8991445b8c9e06a764268314ba8e18ee79bf3
MD5 ed3d53d9f0c0029ce6ce4c244e830ba4
BLAKE2b-256 73bd51b2150039644c2d1de03665127be267788c01c76b7751dacb1ba7e411a4

See more details on using hashes here.

File details

Details for the file bdarpack-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: bdarpack-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 80.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for bdarpack-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f1c2f902a312c08ce8c2dc8916c9d9a061172b7e5fb04b0dfc2f54c5de848c
MD5 137fb12cc7d8f933bcacbc6b3f778bf8
BLAKE2b-256 9a296306c9ab4789e239eabc2a60f3be4fb15a31dbc7caca80504ad338ca163f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page