DEQ
Distributions: simulation
Simulates distributions through Monte Carlo.
2025.Feb.21 22:41:33
a, b Limits (left, right) or parameters.
Distribution           Distributions in the interval a, b.
Trials (N), seed   Monte Carlo trials and seed (Seeded: repeatable).
Points; xL, xR; yM  (n: autoscale) Plot: n. of points; left, right limits (if 'n': a, b); y max.
Show values Show graph coordinates.

Simulates a random variable with the selected disribution, in the given interval, (a, b), or these values as parameters (Beta, Gaussian).

For the (symmetric) triangular, it is: x = √(r/2) for r ≤ ½, and x = 1 − √[(1−r)/2], from F1 = 2x² and F2 = −2x² + 4x − 1 .

For the "generalized U-quadratic", a is the parabola "rise" (Pt, flecha, height of the parabola apex).

Draws plots of: theoretical and simulated curves.


Computation structure — A PHP file (this page: 'P-distrib.php') calls (via 'action=...') an intermediate PHP file ('Distrib.php'), which (through $_POST) sends the problem data as command line arguments to a Python script. This last does the computing, and makes 'subprocess' calls to 'gnuplot', for the final (temporary) webpage.

Languages used: PHP, for the web page; Python for computing; and 'gnuplot', for plotting.

Files involved: P-distrib.php (this one), Distrib.php, distrib.py.

Keywords: PHP, Python script, subprocess, gnuplot.

References: Plate: SimulDistrib

• (Wikipedia) PHP (from Personal Home Page)

• Python scipy.stats.beta, accessed 30-Sep-2024.

• icSoftComp2024, 6.th International Conference on Soft Computing and its Engineering Applications, Bangkok (Thailand), 10–12 Dec 2024.

• 1891-09-14: Vinogradov, Ivan Matveevich (Иван Матвеевич Виноградов) (†1983-03-20, 91 yrs.).

 
 
Valid HTML 5! IST http://web.ist.utl.pt/~mcasquilho/compute/icSoftComp2024/distrib/P-distrib.php
Created: 2024-09-20 — Last modified: 2024-11-22