Skip to main content

Levy-stable-jax

Implementation of the Lévy-stable distributions for the Jax framework.

The Lévy-stable distribution is a generalization of the Normal, Cauchy and Lévy distributions. It enjoys many appealing properties, but it has no known closed-form solutions.

This package provides an implementation using the Jax framework. With this package, you can use this distribution with all AI frameworks based on Jax. In particular, you can use Lévy-stable distributions in Bayesian inference frameworks such as numpyro or PyMC.

This implementation is optimized for speed and ease of use with Jax. It uses the scipy implementation as a reference.

It also includes various experimental methods for fitting Lévy-stable distributions. These should be considered experimental, both in API and in functionality.

Current limitations

  • values of alpha are only supported in the range (1.01 - 2). This code may work for lower values of alpha but it has not been tested.

  • only one parametrization (Nolan's N0 notation) is implemented. It is the more stable parametrization for numerical computations.

Commands (development only)

Setting up the test environment

pip install .[dev]
make lint
make test
poetry build
poetry publish

Release files for levy-stable-jax 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for levy-stable-jax 0.2.1
File Size Uploaded
levy_stable_jax-0.2.1.tar.gz 5.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for levy-stable-jax 0.2.1
File Interpreter ABI Platform
levy_stable_jax-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 MB

Release files / levy_stable_jax-0.2.1.tar.gz

Download URL levy_stable_jax-0.2.1.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7ccc3c207917bbd665b593fcde586a8cb6b37f4b22f90db1b3a16af56eab79f7
BLAKE2b-256 checksum
How to use checksums
abfabf84615a5c410b3b1e7ee5a53033162996bb30cec5801ada1963a8718a01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

Release files / levy_stable_jax-0.2.1-py3-none-any.whl

Download URL levy_stable_jax-0.2.1-py3-none-any.whl
Size 5.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
010606c896e3b6f74ce358d9c37bf29d18ba41c774104f475ff143d3b6ce2a8d
BLAKE2b-256 checksum
How to use checksums
daffd4458c4530ecbc556a1931f8c43ac3f68d35d03a5179c984a06f9e619bf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-35-generic

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page