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.13.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

hall-0.1.13-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hall-0.1.13.tar.gz
  • Upload date:
  • Size: 12.4 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.13.tar.gz
Algorithm Hash digest
SHA256 a8e308ac137909c85af545ef8d9d0d8e4b90f5c0ed0ea7ccd80c24210a9eec7d
MD5 18f01cb8d6e44de7e709bcca5b087901
BLAKE2b-256 4b7c3f2419bd526a1c3a991886cd08a5a7634cd163affb1aa2b30f1d47781f73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hall-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d209faae6cf382b2514e556eb90ce6ca0d4bccd1a199b1a0cb00cdc7131be82b
MD5 158a6919459f8a0b1ac0b7152cc90b50
BLAKE2b-256 1d15c13ded420614f3779a8a895686cc7eed242b873c730db8db51f6cef976c5

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