Skip to main content

Hall - Probability theory using pythonic and (almost) mathematical notation.

Project description

CI pypi Downloads versions license

Probability theory using pythonic and (almost) mathematical notation.

Help

See documentation for more details.

A simple example: Intelligence quotient

>>> from hall import P, E, Std, Normal, sample
>>> IQ = ~Normal(100, 15)
>>> E[IQ]
100.0
>>> Std[IQ]
15.0
>>> P(IQ >= 130)
0.0227501319481792
>>> print("IQ test outcome:", sample(IQ))
IQ test outcome: 116.309834872963

So the chance of having an IQ (normally distributed with μ=100 and σ=15) of at least 130 is approximately 2.3%.

A simple example: Monty Python Hall

TODO

Contributing

For guidance on setting up a development environment and how to make a contribution to hall, see Contributing to hall.

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

hall-0.1.10.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

hall-0.1.10-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file hall-0.1.10.tar.gz.

File metadata

  • Download URL: hall-0.1.10.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.11 Linux/5.8.0-1036-azure

File hashes

Hashes for hall-0.1.10.tar.gz
Algorithm Hash digest
SHA256 96fe95e981fb495d15b4610a4372aaf46c2321612bac91dd079692388d48049c
MD5 a2a7da3e93ff75f42519f4557819046d
BLAKE2b-256 7af0ad27b26b951d9203ab7aad2845f85959aacb0868fac57100f19de322822a

See more details on using hashes here.

File details

Details for the file hall-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: hall-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.8.11 Linux/5.8.0-1036-azure

File hashes

Hashes for hall-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bfc567b4328e58637c720e420193ceb02cbccc9e53f7063508e7242d475d2f7b
MD5 291341722d83f82b72dcc624f7259b59
BLAKE2b-256 f8b24364a12b06140c0e1056d7d5fc3893fcdd74e55e63642f49d1f038051f3c

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