Stats demo

Welcome to Stats Demo. This is a Github site that provides some demonstrations of statistics. The author is Hoang Bao Long, MD MPH—a medical doctor, epidemiologist, and a lecturer at VinUniversity, Hanoi, Vietnam. Visit his personal website for more information.

Last updated: August 2025.

List of demos

Random error
… and sampling distribution

This demo visualizes the concept of random error and sampling distribution. It generates random numbers from a normal distribution and plots the histogram.

Go to Demo
Diagnostic accuracy
(Se, Sp, PPV, NPV)

This demo allows you to see how diagnostic accuracy measures change under different conditions.

Go to Demo
Confounding
(one of the three bias groups)

This demo visualizes how confounding bias affects the exposure-outcome association.

Go to Demo