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.12.tar.gz
(12.4 kB
view details)
Built Distribution
hall-0.1.12-py3-none-any.whl
(14.2 kB
view details)
File details
Details for the file hall-0.1.12.tar.gz
.
File metadata
- Download URL: hall-0.1.12.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a5c7de4c624e60353c998e3016dcd5875dd0e982b187449dac430ba2fabb7a |
|
MD5 | e6c60ab9a85196e04db854c9789ec27e |
|
BLAKE2b-256 | c76120d26a017fc67cabeb474583c702eb0522a89bce4abac1e0f7106211878f |
File details
Details for the file hall-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: hall-0.1.12-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0501e764163a139583792bfa93cb60a11d1711185f3ffd2856008c826a72d6da |
|
MD5 | e88720f11e63d02a765b500a623f8658 |
|
BLAKE2b-256 | 0a5262620cfd89bddb8ddfb41070c3d15999ce505f35e647d2d16ef52c44f941 |