Skip to main content

Numba-accelerated implementations of common probability distributions

Project description

numba-stats

We provide numba-accelerated implementations of statistical functions for common probability distributions

  • normal
  • poisson
  • exponential
  • student's t
  • voigt

with more to come. The speed gains are huge, up to a factor of 100 compared to scipy. Benchmarks are included in the repository and are run by pytest.

You can help with adding more distributions, patches are very welcome. Implementing a probability distribution is easy. You need to write it in simple Python that numba can understand. Special functions from scipy.special can be used after some wrapping, see submodule numba_stats._special.py how it is done.

Because of limited manpower, this project is barely documented. The documentation is basically pydoc numba_stats. The calling conventions are the same as for the corresponding functions in scipy.stats. These are sometimes a bit unusual, for example, for the exponential distribution, see the scipy docs for details.

numba-stats and numba-scipy

numba-scipy is the official package and repository for fast numba-accelerated scipy functions, are we reinventing the wheel?

Ideally, the functionality in this package should be in numba-scipy and we hope that eventually this will be case. In this package, we don't offer overloads for scipy functions and classes like numba-scipy does. This simplifies the implementation dramatically. numba-stats is intended as a temporary solution until fast statistical functions are included in numba-scipy. numba-stats currently does not depend on numba-scipy, only on numba and scipy.

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

numba-stats-0.3.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

numba_stats-0.3.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file numba-stats-0.3.2.tar.gz.

File metadata

  • Download URL: numba-stats-0.3.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.2 Linux/5.4.0-1039-azure

File hashes

Hashes for numba-stats-0.3.2.tar.gz
Algorithm Hash digest
SHA256 8515ad5ae25d6ee3c5134eaceb2886cae646aeaf5aa5f938f6792deed0c8e9b1
MD5 44461243cdd71d26247ca496a18c24b5
BLAKE2b-256 ec39149b73e1aa1265ac82d3b22f04253f71c2bdc03b1104f6e39b4cc2bb85e5

See more details on using hashes here.

File details

Details for the file numba_stats-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: numba_stats-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.2 Linux/5.4.0-1039-azure

File hashes

Hashes for numba_stats-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee0bd7945d2d09ff81cc5ab820b6b1500647ddd37c4624dcce6b28e348a456b7
MD5 07b798e7d7ad59caafcf90727fbe7834
BLAKE2b-256 15be749bc04b62a15982ce25257af4f901e5ec957e291a369cca88ea40882b6c

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