Statistical Methods

Compare Distributions Across Their Full Empirical CDFs

Define the research task

Use the two-sample Cramér–von Mises statistic to summarize distribution differences across the pooled empirical CDF rather than only the largest gap. Potential differences include location, scale and shape. Independent samples and the measurement process matter. The statistic is not expressed in the original measurement units and is not a clinical importance threshold.

Work through the check

  1. Retain each group’s original labels and sort within groups.
  2. Form pooled midranks, averaging ties.
  3. Apply the pooled-rank statistic formula.
  4. Inspect an empirical CDF plot to understand where the differences occur.
  5. If conducting a test, separately document exact or asymptotic calibration and whether continuity assumptions are plausible.

The calculator only audits T. It deliberately supplies no p value, equivalence conclusion or automatic test selection. Rounded or discrete observations require extra care with calibration.

Hypothetical example and reporting

Hypothetical samples 1,2,3 and 4,5,6 have pooled ranks 1,2,3 and 4,5,6. Here U = 81 and T = 81/54 − 35/36 = 19/36, approximately 0.527778. The separated samples make the direction visually obvious, but T itself is nondirectional. A reporting statement should name the statistic and accompany it with the actual distributions, not translate it into a difference in means.

Source and verification

Method checked 26 November 2026 against SciPy primary documentation: stats.cramervonmises_2samp. Examples are synthetic; this page does not assert human expert approval.

Open the two-sample cramer–von mises statistic.

Download the editable plain-text worksheet.

Related reading

Reading path: Analyze data. Guide 227 of 232. Choose any guide to suit your project.

Statistical Methods

Locate the Largest Gap Between Two Empirical Distributions

Practical steps and a hypothetical example: Locate the largest empirical cumulative-distribution gap.

Statistical Methods

Compare Reported Standard Errors with Empirical Simulation Variation

Use between-replicate spread to assess whether model-based uncertainty is calibrated.

Browse this reading pathTools for this stageGuides and downloads for this stage