This program allows you to calculate the statistics of a dataset and visualize the Uniform Distribution by plotting its graph.
-
The Uniform Distribution, also known as the Rectangular Distribution, is a probability distribution in which every possible outcome within a given range is equally likely to occur. It is characterized by a constant probability density function (pdf) across the range.
-
In a Uniform Distribution, the probability density function is represented by a horizontal line. The height of the line remains constant within the range, indicating the equal likelihood of any value occurring. The range is defined by two parameters: the minimum value (a) and the maximum value (b).
-
Clone the repository or download the code files.
-
Make sure you have NumPy and Matplotlib installed. If not, you can install them using pip:
__________________________________________________ | | | *** pip install numpy *** | | *** pip install matplotlib *** | |__________________________________________________|
- Run the program.
- Enter a list of numbers separated by commas when prompted.
- The program will calculate the mean of the input data and display it.
- The program will generate a graph of the Uniform Distribution based on the input data.
************************************************************************************
* (: *** Welcome *** :) *
* *
* You can use this program to calculate the *
* (Uniform Distribution) and (display its Graph). *
* Just enter your list of numbers. *
* *
************************************************************************************
* The formula for Uniform Distribution (Probability Density Function): *
* 𝑦 = 1 / (𝑏 - 𝑎) *
* - 𝑦 = probability density function *
* - 𝑎 = minimum value *
* - 𝑏 = maximum value *
* *
************************************************************************************
---> Enter a list of numbers (comma-separated): 2.5, 4, 3, 3.8, 5, 6, 2.3, 4.5
---> Mean: 3.8625
---> *(The program will display the Poisson Distribution graph based on the entered numbers.)* <---