Skill: stats

SkillAI & models

descriptive-statistics helpers — summary (mean/std/median), quantile, zscore normalization, and Pearson correlation on plain Python number lists (no pandas/numpy).

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Skill: stats skill

What this skill tells your AI

The instructions your AI receives, as published by pku-yuangroup/openai4s in skills/example_stats/SKILL.md and read by ahel’s review.

Lightweight descriptive-statistics helpers. Use this when a task needs quick summary statistics, quantiles, correlation, or z-score normalization on plain Python number lists — no pandas/numpy required.

Import

from example_stats.kernel import summary, quantile, zscore, correlation

Recipes

Describe a dataset in one call:

data = [4, 8, 15, 16, 23, 42]
s = summary(data)
print(s) # {'n':6,'mean':18.0,'std':13.49...,'min':4,'max':42,'median':15.5}

Get an arbitrary quantile (0..1):

p90 = quantile(data, 0.90)
print(p90)

Standardize values (z-scores, sample std):

z = zscore(data)
print(z) # list of z-scores, mean~0 std~1

Pearson correlation between two equal-length series:

r = correlation([1, 2, 3, 4], [2, 4, 6, 8])
print(r) # 1.0

Notes

  • summary uses SAMPLE std (n-1 denominator). Pass population=True for the n-denominator version.
  • All functions raise ValueError on empty input.
  • Everything is pure stdlib; safe to call inside the persistent kernel.

Signals

GitHub stars
409
Forks
48
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
example-stats
Source
github.com/pku-yuangroup/openai4s