This program calculates the Poisson Distribution for a given set of numbers and displays its graph.
The Poisson Distribution is a probability distribution that represents the number of events occurring in a fixed interval of time or space, given a known average rate of occurrence. This program allows you to calculate the Poisson Distribution and visualize it as a graph. More Information
_______________________________________________________________________________________
| |
| The formula for the Poisson Distribution is as follows: |
| |
| 𝑦 = (𝑒^−𝜆 * 𝜆^𝑥) / 𝑥! |
| |
| - 𝑦: Probability mass function |
| - 𝑥: Input value |
| - 𝜆: Mean or average rate of the event |
| - 𝑒: Mathematical constant Euler's number (approximately 2.71828) |
| - 𝑥!: Factorial of 𝑥 |
|_______________________________________________________________________________________|
-
Clone the repository or download the code files.
-
Make sure you have NumPy , Matplotlib and Math installed. If not, you can install them using pip:
___________________________________________________ | | | *** pip install math *** | | *** pip install numpy *** | | *** pip install matplotlib *** | |__________________________________________________|
- Run the program.
- Enter a list of numbers (comma-separated) when prompted.
- The program will calculate the average of the entered numbers.
- It will then generate the Poisson Distribution graph and display it.
************************************************************************************
* (: *** Welcome *** :) *
* *
* You can use this program to calculate the *
* (Poisson Distribution) and (display its Graph). *
* Just enter your list of numbers. *
* *
************************************************************************************
* The formula for Poisson Distribution is as follows: *
* 𝑦 = (𝑒^−𝜆 * 𝜆^𝑥) / 𝑥! *
* *
* ** 𝑦 = probability mass function *
* ** 𝑥 = input value *
* ** 𝜆 = mean or average rate of the event *
* ** 𝑒 = mathematical constant Euler's number *
* ** 𝑥! = factorial of x *
* *
************************************************************************************
Enter a list of numbers (comma-separated): 1,2,3,4,5
Average: 3.0
---> *(The program will display the Poisson Distribution graph based on the entered numbers.)* <---