A beautiful, interactive web application that simulates various probability problems using the Monte Carlo method. Visualize probability theory in action!
-
🧮 Multiple Simulation Types:
- 🎯 Custom Probability
- 🪙 Coin Flip
- 🎲 Dice Roll
- 🏐 Ball Draw
- 🎂 Birthday Paradox
- 🃏 Card Drawing
- 📈 Geometric Distribution
- 📊 Binomial Distribution
- 🚪 Monty Hall Problem
- 📶 Poisson Distribution
-
📊 Real-time Visualization: Watch as the simulated probability converges toward theoretical probability
-
⏱️ Adjustable Speed: Control how fast simulations run
-
📝 Detailed Statistics: Track success rate, total experiments, and more
-
📉 Error Analysis: See how close your simulation is to theoretical probability
-
🎨 Beautiful UI: Modern, responsive interface with animations
- ⚛️ React
- 📱 Next.js
- 🎨 Tailwind CSS
- 📊 Recharts
- 🎭 Lucide React Icons
- Node.js 18.0 or higher
- npm or yarn
-
Clone the repository:
git clone https://github.com/MYounesDev/probability-simulator.git cd probability-simulator
-
Install dependencies:
npm install # or yarn install
-
Run the development server:
npm run dev # or yarn dev
-
Open your browser and navigate to http://localhost:3000
- 🎯 Select a simulation type from the available options
- ⚙️ Adjust parameters specific to the simulation
▶️ Click "Start" to begin the simulation- 📊 Watch the probability converge toward the theoretical value
- 🔄 Reset the simulation to try different parameters
The Monte Carlo method involves running many random experiments and observing the frequency of specific outcomes. As the number of experiments increases, the observed probability converges to the theoretical probability according to the Law of Large Numbers.
- 📚 Built with Next.js
- 🎨 Styled with Tailwind CSS
- 📊 Visualized with Recharts
- 🎭 Icons provided by Lucide React
Made with ❤️ by @MYounesDev