Probabilistic is a Python library designed to facilitate the probabilistic execution of functions and the analysis of their outcome distributions. Whether you're simulating uncertain events, performing randomized experiments, or adding an element of chance to your applications, Probabilistic provides a straightforward and flexible toolkit to meet your needs.
-
Probabilistic Function Function
-
Mutual Exclusivity Function
-
Distribution Analysis Function
-
Customizable Random Engines
-
Conditional Probability-Based Function
-
Probability Chains
-
Asynchronous Execution Support
-
Integration with Popular Libraries like NumPy and Pandas for enhanced data handling and analysis.
You can install the Probabilistic library using pip. Ensure that you have Python 3.6 or higher installed on your system.
pip install probabilistic.pyHere's a quick example to get you started with Probabilistic.
import probabilistic
def hello():
print("Hello!")
# Create a probabilistic function with a 50% execution probability
maybe_hello = probabilistic.function(func=hello, p=0.5)
# Execute the probabilistic function
maybe_hello()For documentation, please see the API Reference and Examples.
If you find this project helpful, please consider giving it a star on GitHub! 🌟
If you'd like to improve this project, feel free to submit a pull request or open an issue. Let's build something great together! 🚀
Happy Probabilistic Coding!