stats-methods
БесплатноБез исполняемых скриптовНе проверенApply statistics for summaries, tests, distributions, experiments, outliers, and trends.
от okou-ai★ 81 звезда на GitHubОб этом скилле
Summarizing Numeric Data
Choosing a Center Metric
| Data Characteristic | Recommended Measure | Rationale |
|---|---|---|
| Numeric, meaningful additive scale | Mean | Reflects the total per observation; sensitive to extremes |
| Skewed numeric data | Median and relevant quantiles | Describes the middle and tails without letting extremes dominate |
| Nominal categories | Counts, proportions, mode | Category labels have no numeric order or mean |
| Ordinal responses | Distribution, median, ordered quantiles | Preserves ranking without assuming equal spacing |
| Revenue per user or other skewed economic data | Mean for economics; median/quantiles for typical experience | Different summaries answer different questions |
Choose summaries for the question and measurement scale. Do not average IDs or category codes, or require both mean and median for every KPI. A mean-median gap can suggest asymmetry but does not diagnose the distribution on its own.
Quantifying Variability
- Standard deviation: Root mean squared deviation (with the appropriate population or sample denominator); useful beyond bell-shaped data, but not resistant to extremes.
- IQR (interquartile range): Gap between the 25th and 75th percentiles; resistant to extreme values.
- Coefficient of variation: Standard deviation divided by the mean; meaningful for ratio scales with a meaningful zero and positive mean. It is unstable near zero and usually unsuitable for negative means or arbitrary origins such as Celsius.
- Range: Maximum minus minimum; gives a quick but outlier-sensitive view of data spread.
Telling the Story with Percentiles
Choose percentiles relevant to the decision; extreme quantiles in small samples are unstable and depend on interpolation. The following are positions, not guaranteed boundaries of "typical" values:
p1: First percentile (not the minimum)
p5: Fifth percentile
p25: First quartile
p50: Median
p75: Third quartile
p90: Top 10% threshold (heavy users, premium tier)
p95: Ninety-fifth percentile
p99: Extreme top 1%
Sample insight: "Half of all sessions last under 4.2 minutes, yet the top decile exceeds 22 minutes, which pushes the average to 7.8 minutes."
Characterizing Distributions
For numeric measures relevant to the question, examine:
- Shape: Gaussian, right-tailed, left-tailed, bimodal, uniform, heavy-tailed
- Center: Mean vs. median and the magnitude of their difference
- Spread: Standard deviation or IQR as appropriate
- Extremes: Count and severity of outliers
- Boundaries: Limits implied by the metric definition; growth and other ratios need not lie between 0% and 100%
Trend Analysis and Projection
Smoothing Noisy Time Series
# Weekly smoother — useful for daily data with weekday/weekend cycles
df['smooth_7'] = df['metric'].rolling(window=7, min_periods=1).mean()
# Four-week smoother — reduces short-term noise; does not remove all seasonality
df['smooth_28'] = df['metric'].rolling(window=28, min_periods=1).mean()
Period Comparisons
- Week-over-week: Full week versus prior full week; for daily values, match weekdays
- Month-over-month: Calendar month versus prior calendar month
- Year-over-year: Matched periods across years; check holiday shifts, trading days, and definition changes
- Same-calendar-day: Matches the exact date from the prior year
Measuring Growth
Simple rate: (current - prior) / prior
CAGR: (final / initial) ^ (1 / n_years) - 1
Log rate: ln(current / prior)
Simple growth is undefined at a zero base and often misleading for negative bases; show absolute change and explain the sign convention. Use CAGR and log growth for strictly positive values, with a valid elapsed interval. Do not silently replace zero or negative inputs. Log growth is additive over time, not a general fix for volatility.
Spotting Seasonal Cycles
- Visually inspect the raw series first
- Aggregate by day-of-week to surface weekly rhythms
- Aggregate by calendar month to surface annual rhythms
- Use matched-period comparisons where informative; holiday shifts and changing business conditions can still confound them
Lightweight Forecasting Approaches
For analysts who need quick projections rather than full modeling:
- Naive: Forecast equals the most recent observation. Serves as the minimum-viable baseline.
- Seasonal naive: Forecast equals the value from the same period in the prior cycle.
- Linear extrapolation: Fit a straight line to recent history. Only appropriate when the trend is clearly linear.
- Trailing average: Use a rolling mean as the projected value.
Report a conditional point forecast when supported and explain the method, horizon, and assumptions. Add a prediction interval only when a model, validation errors, or another stated method supports its coverage. A sensitivity scenario varies explicit assumptions; it is not a co
Установить stats-methods в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл stats-methods?
Apply statistics for summaries, tests, distributions, experiments, outliers, and trends.
Как установить скилл stats-methods?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл stats-methods запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic