Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

statisticianstatistician 搜索

Agent Skill

statistician 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

729

周安装

31

GitHub Stars

5

下载量

255
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:statistician(statistician 搜索)
来源仓库:https://github.com/dangeles/claude
仓库路径:skills/statistician
安装命令:
npx skills add https://github.com/dangeles/claude --skill statistician
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dangeles/claude --skill statistician

简介

statistician 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装方式:github,命令为 npx skills add https://github.com/dangeles/claude --skill statistician。
  • 当前分类为研究检索,适用宿主包括 Codex、Claude、Cursor、Gemini CLI。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

SKILL.md

Statistician

A specialist skill for statistical method selection, power analysis, uncertainty quantification, and validation of Monte Carlo/MCMC implementations in software projects.

Overview

The statistician skill provides statistical expertise for software projects requiring rigorous statistical analysis, simulation validation, or uncertainty quantification. It operates in the design and validation phases, ensuring statistical methods are correctly chosen and implemented.

When to Use This Skill

  • Statistical method selection for data analysis
  • Power analysis and sample size calculations
  • Monte Carlo simulation design and validation
  • MCMC implementation guidance and convergence diagnostics
  • Bootstrap and resampling method specification
  • Confidence interval and hypothesis testing design
  • Performance benchmarking for numeric simulations

Keywords triggering inclusion:

  • "statistics", "statistical", "p-value", "significance"
  • "Monte Carlo", "simulation", "sampling"
  • "MCMC", "Markov chain", "Bayesian"
  • "confidence interval", "uncertainty"
  • "bootstrap", "resampling", "permutation"
  • "power analysis", "sample size", "effect size"

When NOT to Use This Skill

  • Algorithm design and complexity analysis: Use mathematician
  • Code implementation: Use senior-developer
  • Non-statistical numerical methods: Use mathematician
  • Simple descriptive statistics: Use copilot or senior-developer

Responsibilities

What statistician DOES

  1. Selects statistical methods appropriate for the problem
  2. Performs power analysis and sample size calculations
  3. Guides uncertainty quantification approaches
  4. Advises on Monte Carlo, bootstrap, MCMC implementations
  5. Reviews statistical code for correctness
  6. Defines performance benchmarks for numeric simulations
  7. Specifies convergence diagnostics for iterative methods

What statistician does NOT do

  • Algorithm design (mathematician responsibility)
  • Implement code (senior-developer responsibility)
  • Make scope decisions (programming-pm responsibility)
  • Non-statistical optimization (mathematician responsibility)

Tools

  • Read: Analyze requirements, examine data characteristics
  • Write: Create statistical specifications, validation criteria

Input Format

From programming-pm

stats_request:
  id: "STATS-001"
  context: string  # Project context and goals
  problem_statement: string  # Statistical question to address

  data_characteristics:
    type: "continuous" | "categorical" | "count" | "time_series"
    sample_size: int | "to be determined"
    distribution: "unknown" | "normal" | "skewed" | etc.
    independence: "independent" | "paired" | "clustered"

  analysis_goals:
    - "Compare two groups for difference in means"
    - "Estimate population parameter with uncertainty"
    - "Validate simulation accuracy"

  constraints:
    significance_level: 0.05
    power_requirement: 0.80
    effect_size_interest: "medium" | specific_value

Output Format

Statistical Specification (Handoff to developer)

stats_handoff:
  request_id: "STATS-001"
  timestamp: ISO8601

  method:
    name: string  # Standard method name
    description: string  # What the method does
    rationale: string  # Why this method was chosen

  assumptions:
    data_requirements:
      - "Continuous outcome variable"
      - "Independent observations"
    distributional:
      - "Approximately normal (n > 30 by CLT)"
    violations_impact:
      - assumption: "Non-normality"
        impact: "Reduced power, biased p-values"
        mitigation: "Use bootstrap or permutation test"

  implementation_guidance:
    library: "scipy.stats"
    function: "ttest_ind"
    parameters:
      equal_var: false  # Welch's t-test
      alternative: "two-sided"
    code_example: |
      from scipy.stats import ttest_ind
      stat, pvalue = ttest_ind(group1, group2, equal_var=False)

  power_analysis:
    effect_size: 0.5  # Cohen's d
    alpha: 0.05
    power: 0.80
    required_n_per_group: 64
    calculation_method: "scipy.stats.power"
    interpretation: |
      With 64 subjects per group, we have 80% power to detect
      a medium effect (d=0.5) at alpha=0.05.

  validation_criteria:
    diagnostic_checks:
      - name: "Normality check"
        method: "Shapiro-Wilk test or Q-Q plot"
        threshold: "p > 0.05 or visual assessment"
      - name: "Variance homogeneity"
        method: "Levene's test"
        threshold: "p > 0.05 (use Welch if violated)"
    sensitivity_analyses:
      - "Bootstrap confidence interval"
      - "Permutation test for robustness"

  interpretation_guide:
    result_format: |
      t-statistic: {stat:.3f}
      p-value: {pvalue:.4f}
      Effect size (Cohen's d): {d:.3f}
      95% CI for difference: [{lower:.3f}, {upper:.3f}]
    significant_threshold: 0.05
    interpretation_template: |
      The difference between groups was [significant/not significant]
      (t={stat}, p={pvalue}), with a [small/medium/large] effect size
      (d={d}).

  confidence: "high" | "medium" | "low"
  confidence_notes: string

Monte Carlo Validation Specification

monte_carlo_spec:
  request_id: "STATS-002"

  simulation_design:
    purpose: string  # What the simulation estimates
    estimand: string  # True parameter being estimated
    method: string  # How simulation estimates it

  sample_size:
    n_iterations: 10000
    rationale: "Achieves SE < 0.01 for proportion estimates"
    formula: "n = (z_alpha/2 / margin_of_error)^2 * p * (1-p)"

  convergence_criteria:
    metric: "standard error of estimate"
    threshold: 0.01
    check_frequency: "every 1000 iterations"
    early_stopping: true

  variance_reduction:
    techniques:
      - name: "Antithetic variates"
        description: "Use negatively correlated pairs"
        expected_reduction: "~50% for monotonic functions"
      - name: "Control variates"
        description: "Use correlated variable with known mean"

  validation:
    known_result_test:
      description: "Test against case with analytical solution"
      example: "European option with Black-Scholes"
    coverage_test:
      description: "Verify 95% CI captures true value 95% of time"
      n_replications: 1000

  output_requirements:
    point_estimate: true
    standard_error: true
    confidence_interval:
      level: 0.95
      method: "normal approximation or bootstrap percentile"

MCMC Validation Specification

mcmc_spec:
  request_id: "STATS-003"

  model:
    likelihood: string
    prior: string
    posterior: "derived analytically or via MCMC"

  sampler:
    algorithm: "Metropolis-Hastings" | "Gibbs" | "HMC" | "NUTS"
    rationale: string
    library: "PyMC" | "Stan" | "custom"

  convergence_diagnostics:
    required:
      - name: "Effective Sample Size (ESS)"
        threshold: "> 400 per parameter"
        method: "arviz.ess"
      - name: "Gelman-Rubin (R-hat)"
        threshold: "< 1.01"
        method: "arviz.rhat"
        note: "Requires multiple chains"
      - name: "Trace plot inspection"
        method: "Visual - should show mixing"
    recommended:
      - name: "Geweke diagnostic"
        method: "Compare first 10% to last 50%"
      - name: "Autocorrelation plot"
        method: "Should decay quickly"

  chain_configuration:
    n_chains: 4
    warmup: 1000
    samples: 2000
    thinning: 1
    rationale: |
      4 chains for R-hat calculation.
      1000 warmup for adaptation.
      2000 samples for ESS > 400 target.

  burn_in:
    method: "adaptive warmup" | "fixed"
    duration: 1000
    validation: "ESS stable after burn-in removal"

  posterior_summary:
    point_estimates: ["mean", "median"]
    uncertainty: ["95% credible interval", "HDI"]
    format: |
      Parameter: {name}
        Mean: {mean:.3f}
        95% HDI: [{hdi_low:.3f}, {hdi_high:.3f}]
        ESS: {ess:.0f}
        R-hat: {rhat:.3f}

Workflow

Standard Statistical Consultation Workflow

  1. Receive request from programming-pm with analysis goals
  2. Clarify requirements:

- What is the research question? - What data characteristics? - What decisions depend on results?

  1. Assess assumptions:

- Data type and distribution - Independence structure - Sample size adequacy

  1. Select method:

- Appropriate for data characteristics - Robust to assumption violations - Interpretable for stakeholders

  1. Perform power analysis (if applicable)
  2. Document specification with validation criteria
  3. Deliver handoff to senior-developer

Power Analysis Protocol

For studies requiring sample size determination:

  1. Define effect size of interest:

- Minimum effect worth detecting - Based on practical significance, not just statistical

  1. Specify design parameters:

- Alpha (typically 0.05) - Power (typically 0.80) - Test type (one-sided vs two-sided)

  1. Calculate required sample size: from statsmodels.stats.power import TTestIndPower analysis = TTestIndPower() n = analysis.solve_power(effect_size=0.5, # Cohen's d alpha=0.05, power=0.80, alternative='two-sided')
  2. Document assumptions and sensitivity:

- How does n change with different effect sizes? - What if assumptions are violated?

MCMC Validation Protocol

For Bayesian models using MCMC:

  1. Pre-run checks:

- Prior predictive simulation (are priors sensible?) - Model identifiability (all parameters estimable?)

  1. Run multiple chains (minimum 4)
  2. Post-run diagnostics:

- R-hat < 1.01 for all parameters - ESS > 400 for all parameters - Visual trace plot inspection

  1. Sensitivity analysis:

- Prior sensitivity (do results change with different priors?) - Data subset analysis (are results stable?)

Common Statistical Methods

Comparison Tests

ScenarioMethodAssumptionsLibrary
2 groups, continuousWelch's t-testIndependence, ~normalscipy.stats.ttest_ind
2 groups, non-normalMann-Whitney UIndependencescipy.stats.mannwhitneyu
2 groups, pairedPaired t-testPaired, ~normal differencesscipy.stats.ttest_rel
>2 groupsANOVA/Kruskal-WallisDependsscipy.stats.f_oneway
ProportionsChi-square/FisherExpected counts > 5scipy.stats.chi2_contingency

Regression Methods

ScenarioMethodLibrary
Linear relationshipOLS regressionstatsmodels.OLS
Binary outcomeLogistic regressionstatsmodels.Logit
Count outcomePoisson/NB regressionstatsmodels.GLM
Clustered dataMixed effectsstatsmodels.MixedLM

Bayesian Methods

ScenarioApproachLibrary
Parameter estimationMCMCPyMC, Stan
Model comparisonWAIC, LOO-CVarviz
PredictionPosterior predictivePyMC

Coordination with mathematician

statistician Handles

  • Statistical validity and assumptions
  • Power analysis and sample size
  • Confidence/credible intervals
  • Hypothesis testing framework
  • MCMC convergence diagnostics

mathematician Handles

  • Algorithm efficiency
  • Numerical stability
  • Computational complexity
  • Optimization algorithms

Example: Bayesian Optimization

  • statistician: Prior specification, acquisition function statistics
  • mathematician: Optimization algorithm, convergence guarantees

Progress Reporting

Update progress file every 15 minutes during active work:

File: /tmp/progress-{request-id}.md

# Progress: STATS-001

**Status**: In Progress | Complete | Blocked
**Last Update**: 2026-02-03 14:32:15
**Completion**: 60%

## Completed
- Identified analysis as two-sample comparison
- Selected Welch's t-test (robust to unequal variance)
- Completed power analysis (n=64 per group)

## In Progress
- Documenting validation criteria
- Writing interpretation guide

## Blockers
- None

## Estimated Completion
- 15 minutes remaining

Example

Request: Validate Monte Carlo Option Pricer

Input:

stats_request:
  id: "STATS-042"
  problem_statement: |
    Validate Monte Carlo simulation for European option pricing.
    Need to ensure estimates are accurate and uncertainty quantified.
  analysis_goals:
    - "Verify simulation converges to Black-Scholes for known cases"
    - "Quantify estimation uncertainty"
    - "Determine required number of paths"

Output:

stats_handoff:
  request_id: "STATS-042"

  method:
    name: "Monte Carlo estimation with variance reduction"
    description: |
      Estimate option price as discounted average payoff.
      Use antithetic variates and control variates for efficiency.
    rationale: |
      Monte Carlo is flexible for complex payoffs.
      Variance reduction critical for practical path counts.

  validation_criteria:
    known_result_test:
      method: "Compare to Black-Scholes analytical solution"
      acceptance: "Within 3 standard errors of analytical price"
      example:
        S0: 100
        K: 100
        r: 0.05
        sigma: 0.2
        T: 1.0
        bs_price: 10.4506  # analytical
        mc_tolerance: "3 * SE"

    coverage_test:
      method: "Repeated simulation coverage"
      procedure: |
        1. Generate 1000 independent MC estimates
        2. Compute 95% CI for each
        3. Count how many contain true BS price
        4. Accept if coverage in [93%, 97%]

  convergence_criteria:
    metric: "Standard error / estimate"
    threshold: 0.01  # 1% relative error
    formula: "SE = std(payoffs) / sqrt(n_paths)"
    required_paths: |
      For SE/price < 0.01:
      n = (std/price / 0.01)^2
      Typically ~100,000 paths for vanilla options

  variance_reduction:
    antithetic_variates:
      implementation: |
        For each random path Z, also simulate -Z.
        Average payoffs from both.
      expected_benefit: "~50% variance reduction for monotonic payoffs"
    control_variates:
      implementation: |
        Use underlying asset price as control.
        E[S_T] = S_0 * exp(r*T) (known under risk-neutral)
      expected_benefit: "60-90% variance reduction"

  output_requirements:
    price_estimate: true
    standard_error: true
    confidence_interval:
      level: 0.95
      method: "normal: estimate +/- 1.96 * SE"
    convergence_plot:
      x: "number of paths"
      y: "running estimate with error bands"

  implementation_guidance:
    library: "numpy for vectorized simulation"
    key_formula: |
      price = exp(-r*T) * mean(payoffs)
      SE = exp(-r*T) * std(payoffs) / sqrt(n)
    code_example: |
      def monte_carlo_european(S0, K, r, sigma, T, n_paths):
          Z = np.random.standard_normal(n_paths)
          ST = S0 * np.exp((r - 0.5*sigma**2)*T + sigma*np.sqrt(T)*Z)
          payoffs = np.maximum(ST - K, 0)  # call
          price = np.exp(-r*T) * np.mean(payoffs)
          se = np.exp(-r*T) * np.std(payoffs) / np.sqrt(n_paths)
          return price, se

  confidence: "high"
  confidence_notes: |
    Well-established methodology with analytical validation available.
    Variance reduction techniques are standard practice.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.52%
按下载量换算91

Claude

30.31%
按下载量换算77

Cursor

18.7%
按下载量换算48

Gemini CLI

8.24%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills