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.

Download files

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

Files for hall, version 0.1.13
Filename, size File type Python version Upload date Hashes
Filename, size hall-0.1.13-py3-none-any.whl (14.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hall-0.1.13.tar.gz (12.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page