Clinical Trial Power & Sample Size Simulator
Interactive randomized-controlled-trial simulator: set the treatment effect size, sample size and significance level, watch simulated patients split into control and treatment arms, and see statistical power, the required sample size, and a live t-test p-value update in real time.
This simulator explores the core statistical decision behind every randomized controlled trial: how many patients does a study need to reliably detect a real treatment effect? Set a treatment effect size and sample size per arm, choose a significance threshold, and watch simulated patients render as a 3D swarm split into control and treatment arms beneath two theoretical bell-curve distributions whose overlap represents the risk of a missed effect. Enrolling patients and running the trial draws a genuine random sample and computes a real two-sample Student's t-test p-value, while live readouts track statistical power, the sample size needed for conventional 80% power, and the observed mean difference — the same power-analysis math biostatisticians use to size real clinical trials before recruitment begins.
This simulation allows you to explore the complex processes involved in medical advanced medical research, from initial hypothesis development through clinical trial execution and data analysis. Users can manipulate variables within a controlled environment to observe their impact on research outcomes, gaining insights into experimental design and potential pitfalls.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install