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.1.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.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dubious-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 9e67a20f4e0d64ed69369f52b84a1a39fa7872c9ef3893d76ad7e2bc24ffcd0a
MD5 491784a251c7f70e972357e66c014c4d
BLAKE2b-256 7a142471f6ce3363eb4972c1fc441b9c0b211263523adb06f684e3f1f8dd3aca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dubious-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4dda12927f9be336830ae0981780ee5daa478221fb82570b1a2bf69f3aaed28f
MD5 45eada03f43df90c0a871680c89bac49
BLAKE2b-256 679c471113791ac8650721eda88560532e9d2d4eae122ed806c0f6cfcd28f4f7

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