Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Honest Metrics from Small Samples

Stops scores and flags from reporting confident findings when there was too little data to measure them.

Claude's review

7/10 Sharp guidance on undefined statistics, sentinel choice, measured gates, mean vs median reversals and broad excepts, with tests.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Compute statistics, scores, and flags from samples that may be too small to support them — undefined dispersion returned as 0.0 and tripping a minimum threshold, sentinel choice (None vs 0 vs NaN), threshold blocks gated on "was this measured", reports that narrate findings from absent data, nullability as a public API change, `is None` vs truthiness, broad excepts that turn a metric bug into a normal-shaped result, and heavy-tailed samples where the mean points the opposite way to the median. Use when writing or reviewing a scoring/analysis pipeline, a z-score or outlier check, a quality or anomaly flag, a metrics rollup, a benchmark or cohort comparison, or any function that reduces a list of observations to one number a threshold or a report reads.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: reporting-derived-metrics
description: Compute statistics, scores, and flags from samples that may be too small to support them — undefined dispersion returned as 0.0 and tripping a minimum threshold, sentinel choice (None vs 0 vs NaN), threshold blocks gated on "was this measured", reports that narrate findings from absent data, nullability as a public API change, `is None` vs truthiness, broad excepts that turn a metric bug into a normal-shaped result, and heavy-tailed samples where the mean points the opposite way to the median. Use when writing or reviewing a scoring/analysis pipeline, a z-score or outlier check, a quality or anomaly flag, a metrics rollup, a benchmark or cohort comparison, or any function that reduces a list of observations to one number a threshold or a report reads.
---

# Reporting Derived Metrics

A derived metric is a number computed from a sample and then compared against a
threshold to produce a flag, a score, or a sentence a user reads as a finding.
The bugs are almost never in the arithmetic. They are at the two ends: what the
function returns when the sample is too small to support the statistic, and what
the flag layer does with that value.

## An undefined statistic is not zero

Dispersion — standard deviation, variance, coefficient of variation, burstiness,
mean gap between events — needs at least two observations. Ratios and rates need
a non-zero denominator. The reflex on the short-sample branch is `return 0.0`,
and that is the worst available answer, because `0` is a real and *extreme* point
on the same scale the threshold lives on.

Two shapes, both of which turn "no data" into a confident verdict:

- A **minimum threshold** (`variation < 2.5 → suspicious`) is tripped by `0.0`
  every single time. Any one-segment input is flagged, with a reason string that
  quotes a measurement that never happened: `low variation (0.00 < 2.5)`.
- A **z-score against a baseline** (`mean 7.1`, `sd 2.4`) scores `0.0` at
  `z = -2.96` — a hard outlier. The feature is reported as anomalous precisely
  when it was not measurable.

Note the direction: the *least* data produces the *strongest* verdict. Make
unmeasurable its own value.

```python
# Bad — 0.0 is indistinguishable from "genuinely no variation at all"
def dispersion(values: list[float]) -> float:
    if len(values) < 2:
        return 0.0
    return statistics.stdev(values)

...

From wdm0006's repository, MIT licence.

Related skills

  • Checked

    dbt platform migration

    Moves a dbt project from one warehouse to another and fixes SQL dialect gaps, so your models build again.

    by dbt-labs 777
    7/101 credit
  • Checked

    CSV and Excel merging

    Merges, stacks and dedupes CSV and Excel files into one clean table, then checks the row counts add up.

    by OneWave-AI 454
    7/101 credit
  • Checked

    BigQuery migration checks

    Validates that tables moved to BigQuery match their source on schema, aggregates and rows, so nothing is lost.

    by google 25k
    7/101 credit
  • Checked

    dbt Mesh contracts

    Checks whether a dbt model change breaks consumers and versions it, so downstream dashboards keep working.

    by dbt-labs 777
    7/101 credit
  • Checked

    SQL and dbt Analytics

    Writes analytical SQL and dbt models tested for grain and join errors, so the numbers come out right.

    by makifbaysal 123
    7/101 credit
  • Checked

    D3 Animated Data Charts

    Turns sourced data into honest, accessible animated D3 charts that render reliably frame by frame for video.

    by calesthio 262
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added