Langsung ke konten
Skillpedia
Analisis & spreadsheet29k Β· #9610

statistical-analyst

Fungsinya

Skill ini membantu menganalisis hasil eksperimen dan merencanakan tes dengan statistik yang benar. Skill ini untuk tim produk, pemasaran, dan data yang perlu tahu apakah sebuah hasil itu nyata.

Kapan dipakai

  • βœ“Saat uji A/B sudah selesai dan Anda ingin tahu apakah hasilnya nyata.
  • βœ“Saat Anda perlu tahu berapa banyak orang yang dibutuhkan tes sebelum diluncurkan.
  • βœ“Saat Anda ingin tahu apakah sebuah hasil signifikan secara statistik dan praktis.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/statistical-analyst/skills/statistical-analyst/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œHalaman pendaftaran baru kami mengonversi 4,8 persen dibanding 4,1 persen. Apakah selisih itu nyata?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill memilih uji statistik yang tepat, menjalankannya pada angka Anda, dan melaporkan p-value, confidence interval, serta ukuran efek. Skill lalu merekomendasikan apakah akan rilis, menahan, atau memperpanjang tes.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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
Pertanyaan umum

Apakah membantu sebelum tes dimulai?

Ya, skill menghitung ukuran sampel yang dibutuhkan agar tes bisa memberi kesimpulan.

Apakah p-value kecil berarti hasilnya penting?

Tidak selalu, sehingga skill melaporkan dampak praktis secara terpisah dari signifikansi statistik.

Uji apa yang dipakai?

Uji z untuk rasio, uji t untuk rata-rata, dan chi-square untuk kategori.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
29k
Peringkat
#9610
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa