A Jupyter Notebook visualiser for disrete binomial distributions
The notebook outputs two graphs, the former being the probability histogram of the binomial distribution and the latter being the comparison of the experimental probablities and the theoretical ones calculated with the binomial distribution formula:
In order to generate the binomial data, 4 parameters are required:
trials
- the amount of times to do the entire experiment (the greater the number of trials, the greated the resemblence to the theoretical probablitites)iterations
- the amount of a single random action makes up one experiment (for example, the experiment tossing a coin 10 times would have 10 for theiterations
parameter)success_number
- the amount of successful outcomes (for tossing a coin this would be 1)total_number
- the total amount of outcomes (for tossing a coin this would be 2)
Note: the probablity is calculated by success_number / total_number
Created by Nasser Kessas
PRs accepted, feel free to dive in! Open an issue or submit PRs.
Discrete Binomial Distribution Visualiser follows the Contributor Covenant Code of Conduct.