Hall - Probability theory using pythonic and (almost) mathematical notation.
Project description
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
Release history Release notifications | RSS feed
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.11.tar.gz
(12.2 kB
view details)
Built Distribution
hall-0.1.11-py3-none-any.whl
(13.9 kB
view details)
File details
Details for the file hall-0.1.11.tar.gz
.
File metadata
- Download URL: hall-0.1.11.tar.gz
- Upload date:
- Size: 12.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6e13ae4748346ec63bd43fb6386112488ad950b1cd17c1e10ab6aa0815c576a |
|
MD5 | c541a8c154e44a1fcb3eed84f51b76f9 |
|
BLAKE2b-256 | 88d30990c14e705d50870533b7b07847a342f9d69a0c61058cf259f7de8689f7 |
File details
Details for the file hall-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: hall-0.1.11-py3-none-any.whl
- Upload date:
- Size: 13.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 264294108609d9122abb0a66918594a4a89033088a6ba97b77981629fde4efbf |
|
MD5 | 3ff62cfbf82beff0779b5d9f74b46cb7 |
|
BLAKE2b-256 | ba50f9c4f5aa3546612a54e7c1d6562957e59926654811580920a6f4f5ab43ed |