Skip to main content

Multivariate skew distribution samplers

Project description

mvskew: Multivariate skew distribution samplers

This package provides access a set of multivariate distribution samplers. Implemented multivariate distributions are:

  • normal
  • skew normal
  • extended skew normal
  • Cauchy
  • skew Cauchy
  • extended skew Cauchy
  • Student T
  • skew Student T
  • extended skew T

Installation

Tha package is distributed through PyPI:

pip install mvskew 

Usage

While the package contains functions to call samplers directly and a broad set of helper functions, the main feature of the package is the class object multivariate_samplers, which wraps around all core functionalities provided. An example to use it:

# Set params 
xi = np.ones(10)
Omega = np.diag(np.ones(10))
alpha = np.array([3,2,1,4,5,6,8,5,2,0])
tau = -1
#Sample from a multivariate skew T5 truncated about -1
mvs = multivariate_samplers(distribution='T',disttype='skew', df=5)
mvs.sample(20,xi,Omega,alpha,tau)

References

The skew and extended skew families are described in detail in:

  1. Azzalini, A., in collaboration with Capitanio, A., The Skew-Normal and Related Families, IMS Monograph series, Cambridge University Press, Cambridge, UK, 2014.
  2. Azzalini, A. and Dalla Valle, A. The Multivariate Skew-Normal Distribution, Biometrika, Vol. 83, No. 4 (1996), pp. 715-726.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mvskew-0.0.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file mvskew-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mvskew-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for mvskew-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ff227002f32e90aea24d770d64f778adcab3f079cff21c33840364fc9d586bd
MD5 29c6fa8e997b566600bd6f4161668884
BLAKE2b-256 20f19e46408ece83c39052d6c79671be8d4bc8a6bef8262e1659b9013e3f1bec

See more details on using hashes here.

Supported by

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