A simple python program (similar to coin-toss-probability, this time with 6 variables) to visually compare simulated vs mathematical probability using random fair dice rolls. It can simulates any number of dice rolls and checks how close the experimental results get to the ideal 0.1667 mathematical probability for each number by using matplotlib graphing.
- Clone the repository
- Run the 'drpv.py' file
- Enter the number of dice rolls you want to simulate (better go above 100)
- It gives you a clean graph to see how simulated probability converges to 0.1667
- Random
- Matplotlib
Thankyou!