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.
What runs in CodeSplash
- STAT122Baumgartner–Weiss–Schindler test Runs in CodeSplash
- STAT123Epps–Singleton test Runs in CodeSplash
- STAT125Lepage location and scale test Runs in CodeSplash
- STAT126Cucconi test Runs in CodeSplash
- Compare distributions (two or more groups) Verified in Python and R
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
One data set, eight tests
PredictPredict 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?
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.
Lepage: location plus scale
ReadRank 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:
It's for the case where you expect the groups to differ in location, spread or both. A rejection doesn't say which.
Build L
ExploreChange the difference in means and the ratio of spreads below. Watch which term of grows in each case. Then shift both at once.
BExplorable · Lepage location–scale test
Do two groups differ in location, in spread, or both?
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how L varies across samples when H₀ is true.
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .021).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- standardized Wilcoxon rank sum (location)
- 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 H₀.
Cucconi
ReadThe 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.
Here and are the two standardized sums, and 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.
BWS and Epps–Singleton
ReadBaumgartner–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.
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
View data
| supp | len |
|---|---|
| VC | 4.200 |
| VC | 11.500 |
| VC | 7.300 |
| VC | 5.800 |
| VC | 6.400 |
| VC | 10 |
| VC | 11.200 |
| VC | 11.200 |
| VC | 5.200 |
| VC | 7 |
| VC | 16.500 |
| VC | 16.500 |
| VC | 15.200 |
| VC | 17.300 |
| VC | 22.500 |
| VC | 17.300 |
| VC | 13.600 |
| VC | 14.500 |
| VC | 18.800 |
| VC | 15.500 |
| VC | 23.600 |
| VC | 18.500 |
| VC | 33.900 |
| VC | 25.500 |
| VC | 26.400 |
| VC | 32.500 |
| VC | 26.700 |
| VC | 21.500 |
| VC | 23.300 |
| VC | 29.500 |
| OJ | 15.200 |
| OJ | 21.500 |
| OJ | 17.600 |
| OJ | 9.700 |
| OJ | 14.500 |
| OJ | 10 |
| OJ | 8.200 |
| OJ | 9.400 |
| OJ | 16.500 |
| OJ | 9.700 |
| OJ | 19.700 |
| OJ | 23.300 |
| OJ | 23.600 |
| OJ | 26.400 |
| OJ | 20 |
| OJ | 25.200 |
| OJ | 25.800 |
| OJ | 21.200 |
| OJ | 14.500 |
| OJ | 27.300 |
| OJ | 25.500 |
| OJ | 26.400 |
| OJ | 22.400 |
| OJ | 24.500 |
| OJ | 24.800 |
| OJ | 30.900 |
| OJ | 26.400 |
| OJ | 27.300 |
| OJ | 29.400 |
| OJ | 23 |
Assumptions
- Independent groups — Each value belongs to one group and the groups are sampled independently.
Distribution tests
| Test | Statistic | df | p | p-value from |
|---|---|---|---|---|
| Kolmogorov–Smirnov | 0.3333 | — | .062 | exact |
| Anderson–Darling k-sample | 2.355 | — | .057 | permutation |
| Cramér–von Mises | 0.4406 | — | .057 | asymptotic |
| Baumgartner–Weiß–Schindler | 2.416 | — | .057 | permutation |
| Epps–Singleton | 12.313 | 4 | .015 | asymptotic χ² |
| Lepage (location and scale) | 3.890 | — | .133 | permutation |
| Cucconi (location and scale) | 2.226 | — | .100 | permutation |
| Wald–Wolfowitz runs | 33 | — | .742 | exact |
Groups
| supp | n | Median | IQR |
|---|---|---|---|
| OJ | 30 | 22.700 | 10.200 |
| VC | 30 | 16.500 | 11.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
))
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
| Test | Statistic | df | p | p-value from |
|---|---|---|---|---|
| Kolmogorov–Smirnov | 0.3333 | — | .062 | exact |
| Anderson–Darling k-sample | 2.355 | — | .057 | permutation |
| Cramér–von Mises | 0.4406 | — | .057 | asymptotic |
| Baumgartner–Weiß–Schindler | 2.416 | — | .057 | permutation |
| Epps–Singleton | 12.313 | 4 | .015 | asymptotic χ² |
| Lepage (location and scale) | 3.890 | — | .133 | permutation |
| Cucconi (location and scale) | 2.226 | — | .100 | permutation |
| Wald–Wolfowitz runs | 33 | — | .742 | exact |
Groups
| supp | n | Median | IQR |
|---|---|---|---|
| OJ | 30 | 22.700 | 10.200 |
| VC | 30 | 16.500 | 11.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,
})
Why is Epps–Singleton so low here?
ReflectTooth 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?
Check your understanding
CheckpointCheck yourself
A Lepage test has and . What is ?
Show the answer
Answer: 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.
Do it in CodeSplash
In the appUnder 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.
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)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)^2Recap
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.