This Python project simulates drawing balls from a hat and calculates the probability of meeting certain criteria based on user-defined expectations.
- Ensure you have Python installed.
- Clone this repository in your machine.
git clone https://github.com/aymane66/probabilities-calculator.git
- Move to project directory.
cd probabilities-calculator
- Open main.py to see an example of how to use the probability calculator.
- Customize the hat and experiment parameters based on your requirements.
-
Random Seed: The random.seed function is used to ensure reproducibility of the experiments.
-
Experiment Simulation: The experiment function simulates drawing balls from the hat for a specified number of experiments.
-
Probability Calculation: The code calculates the probability of meeting user-defined expectations based on the experiment results.