Skip to content

Location and scale together: Lepage, Cucconi, BWS and Epps–Singleton

Four more two-sample tests, each tuned to something different. See how far they can disagree on one data set, and how to pick one without shopping.

Advanced ~13 min9 steps

What runs in CodeSplash

You will be able to

  • Say what the Lepage and Cucconi tests combine
  • Describe what makes BWS and Epps–Singleton different from KS
  • Choose a test before you look, and explain why that matters

Read first

01

One data set, eight tests

Predict

Predict first

You run eight whole-distribution tests on tooth growth by supplement, one with each method.

How much do you expect their p-values to differ?

All within a narrow rangeThey spread widelyAll below 0.05
Reveal

They spread widely, from Epps–Singleton's p = .015 and BWS's p = .050 to Cucconi's p = .094, Lepage's p = .124 and the runs test's p = .742.

Quoting only the smallest would be shopping. Each test asks a different question, so choose yours first.

02

Lepage: location plus scale

Read

Rank tests come in two flavors: Wilcoxon for location and Ansari–Bradley for scale. The Lepage testLepage testA rank test that adds a Wilcoxon location statistic and an Ansari–Bradley scale statistic. adds the two, once each is standardized:

L=ZW2+ZAB2L = Z_W^2 + Z_{AB}^2

It's for the case where you expect the groups to differ in location, spread or both. A rejection doesn't say which.

03

Build L

Explore

Change the difference in means and the ratio of spreads below. Watch which term of LL grows in each case. Then shift both at once.

BExplorable · Lepage location–scale test

Do two groups differ in location, in spread, or both?

20
20
0.60
1.0
1.8
0.050

Your data

Drag a point or use ↑/↓ to change it
Group 1 · n = 20 · mean 0.67Group 2 · n = 20 · mean −0.26

If H₀ were true

L = 7.74
  1. The reference: how L varies across samples when H₀ is true.
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .021).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

L=zW2+zAB2∼χ22L = z_W^2 + z_{AB}^2 \sim \chi^2_2

With your numbers

L=2.222+1.682=7.74L = 2.22^2 + 1.68^2 = 7.74
zWz_W
standardized Wilcoxon rank sum (location)
zABz_{AB}
standardized Ansari–Bradley statistic (scale)

The verdict

L(2) = 7.74, p = .021

p ≤ α = .050: reject H₀

A joint test: reject when the groups differ in center, spread or both. Look at the two parts to see which.

Statistic
7.738
p-value
0.0209
Lepage location–scale test on Group 1: n = 20; Group 2: n = 20: L(2) = 7.74, p = .021. The p-value is below α = .050, so the data are hard to reconcile with H0.

Lepage location–scale test on Group 1: n = 20; Group 2: n = 20: L(2) = 7.74, p = .021. The p-value is below α = .050, so the data are hard to reconcile with H₀.

04

Cucconi

Read

The Cucconi testCucconi testA rank test of location and scale built from squared ranks and squared contrary ranks. is also about location and scale, but it uses one set of ranks in two ways: squared ranks, and squared ranks counted from the other end.

C=U2+V2−2ρUV2(1−ρ2)C = \frac{U^2 + V^2 - 2\rho UV}{2(1 - \rho^2)}

Here UU and VV are the two standardized sums, and ρ\rho is their correlation. It needs no separate scale test.

On tooth growth, Cucconi's statistic is 2.23 and Lepage's 3.89. Both are permutation tests here.

05

BWS and Epps–Singleton

Read

Baumgartner–Weiß–Schindler (BWS) is rank-based, but divides each rank gap by its variance. That gives more weight to the tails, much as Anderson–Darling does.

Epps–Singleton works differently. It compares the groups' empirical characteristic functions at two frequencies, and uses a chi-square reference: 12.31, p = .015. It suits discrete data, where ties trouble ECDF-based tests. Two frequencies can't see every difference, so the frequencies matter.

Distribution comparison — Kolmogorov–SmirnovRecorded · Python and R agreeRecorded 2026-11-17 · 26 values compared · largest relative difference 1.3e-13
R

Kolmogorov–Smirnov test, statistic = 0.33, p = .062, D = 0.33

Statistic
0.3333
p
0.0617
KS D
0.3333

Effect size

  • Kolmogorov–Smirnov D (largest ECDF gap) 0.3333

Plots

ECDFs of len by suppWhat share of values falls below any threshold, and how do groups differ across the whole range?
View data
supplen
VC4.200
VC11.500
VC7.300
VC5.800
VC6.400
VC10
VC11.200
VC11.200
VC5.200
VC7
VC16.500
VC16.500
VC15.200
VC17.300
VC22.500
VC17.300
VC13.600
VC14.500
VC18.800
VC15.500
VC23.600
VC18.500
VC33.900
VC25.500
VC26.400
VC32.500
VC26.700
VC21.500
VC23.300
VC29.500
OJ15.200
OJ21.500
OJ17.600
OJ9.700
OJ14.500
OJ10
OJ8.200
OJ9.400
OJ16.500
OJ9.700
OJ19.700
OJ23.300
OJ23.600
OJ26.400
OJ20
OJ25.200
OJ25.800
OJ21.200
OJ14.500
OJ27.300
OJ25.500
OJ26.400
OJ22.400
OJ24.500
OJ24.800
OJ30.900
OJ26.400
OJ27.300
OJ29.400
OJ23

Assumptions

  • Independent groups — Each value belongs to one group and the groups are sampled independently.

Distribution tests

TestStatisticdfpp-value from
Kolmogorov–Smirnov0.3333—.062exact
Anderson–Darling k-sample2.355—.057permutation
Cramér–von Mises0.4406—.057asymptotic
Baumgartner–Weiß–Schindler2.416—.057permutation
Epps–Singleton12.3134.015asymptotic χ²
Lepage (location and scale)3.890—.133permutation
Cucconi (location and scale)2.226—.100permutation
Wald–Wolfowitz runs33—.742exact

Groups

suppnMedianIQR
OJ3022.70010.200
VC3016.50011.900
  • Distribution tests compare whole distributions, not just centers: a small p says the shapes, spreads or locations differ somewhere.
  • Permutation p-values relabel the pooled values 299 times (seed 42); the smallest possible p is 1/300.
  • Ties: the exact p is computed conditionally on the tied values (the bound is checked only where the pooled sample changes value).
The exact R script · R R version 4.5.1 (2025-06-13)
# Compare distributions (two or more groups)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method distribution.compare 1.0.1 · spec 604b643e245a5a9c
# Dataset: toothgrowth (version 1)
# Runs on its own: outside the app, cs_publish() writes $CS_RESULT_PATH or prints the result JSON.

# %% Setup
library(codesplashr)

# %% Data
df <- as.data.frame(nanoparquet::read_parquet("tests/parity/fixtures/toothgrowth.parquet", col_select = c("len", "supp")))
n_input <- nrow(df)
df[["supp"]] <- factor(df[["supp"]], levels = c("OJ", "VC"))  # stored level order
df <- df[stats::complete.cases(df[c("len", "supp")]), , drop = FALSE]  # listwise deletion
df[] <- lapply(df, function(x) if (is.factor(x)) droplevels(x) else x)
n_dropped <- n_input - nrow(df)
warnings <- list()
if (n_dropped > 0) {
  warnings <- c(warnings, cs_warning("CS_W_ROWS_DROPPED", dropped = n_dropped, total = n_input))
}
if (n_input > 0 && nrow(df) == 0) cs_error("CS_E_NO_ROWS")
cs_check_finite_columns(df, c("len", "supp"))  # infinite values stop the run (registry/errors.yaml)

# %% Test
y <- "len"
g <- "supp"
present <- Filter(function(lv) any(df[[g]] == lv), levels(df[[g]]))
levels_g <- as.character(present)
groups <- lapply(present, function(lv) as.numeric(df[[y]][df[[g]] == lv]))
k <- length(groups)
test <- "all"
alternative <- "two.sided"
calibration <- "auto"
seed <- 42  # permutations relabel the pooled sample with the shared Wichmann-Hill stream
reps <- as.integer(299)
sesoi <- 0.2
alpha <- 0.05
two_only <- c("ks", "cvm", "bws", "es", "lepage", "cucconi", "runs")
labels_t <- c(ks = "Kolmogorov–Smirnov", ad = "Anderson–Darling k-sample", cvm = "Cramér–von Mises",
              bws = "Baumgartner–Weiß–Schindler", es = "Epps–Singleton", lepage = "Lepage (location and scale)",
              cucconi = "Cucconi (location and scale)", runs = "Wald–Wolfowitz runs")
if (k < 2) cs_error("CS_E_TOO_FEW_GROUPS", column = g, min = 2, k = k)
lead <- if (test %in% c("auto", "all")) (if (k == 2) "ks" else "ad") else test
if (k != 2 && lead %in% two_only) stop(sprintf("The %s test compares two groups; %s has %d. Use Anderson–Darling k-sample.", labels_t[[lead]], g, k))
names_t <- c(lead, if (test == "all") Filter(function(t) t != lead && (k == 2 || !(t %in% two_only)), cs_compare_test_names()) else character(0))
results <- lapply(names_t, function(t) cs_compare_test(groups, t, alternative = if (t == "ks") alternative else "two.sided",
                                                      calibration = calibration, reps = reps, seed = seed))
main <- results[[1]]
ks_d <- if (k == 2) cs_compare_test(groups, "ks")$statistic else NaN

# %% Result
n_all <- sum(vapply(groups, length, numeric(1)))
n_reject <- sum(vapply(results, function(r) is.finite(r$p) && r$p < alpha, logical(1)))
values <- list(n = n_all, groups = k, test = lead, statistic = main$statistic, p = main$p, calibration = main$calibration,
               ks_d = ks_d, n_reject = n_reject)
for (i in seq_len(k)) values[[sprintf("n[%s]", levels_g[i])]] <- length(groups[[i]])
if (test == "all") {
  for (r in results) values[[sprintf("stat[%s]", r$test)]] <- r$statistic
  for (r in results) values[[sprintf("p[%s]", r$test)]] <- r$p
}
verdict <- if (main$p < alpha) "differ" else "show no evidence of differing"
summary <- sprintf("%s: statistic = %s, %s (%s%s). The distributions of %s across %s %s.", main$label, formatC(main$statistic, digits = 4, format = "g"),
                   cs_fmt_p(main$p), main$calibration, if (main$calibration == "permutation") sprintf(", %d permutations, seed %d", reps, as.integer(seed)) else "",
                   y, g, verdict)
if (k == 2) {
  summary <- paste0(summary, sprintf(" The largest gap between the two ECDFs is D = %.3f", ks_d),
                    if (!is.null(sesoi)) sprintf(" — %s the smallest difference of interest (%s).", if (ks_d > sesoi) "beyond" else "within", format(sesoi)) else ".")
}
if (test == "all") summary <- paste0(summary, sprintf(" %d of %d tests reject at α = .05.", n_reject, length(results)))
rows <- lapply(results, function(r) list(test = r$label, statistic = r$statistic, df = r$df, p = r$p, calibration = r$calibration))
notes <- list("Distribution tests compare whole distributions, not just centers: a small p says the shapes, spreads or locations differ somewhere.")
if (any(vapply(results, function(r) r$calibration == "permutation", logical(1)))) {
  notes[[length(notes) + 1]] <- sprintf("Permutation p-values relabel the pooled values %d times (seed %d); the smallest possible p is 1/%d.", reps, as.integer(seed), reps + 1)
}
if (lead == "runs" && isTRUE(main$extra$ties_between > 0)) {
  warnings <- c(warnings, sprintf("%d tied value(s) occur in both groups; runs were counted with the tied values arranged to give the most runs (conservative).", as.integer(main$extra$ties_between)))
}
if (lead == "ks" && main$calibration == "exact" && length(unique(unlist(groups))) < n_all) {
  notes[[length(notes) + 1]] <- "Ties: the exact p is computed conditionally on the tied values (the bound is checked only where the pooled sample changes value)."
}
q <- function(x, p) stats::quantile(x, p, names = FALSE, type = 7)
cs_publish(list(
  method = "distribution.compare",
  methodVersion = "1.0.1",
  title = paste("Distribution comparison —", main$label),
  engine = cs_engine_info("stats", "nanoparquet"),
  n = n_all,
  summary = summary,
  apa = paste0(sprintf("%s test, statistic = %.2f, %s", main$label, main$statistic, cs_fmt_p(main$p)), if (k == 2) sprintf(", D = %.2f", ks_d) else ""),
  statistics = c(list(list(key = "statistic", label = "Statistic", value = main$statistic), list(key = "p", label = "p", value = main$p)),
                 if (k == 2) list(list(key = "ks_d", label = "KS D", value = ks_d)) else list()),
  tables = list(
    list(key = "tests", title = "Distribution tests", columns = list(
      list(key = "test", label = "Test", type = "string"), list(key = "statistic", label = "Statistic", type = "number"),
      list(key = "df", label = "df", type = "number"), list(key = "p", label = "p", type = "pvalue"),
      list(key = "calibration", label = "p-value from", type = "string")), rows = rows),
    list(key = "groups", title = "Groups", columns = list(
      list(key = "group", label = g, type = "string"), list(key = "n", label = "n", type = "integer"),
      list(key = "median", label = "Median", type = "number"), list(key = "iqr", label = "IQR", type = "number")),
      rows = lapply(seq_len(k), function(i) list(group = levels_g[i], n = length(groups[[i]]), median = stats::median(groups[[i]]),
                                                 iqr = q(groups[[i]], 0.75) - q(groups[[i]], 0.25))))
  ),
  effectSizes = if (k == 2) list(list(key = "ks_d", label = "Kolmogorov–Smirnov D (largest ECDF gap)", value = ks_d, method = "max |F₁ − F₂|")) else list(),
  assumptions = list(list(key = "independence", label = "Independent groups", status = "info", detail = "Each value belongs to one group and the groups are sampled independently.")),
  warnings = warnings,
  notes = notes,
  charts = list(cs_chart("ecdf", "ecdf", sprintf("ECDFs of %s by %s", y, g), list(x = cs_col(y, df[[y]]), group = cs_col(g, as.character(df[[g]]), levels = levels_g)))),
  values = values
))
Python

Kolmogorov–Smirnov test, statistic = 0.33, p = .062, D = 0.33

Statistic
0.3333
p
0.0617
KS D
0.3333

Effect size

  • Kolmogorov–Smirnov D (largest ECDF gap) 0.3333

To keep this page light, the plots are shown once, under the R tab.

Assumptions

  • Independent groups — Each value belongs to one group and the groups are sampled independently.

Distribution tests

TestStatisticdfpp-value from
Kolmogorov–Smirnov0.3333—.062exact
Anderson–Darling k-sample2.355—.057permutation
Cramér–von Mises0.4406—.057asymptotic
Baumgartner–Weiß–Schindler2.416—.057permutation
Epps–Singleton12.3134.015asymptotic χ²
Lepage (location and scale)3.890—.133permutation
Cucconi (location and scale)2.226—.100permutation
Wald–Wolfowitz runs33—.742exact

Groups

suppnMedianIQR
OJ3022.70010.200
VC3016.50011.900
  • Distribution tests compare whole distributions, not just centers: a small p says the shapes, spreads or locations differ somewhere.
  • Permutation p-values relabel the pooled values 299 times (seed 42); the smallest possible p is 1/300.
  • Ties: the exact p is computed conditionally on the tied values (the bound is checked only where the pooled sample changes value).
The exact Python script · Python Python 3.13.5 · scipy 1.18.1 · pandas 3.1.0
# Compare distributions (two or more groups)
# Generated by CodeSplash Analytics 1.0.0 on 2026-11-09 · method distribution.compare 1.0.1 · spec 604b643e245a5a9c
# Dataset: toothgrowth (version 1)
# Runs on its own: outside the app, cs.publish() writes $CS_RESULT_PATH or prints the result JSON.

# %% Setup
import math

import numpy as np
import pandas as pd

import codesplash as cs
from codesplash.stats import distribution as csd

# %% Data
df = pd.read_parquet("tests/parity/fixtures/toothgrowth.parquet", columns=["len", "supp"])
n_input = len(df)
df["supp"] = pd.Categorical(df["supp"], categories=["OJ", "VC"])  # stored level order
df = df.dropna(subset=["len", "supp"])  # listwise deletion over the analysis columns
df["supp"] = df["supp"].cat.remove_unused_categories()
n_dropped = n_input - len(df)
warnings = []
if n_dropped:
    warnings.append(cs.cs_warning("CS_W_ROWS_DROPPED", dropped=n_dropped, total=n_input))
if n_input and not len(df):
    cs.cs_error("CS_E_NO_ROWS")
cs.check_finite_columns(df, ["len", "supp"])  # infinite values stop the run (registry/errors.yaml)

# %% Test
y = "len"
g = "supp"
levels = [str(lv) for lv in df[g].cat.categories if (df[g] == lv).any()]
groups = [df.loc[df[g] == lv, y].to_numpy(dtype=float) for lv in df[g].cat.categories if (df[g] == lv).any()]
k = len(groups)
test = "all"
alternative = "two.sided"
calibration = "auto"
seed, reps = 42, int(299)  # permutations relabel the pooled sample with the shared Wichmann–Hill stream
sesoi = 0.2
alpha = 0.05
if k < 2:
    cs.cs_error("CS_E_TOO_FEW_GROUPS", column=g, min=2, k=k)
lead = test if test not in ("auto", "all") else ("ks" if k == 2 else "ad")
if k != 2 and lead in csd.TWO_SAMPLE_ONLY:
    raise ValueError(f"The {csd.COMPARE_TESTS[lead]} test compares two groups; {g} has {k}. Use Anderson–Darling k-sample.")
names = [lead] + ([t for t in csd.COMPARE_TESTS if t != lead and (k == 2 or t not in csd.TWO_SAMPLE_ONLY)] if test == "all" else [])
results = [csd.compare_test(groups, t, alternative=alternative if t == "ks" else "two.sided", calibration=calibration, reps=reps, seed=seed) for t in names]
main = results[0]
ks_d = csd.compare_test(groups, "ks")["statistic"] if k == 2 else math.nan

# %% Result
values = {"n": int(sum(len(x) for x in groups)), "groups": k, "test": lead, "statistic": main["statistic"], "p": main["p"],
          "calibration": main["calibration"], "ks_d": ks_d, "n_reject": sum(1 for r in results if np.isfinite(r["p"]) and r["p"] < alpha)}
values.update({f"n[{lv}]": int(len(x)) for lv, x in zip(levels, groups)})
if test == "all":
    values.update({f"stat[{r['test']}]": r["statistic"] for r in results})
    values.update({f"p[{r['test']}]": r["p"] for r in results})
differ = main["p"] < alpha
verdict = "differ" if differ else "show no evidence of differing"
summary = (f"{main['label']}: statistic = {main['statistic']:.4g}, {cs.fmt_p(main['p'])} ({main['calibration']}"
           + (f", {reps} permutations, seed {seed}" if main["calibration"] == "permutation" else "") + f"). The distributions of {y} across {g} {verdict}.")
if k == 2:
    summary += f" The largest gap between the two ECDFs is D = {ks_d:.3f}"
    if sesoi is not None:
        summary += f" — {'beyond' if ks_d > sesoi else 'within'} the smallest difference of interest ({sesoi:g})."
    else:
        summary += "."
if test == "all":
    summary += f" {values['n_reject']} of {len(results)} tests reject at α = .05."
rows = [{"test": r["label"], "statistic": r["statistic"], "df": r["df"], "p": r["p"], "calibration": r["calibration"]} for r in results]
notes = ["Distribution tests compare whole distributions, not just centers: a small p says the shapes, spreads or locations differ somewhere."]
if any(r["calibration"] == "permutation" for r in results):
    notes.append(f"Permutation p-values relabel the pooled values {reps} times (seed {seed}); the smallest possible p is 1/{reps + 1}.")
if lead == "runs" and main["extra"].get("ties_between"):
    warnings.append(f"{main['extra']['ties_between']} tied value(s) occur in both groups; runs were counted with the tied values arranged to give the most runs (conservative).")
if lead == "ks" and main["calibration"] == "exact" and len(np.unique(np.concatenate(groups))) < values["n"]:
    notes.append("Ties: the exact p is computed conditionally on the tied values (the bound is checked only where the pooled sample changes value).")
cs.publish({
    "method": "distribution.compare",
    "methodVersion": "1.0.1",
    "title": f"Distribution comparison — {main['label']}",
    "engine": cs.engine_info("pandas", "numpy", "scipy"),
    "n": values["n"],
    "summary": summary,
    "apa": f"{main['label']} test, statistic = {main['statistic']:.2f}, {cs.fmt_p(main['p'])}" + (f", D = {ks_d:.2f}" if k == 2 else ""),
    "statistics": [{"key": "statistic", "label": "Statistic", "value": main["statistic"]}, {"key": "p", "label": "p", "value": main["p"]}]
                  + ([{"key": "ks_d", "label": "KS D", "value": ks_d}] if k == 2 else []),
    "tables": [
        {"key": "tests", "title": "Distribution tests", "columns": [
            {"key": "test", "label": "Test", "type": "string"}, {"key": "statistic", "label": "Statistic", "type": "number"},
            {"key": "df", "label": "df", "type": "number"}, {"key": "p", "label": "p", "type": "pvalue"},
            {"key": "calibration", "label": "p-value from", "type": "string"}], "rows": rows},
        {"key": "groups", "title": "Groups", "columns": [
            {"key": "group", "label": g, "type": "string"}, {"key": "n", "label": "n", "type": "integer"},
            {"key": "median", "label": "Median", "type": "number"}, {"key": "iqr", "label": "IQR", "type": "number"}],
         "rows": [{"group": lv, "n": int(len(x)), "median": float(np.median(x)), "iqr": float(np.subtract(*np.quantile(x, [0.75, 0.25])))} for lv, x in zip(levels, groups)]},
    ],
    "effectSizes": [{"key": "ks_d", "label": "Kolmogorov–Smirnov D (largest ECDF gap)", "value": ks_d, "method": "max |F₁ − F₂|"}] if k == 2 else [],
    "assumptions": [{"key": "independence", "label": "Independent groups", "status": "info", "detail": "Each value belongs to one group and the groups are sampled independently."}],
    "warnings": warnings,
    "notes": notes,
    "charts": [cs.chart("ecdf", "ecdf", f"ECDFs of {y} by {g}", {"x": cs.col(y, df[y]), "group": cs.col(g, df[g].astype(str), levels=levels)})],
    "values": values,
})
06

Why is Epps–Singleton so low here?

Reflect

Tooth length is recorded to one decimal place, and there are ties. Each dose level also forms its own cluster.

Would you trust Epps–Singleton's small p-value over BWS's? What would it take to convince you that the difference is real? Would your choice change if you had to say in advance which test you would report?

07

Check your understanding

Checkpoint

Check yourself

A Lepage test has ZW=1.5Z_W = 1.5 and ZAB=1Z_{AB} = 1. What is LL?

Show the answer

Answer: 3.25

1.52+12=2.25+1=3.251.5^2 + 1^2 = 2.25 + 1 = 3.25.

Check yourself

A Lepage test rejects. What may you say?

Show the answer

Answer: c

The test combines two kinds of evidence. A rejection doesn't say which one caused it, so inspect both, keeping in mind that follow-ups chosen after the fact are exploratory.

Check yourself

You ran All tests side by side. One rejects at 0.05 and seven don't. How should you report it?

Show the answer

Answer: b

The side-by-side view is for understanding. It doesn't let you choose the winner afterwards, and picking the smallest of eight p-values inflates false positives.

08

Do it in CodeSplash

In the app

Under Test, name your test or choose All tests side by side to compare them. Permutation tests use a shared seeded stream, so Python and R give the same p-value. Raise Permutations for a final result.

This script computes the Lepage statistic from mid-ranks and reproduces 3.890.

Python
import numpy as np
import pandas as pd
from scipy import stats

d = pd.read_csv("toothgrowth.csv")
a = d.loc[d["supp"] == "OJ", "len"].to_numpy()
b = d.loc[d["supp"] == "VC", "len"].to_numpy()

n, m = len(a), len(b)
N = n + m
r = stats.rankdata(np.r_[a, b])
s = np.minimum(r, N + 1 - r)

def z(scores):
    return (scores[:n].sum() - n * scores.mean()) / np.sqrt(n * m * scores.var(ddof=1) / N)

print(z(r) ** 2 + z(s) ** 2)
R
d <- read.csv("toothgrowth.csv")
a <- d$len[d$supp == "OJ"]
b <- d$len[d$supp == "VC"]

n <- length(a); m <- length(b); N <- n + m
r <- rank(c(a, b))
s <- pmin(r, N + 1 - r)

z <- function(scores) {
  (sum(scores[1:n]) - n * mean(scores)) / sqrt(n * m * var(scores) / N)
}
z(r)^2 + z(s)^2
09

Recap

Recap
  • Lepage and Cucconi look at location and scale together; a rejection doesn't say which.
  • BWS weights the tails. Epps–Singleton compares characteristic functions at chosen frequencies.
  • These tests can disagree a lot on the same data, so choose one before you look.