/data-utils:standard-deviationfrom data-utils
Computes standard deviation, variance, IQR, MAD, and CV for numeric columns in datasets. Handles sample vs. population formulas, grouped computation, and flags when SD is misleading due to skew or outliers.
Ships in data-utils. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Compute standard deviation for one or more numeric columns, plus the context needed to actually use the number: sample vs. population formula, comparison to related spread measures, and warnings when SD is the wrong summary.
sample (n-1 denominator, default) or population (n denominator). Default is sample, because almost all real data is a sample of something.duckdb — built-in stddev_samp(), stddev_pop(), variance(), quantile_cont().uv run --with pandas --with scipy python -c '...' — MAD, trimmed SD, bootstrap CI for SD.For each candidate numeric column:
Report any column you skipped and why.
For each column (and each group, if grouping):
| Statistic | What it tells you |
|---|---|
n (non-null count) | Sample size the SD is based on. |
mean, median | Centre. If they differ substantially, distribution is skewed. |
stddev_samp | Standard deviation, n-1 denominator. Default report value. |
variance_samp | Square of SD. Report if user explicitly wants it. |
min, max | Range. Flag if max is >10× the 99th percentile — outlier pulling SD up. |
q25, q75, IQR | Robust spread — compare to SD. |
mad (median absolute deviation) | Robust SD analogue. MAD × 1.4826 ≈ SD if data is normal. |
cv (coefficient of variation) = SD / mean | Dimensionless spread. Only meaningful when mean > 0 and the column has a natural zero (not temperatures-in-C). |
SQL sketch in DuckDB:
SELECT
count(col) AS n,
avg(col) AS mean,
median(col) AS median,
stddev_samp(col) AS sd,
quantile_cont(col, 0.25) AS q25,
quantile_cont(col, 0.75) AS q75,
quantile_cont(col, 0.75) - quantile_cont(col, 0.25) AS iqr,
min(col) AS min,
max(col) AS max
FROM '<file>';
For each column, check:
Compute Step 2 statistics per group. Additionally surface:
stddev(group_means) to mean(group_sds)).Write outputs/standard-deviation/report.md:
trust flag (ok / skewed / heavy-tailed / small-n / near-constant).Keep it concise. SD is a primitive; this skill should feed other skills, not produce a wall of prose.
multivariate-analysis (which needs standardised inputs) and forensic-sweep (which uses SD patterns to detect tampering).What SKILL.md sets; muted values are Claude Code's defaults
data-utils@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin data-utils2 plugins ship this exact skill · first indexed Oct 15, 2026
47 skills in this plugin
/add-changelogAdd or update a CHANGELOG.md in a data repository, recording dataset versions, schema changes, row-count deltas, enrichments applied, and re-publications. Follows Keep-a-Changelog conventions adapted for datasets. Use when the user wants versioned documentation of how a dataset has evolved over time./add-data-dictionaryCreate a data dictionary for a dataset (CSV, JSON, JSONL, Parquet, Excel) that documents every column/field — name, type, description, units, example values, nulls allowed, source. Use when a dataset has no accompanying documentation and the user wants one generated./add-iso3166Add ISO 3166 country codes (alpha-2, alpha-3, numeric) to a dataset that references countries by name but lacks standardised codes. Use when the user has a CSV/JSON/Parquet/Excel dataset with country names and wants ISO 3166 codes added as new columns/fields.Other plugins' skills for the same job