Skip to main content

Lea is a Python module aiming at working with discrete probability distributions in an intuitive way.

It allows you modeling a broad range of random phenomena: gambling, weather, finance, etc. More generally, Lea may be used for any finite set of discrete values having known probability: numbers, booleans, date/times, symbols,… Each probability distribution is modeled as a plain object, which can be named, displayed, queried or processed to produce new probability distributions.

Lea also provides advanced functions and Probabilistic Programming (PP) features; these include conditional probabilities, joint probability distributions, Bayesian networks, Markov chains and symbolic computation.

All probability calculations in Lea are performed by a new exact algorithm, the Statues algorithm, which is based on variable binding and recursive generators. For problems intractable through exact methods, Lea provides on-demand approximate algorithms, namely MC rejection sampling and likelihood weighting.

Beside the above-cited functions, Lea provides some machine learning functions, including Maximum-Likelihood and Expectation-Maximization algorithms.

Lea can be used for AI, education (probability theory & PP), generation of random samples, etc.

To install Lea 3.4.1, type the following command:

pip install lea==3.4.1

Please go on Lea project page (beside) for a comprehensive documentation.

Download files

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

Source Distribution

lea-3.4.1.tar.gz (85.7 kB view details)

Uploaded Source

File details

Details for the file lea-3.4.1.tar.gz.

File metadata

  • Download URL: lea-3.4.1.tar.gz
  • Upload date:
  • Size: 85.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for lea-3.4.1.tar.gz
Algorithm Hash digest
SHA256 f0fa15f4689ada8a25b1db88c4a986d3226e4a22dd44ddb37b01d404458ab38d
MD5 2c9273e1c3ae9f836f92c71736571239
BLAKE2b-256 106baa6977305bb6a094a67cf2847f000cc5f27bfc5af736c6e3b19351db6e96

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.4.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page