Elamur: **Mova** · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/tools/distcheck/)

[Mova](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [tools](https://md.mova.elamur.ai/free/en/docs/tools/) / distcheck — the distribution check

# distcheck — the distribution check

`distcheck` applies the rule of [Distributions as a test tool](https://md.mova.elamur.ai/free/en/docs/repo-docs/distributions/) to a TSV: per group of comparable items the median is the norm, and every item 5× from it in either direction is printed as worth a look, 10× as suspect, 20× as a bug. A zero beside a positive norm and a positive value beside a zero norm are bugs; zero beside zero is at the norm. A group with fewer items than `--min-n` (default 5) gets quantiles but no norm.

## Run

```
cargo build --release -p distcheck
target/release/distcheck [--item N] [--value N] [--group N] [--per N] [--scale X] [--header] [--min-n 5] \
    [--control] [--fail-at look|suspect|bug] FILE|-
```

Columns are 1-based: item 1 and value 2 by default, no group (one group `all`). `--per N` divides the value by a size column, `--scale 1000` turns it into «per 1,000». Blank lines and lines starting with `#` are skipped; rows whose value or size is not a finite number (or a size ≤ 0) are listed as unreadable, the first 20 with their line numbers.

The report gives per group its size, norm, p10, p25, p50, p75, p90 and max, the counts per level, and every flagged item, farthest first.

`--control` is the negative control: it adds one item `<control>` 25× the norm to every group with a norm and exits 1 unless each lands in the report as a bug. `--fail-at` exits 1 when a real item reaches the level. Usage and read errors exit 2.

## Limits

No histogram shape test (the unimodality check the doc suggests after a transform). The caller chooses what is comparable through the group column; a wrong grouping hides or invents outliers. A flag is a place to look, not a diagnosis.

- [← previous General language dictionary](https://md.mova.elamur.ai/free/en/docs/tools/dictionary/)
- [next → Mova Eel](https://md.mova.elamur.ai/free/en/docs/tools/eel/)
- [↑ back to tools](https://md.mova.elamur.ai/free/en/docs/tools/)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://mova.elamur.ai/sitemap.xml) · [llms.txt](https://mova.elamur.ai/llms.txt)
