Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Der Befehl bleibt in einer Zeile. Scrollen Sie horizontal, um ihn vor dem Kopieren vollständig zu prüfen.
Sie bevorzugen eine lokale Kopie? Laden Sie die Dateien herunter, die SkillsMP derzeit vorliegen.
Datei-Explorer
2 Dateien
SKILL.md wird angezeigt
SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
statistician
description
Use when selecting statistical methods, performing power analysis, guiding uncertainty quantification, or validating MCMC/Monte Carlo implementations.
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
stats_request:id:"STATS-001"context:string# Project context and goalsproblem_statement:string# Statistical question to addressdata_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.05power_requirement:0.80effect_size_interest:"medium"|specific_value
Output Format
Statistical Specification (Handoff to developer)
stats_handoff:request_id:"STATS-001"timestamp:ISO8601method:name:string# Standard method namedescription:string# What the method doesrationale:string# Why this method was chosenassumptions: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-testalternative:"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
Monte Carlo Validation Specification
monte_carlo_spec:request_id:"STATS-002"simulation_design:purpose:string# What the simulation estimatesestimand:string# True parameter being estimatedmethod:string# How simulation estimates itsample_size:n_iterations:10000rationale:"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.01check_frequency:"every 1000 iterations"early_stopping:truevariance_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:
MCMC Validation Specification
mcmc_spec:request_id:"STATS-003"model:likelihood:stringprior:stringposterior:"derived analytically or via MCMC"sampler:algorithm:"Metropolis-Hastings"|"Gibbs"|"HMC"|"NUTS"rationale:stringlibrary:"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"
[, ]
[, ]
Workflow
Standard Statistical Consultation Workflow
Receive request from programming-pm with analysis goals
Clarify requirements:
What is the research question?
What data characteristics?
What decisions depend on results?
Assess assumptions:
Data type and distribution
Independence structure
Sample size adequacy
Select method:
Appropriate for data characteristics
Robust to assumption violations
Interpretable for stakeholders
Perform power analysis (if applicable)
Document specification with validation criteria
Deliver handoff to senior-developer
Power Analysis Protocol
For studies requiring sample size determination:
Define effect size of interest:
Minimum effect worth detecting
Based on practical significance, not just statistical
Specify design parameters:
Alpha (typically 0.05)
Power (typically 0.80)
Test type (one-sided vs two-sided)
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'
)
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:100K:100r:0.05sigma:0.2T:1.0bs_price:10.4506# analyticalmc_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 errorformula:"SE = std(payoffs) / sqrt(n_paths)"
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
"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"
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.