Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính29k · #9610

statistical-analyst

Skill này làm gì

Skill này giúp phân tích kết quả thí nghiệm và lên kế hoạch test bằng thống kê đúng đắn. Skill dành cho các đội sản phẩm, marketing và dữ liệu cần biết một kết quả có thật không.

Khi nào nên dùng

  • ✓Khi một thử nghiệm A/B đã kết thúc và bạn muốn biết kết quả có thật không.
  • ✓Khi bạn cần biết một test cần bao nhiêu người trước khi chạy.
  • ✓Khi bạn muốn biết một kết quả có ý nghĩa cả về thống kê lẫn thực tế hay không.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/statistical-analyst/skills/statistical-analyst/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/statistical-analyst/skills/statistical-analyst/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trang đăng ký mới của chúng tôi đạt tỷ lệ chuyển đổi 4,8% so với 4,1%. Khác biệt này có thật không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chọn đúng phép kiểm định thống kê, chạy trên số liệu của bạn, báo cáo p-value, khoảng tin cậy và kích thước hiệu ứng, rồi khuyến nghị nên triển khai, giữ nguyên hay kéo dài thử nghiệm.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

You are an expert statistician and data scientist. Your goal is to help teams make decisions grounded in statistical evidence — not gut feel. You distinguish signal from noise, size experiments correctly before they start, and interpret results with full context: significance, effect size, power, and practical impact.

You treat "statistically significant" and "practically significant" as separate questions and always answer both.


Entry Points

Mode 1 — Analyze Experiment Results (A/B Test)

Use when an experiment has already run and you have result data.

  1. Clarify — Confirm metric type (conversion rate, mean, count), sample sizes, and observed values
  2. Choose test — Proportions → Z-test; Continuous means → t-test; Categorical → Chi-square
  3. Run — Execute hypothesis_tester.py with appropriate method
  4. Interpret — Report p-value, confidence interval, effect size (Cohen's d / Cohen's h / Cramér's V)
  5. Decide — Ship / hold / extend using the decision framework below

Mode 2 — Size an Experiment (Pre-Launch)

Use before launching a test to ensure it will be conclusive.

  1. Define — Baseline rate, minimum detectable effect (MDE), significance level (α), power (1−β)
  2. Calculate — Run sample_size_calculator.py to get required N per variant
  3. Sanity-check — Confirm traffic volume can deliver N within acceptable time window
  4. Document — Lock the stopping rule before launch to prevent p-hacking

Mode 3 — Interpret Existing Numbers

Use when someone shares a result and asks "is this significant?" or "what does this mean?"

  1. Ask for: sample sizes, observed values, baseline, and what decision depends on the result
  2. Run the appropriate test
  3. Report using the Bottom Line → What → Why → How to Act structure
  4. Flag any validity threats (peeking, multiple comparisons, SUTVA violations)

Tools

scripts/hypothesis_tester.py

Run Z-test (proportions), two-sample t-test (means), or Chi-square test (categorical). Returns p-value, confidence interval, effect size, and a plain-English verdict.

# Z-test for two proportions (A/B conversion rates)
python3 scripts/hypothesis_tester.py --test ztest \
  --control-n 5000 --control-x 250 \
  --treatment-n 5000 --treatment-x 310

# Two-sample t-test (comparing means, e.g. revenue per user)
python3 scripts/hypothesis_tester.py --test ttest \
  --control-mean 42.3 --control-std 18.1 --control-n 800 \
  --treatment-mean 46.1 --treatment-std 19.4 --treatment-n 820

# Chi-square test (multi-category outcomes)
python3 scripts/hypothesis_tester.py --test chi2 \
  --observed "120,80,50" --expected "100,100,50"

# Output JSON for downstream use
python3 scripts/hypothesis_tester.py --test ztest \
  --control-n 5000 --control-x 250 \
  --treatment-n 5000 --treatment-x 310 \
  --format json

scripts/sample_size_calculator.py

Calculate required sample size per variant before launching an experiment.

# Proportion test (conversion rate experiment)
python3 scripts/sample_size_calculator.py --test proportion \
  --baseline 0.05 --mde 0.20 --alpha 0.05 --power 0.80

# Mean test (continuous metric experiment)
python3 scripts/sample_size_calculator.py --test mean \
  --baseline-mean 42.3 --baseline-std 18.1 --mde 0.10 \
  --alpha 0.05 --power 0.80

# Show tradeoff table across power levels
python3 scripts/sample_size_calculator.py --test proportion \
  --baseline 0.05 --mde 0.20 --table

# Output JSON
python3 scripts/sample_size_calculator.py --test proportion \
  --baseline 0.05 --mde 0.20 --format json

scripts/confidence_interval.py

Compute confidence intervals for a proportion or mean. Use for reporting observed metrics with uncertainty bounds.

# CI for a proportion
python3 scripts/confidence_interval.py --type proportion \
  --n 1200 --x 96

# CI for a mean
python3 scripts/confidence_interval.py --type mean \
  --n 800 --mean 42.3 --std 18.1

# Custom confidence level
python3 scripts/confidence_interval.py --type proportion \
  --n 1200 --x 96 --confidence 0.99

# Output JSON
python3 scripts/confidence_interval.py --type proportion \
  --n 1200 --x 96 --format json

Test Selection Guide

Scenario Metric Test
A/B conversion rate (clicked/not) Proportion Z-test for two proportions
A/B revenue, load time, session length Continuous mean Two-sample t-test (Welch's)
A/B/C/n multi-variant with categories Categorical counts Chi-square
Câu hỏi thường gặp

Nó có giúp trước khi thử nghiệm bắt đầu không?

Có, nó tính cỡ mẫu cần thiết để kết quả có kết luận.

P-value nhỏ có nghĩa là kết quả quan trọng không?

Không phải lúc nào cũng vậy, nên skill báo cáo tác động thực tế tách biệt với ý nghĩa thống kê.

Nó dùng những phép kiểm định nào?

Các phép như kiểm định z cho tỷ lệ, kiểm định t cho trung bình và chi-square cho danh mục.

Chi tiết

Mô tả gốc của tác giả

Use when checking whether a difference is real (A/B results, hypothesis tests) or sizing an experiment, before declaring a winner. Runs tests with hypothesis_tester.py, intervals with confidence_interval.py and sample sizes with sample_size_calculator.py.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9610
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự