A comprehensive Streamlit application to visualize and understand fundamental probability distributions. Explore Bernoulli, Binomial, Normal, Poisson, Exponential distributions, analyze the Central Limit Theorem, and run Monte Carlo simulations.
- Interactive Visualizations: Adjust parameters and see real-time updates to distribution plots.
- Bernoulli Distribution: Explore single-trial success/failure with probability slider.
- Binomial Distribution: Simulate coin flips/trials with varying
nandp. - Normal Distribution: Adjust mean (μ) and standard deviation (σ) to see the bell curve transform.
- Poisson Distribution: Analyze rare events with the lambda (λ) parameter.
- Exponential Distribution: Understand waiting times between events.
- Central Limit Theorem: Prove the CLT by observing the convergence of sample means to a normal distribution.
- Monte Carlo Simulation: Simulate random processes like coin flips to verify theoretical probabilities.
- Python 3.7+
- pip (Python package installer)
-
Clone the repository (or download the source code):
git clone https://github.com/shuvam776/Distribution.git cd Distribution -
Install dependencies: This project uses
streamlit,numpy, andmatplotlib.pip install -r requirements.txt
-
Run the application:
streamlit run app.py
- Open your web browser and navigate to the local URL provided by Streamlit (usually
http://localhost:8501). - Use the sidebar on the left to select the distribution you want to explore.
- Adjust the sliders to change the parameters of the distribution.
- Observe the probability plot and the statistics below it.
If you encounter issues running the app, especially on Windows, ensure you are using the correct command:
streamlit run app.py --server.port=8501