https://github.com/jorenham/hall
Probability and statistics in pure python with intuitive syntax
https://github.com/jorenham/hall
maths probability probability-theory python science
Last synced: 8 months ago
JSON representation
Probability and statistics in pure python with intuitive syntax
- Host: GitHub
- URL: https://github.com/jorenham/hall
- Owner: jorenham
- License: bsd-3-clause
- Created: 2021-06-30T22:55:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T18:40:34.000Z (over 2 years ago)
- Last Synced: 2025-03-18T15:55:03.172Z (over 1 year ago)
- Topics: maths, probability, probability-theory, python, science
- Language: Python
- Homepage: https://pypi.org/project/hall/
- Size: 1.16 MB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
- Roadmap: docs/roadmap.md
Awesome Lists containing this project
README
[](https://github.com/jorenham/hall/actions?query=event%3Apush+branch%3Amaster+workflow%3ACI)
[](https://pypi.python.org/pypi/hall)
[](https://pepy.tech/project/hall)
[](https://github.com/jorenham/hall)
[](https://github.com/jorenham/hall/blob/master/LICENSE)
Probability theory using pythonic and (almost) mathematical notation.
## Help
See [documentation](https://jorenham.github.io/hall/) for more details.
## A simple example: Intelligence quotient
```pycon
>>> 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](https://jorenham.github.io/hall/#contributing).