A modern and interactive web application designed for the generation, visualization, and statistical evaluation of pseudorandom numbers. This simulation project allows users to experiment with different mathematical generation algorithms and subject the results to rigorous tests of uniformity and independence.
Course: COMPUTER SIMULATION
Code: 8108278 | Group: 2-0
Professor: Eng. JOSE OSBALDO ROJAS MORENO
Phase: 1st 50% Project
| Name | Code | Institutional Email |
|---|---|---|
| Camilo Andres Arias Tenjo | 202210549 | camilo.arias@uptc.edu.co |
| Jose Ortega Luis Castillo | 202210773 | jose.ortega01@uptc.edu.co |
- Linear Congruential: Generation using the classic linear recurrence relation.
- Multiplicative Congruential: Variant that uses a pure multiplier for specific sequences.
- Middle Square: Method based on extracting the middle digits of the square of a seed number.
Each test includes educational tooltips (rejection condition of
-
Chi-Square Test (
$\chi^2$ ): Goodness-of-fit evaluation through empirical counting by intervals. - Kolmogorov-Smirnov (K-S): Analysis of maximum differences between the theoretical distribution and the actual frequency distribution.
- Poker Test: Validation of probabilistic independence through the analysis of "hand" configurations.
An animated carousel of 5 visual dimensions powered by advanced visualizations in recharts:
- Scatter Plot: Visually evaluates basic stochastic density.
-
Lag Plot: Helps detect autocorrelations by plotting
$X_i$ against$X_{i+1}$ . - Frequency Histogram: Graphically corroborates the expected uniformity in the intervals (flattening).
- Trend Line: Shows macroscopic fluctuations throughout the iterations.
-
Cumulative Mean: Demonstrates the central limit theorem by confirming the asymptotic convergence of the average towards
$0.5$ .
- Elegant "Dark Mode" design, using conditional themes and fluid animations (
framer-motion). - Built-in informative explanations about the concept of a generator's Period (Complete vs Incomplete).
- Install required dependencies:
npm install
- Run the environment in development mode:
npm run dev
Note
This project has been built by structuring modern technologies in the Frontend (React, Vite, Tailwind CSS 4) applied to algorithmic and statistical calculation.