Comparison of Two Populations

A short compilation of visual methods for comparing two samples.

Visual Tools

  1. Box Plots
  2. Bee Swarm Plots
  3. Violin Plots
  4. Histograms
  5. Kernel Density Estimation
  6. Empirical ROC
  7. Empirical Cumulative Distribution Functions

Hypothesis Tests

  1. Kolmogorov-Smirnov
  2. Anderson-Darling

You can find the Python code below or in this Git Link.


Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.


View this gist on GitHub

2 thoughts on “Comparison of Two Populations

  1. For the empirical ROC, the value of the AUC is relevant in any way to determine if the two sample come from the same distribution? Which of those methods can be generalized to compare more than two samples?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top
%d bloggers like this: