Skip to main content

Dubious is a Python library for propagating uncertainty through numerical computations

Project description

Dubious

Dubious is a Python library for propagating uncertainty through numerical computations. Instead of collapsing uncertain values into single numbers early, Dubious lets you represent values as probability distributions, combine them with normal arithmetic operations, and only evaluate the resulting uncertainty when you explicitly ask for it.

Distribution Objects

Currently only supporting Normal, LogNormal, Beta and Uniform distributions. For each you can get mean, variance and samples. Distribution objects also support using other distribution objects for their parameters, although this may lead to unexpected behaviour in cases where parameters can become negative.

Uncertainty Objects

Uncertainty objects are the wrapper for distributions that allow them to be used in as though they were numeric values. To create an uncertainty object you must first provide a distribution and a context object. Uncertain objects that belong to different contexts cannot be combined currently, this will change in the future. You can perform numeric operations on these uncertainty objects and sample from them via the sample_uncertain() function or .sample(). Mean variance and quantile functions are also available for these distributions.

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

dubious-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

dubious-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file dubious-0.1.0.tar.gz.

File metadata

  • Download URL: dubious-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for dubious-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d8384e569b2e5df4a729fe6b883cf5b74d0c4ad6d8c376db5e4985b6311f10c
MD5 155df4a4c8295300f23ea5612cf9b360
BLAKE2b-256 5518dc587b9c374fb4627d939c95ab8a173da6dfc202d7f38f6c91d8ae441820

See more details on using hashes here.

File details

Details for the file dubious-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dubious-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for dubious-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e36ff5a4e99dfd02b399b4164ac57b4f7ce8ac5a574b16f980214f839d506b9f
MD5 6054262efaafc4159894bd316a55be6d
BLAKE2b-256 c3e9ee73eb4f94dd9a37f8b0ead7f7378134ab9c9183a4a2a0ad19f681c15f94

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