HomeMedicine & BiophysicsClinical Trial Design Simulator

Clinical Trial Design Simulator

Interactive randomized controlled trial simulator: watch patients randomize into treatment and control groups, each with a hidden true recovery probability plus noise, then see the trial compute a real two-proportion z-test p-value and confidence interval as sample size changes.

Medicine & Biophysics3DModerate60 FPS
clinical-trials-basics ↗ Open standalone

This simulator visualizes the core statistical machinery of a randomized controlled trial. A pool of simulated patients is randomly split into a treatment arm (real drug) and a control arm (placebo); each patient carries a hidden true recovery probability built from a baseline rate, the drug's real effect if they were randomized to treatment, and individual noise. After the trial "runs," recovery outcomes are revealed group by group and a real two-proportion z-test computes the p-value and 95% confidence interval for the difference between arms. Adjust sample size, true effect size and patient variability to see how statistical power — the ability to detect a real effect — depends on all three.

⚙ Under the hood

Randomized controlled trial simulator: patients randomize into treatment and control arms, each with a hidden true recovery probability plus individual noise, and the trial computes a real two-proportion z-test p-value and 95% confidence interval as sample size, effect size and variability change.

Three.jsStatisticsClinical TrialsRandomizationHypothesis Testing

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)