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

statistical-analysis

Skill này làm gì

Công cụ này giúp bạn phân tích dữ liệu nghiên cứu. Nó có thể chọn kiểm định thống kê phù hợp, kiểm tra xem dữ liệu có đáp ứng yêu cầu của kiểm định không, và trình bày kết quả rõ ràng như trong bài báo khoa học.

Khi nào nên dùng

  • ✓Khi bạn muốn so sánh các nhóm dữ liệu.
  • ✓Khi kiểm tra một ý tưởng hoặc giả thuyết bằng dữ liệu của mình.
  • ✓Khi muốn hiểu mối quan hệ giữa các thông tin khác nhau trong dữ liệu.

Liên kết skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/statistical-analysis/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/K-Dense-AI/scientific-agent-skills/blob/main/skills/statistical-analysis/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

“Phân tích dữ liệu nghiên cứu này giúp tôi, so sánh nhóm A và nhóm B, và cho tôi biết có khác biệt có ý nghĩa thống kê không.”

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

Cách hoạt động

Bạn cung cấp dữ liệu và nêu điều bạn muốn tìm hiểu. Sau đó công cụ đề xuất và chạy các phân tích phù hợp, kiểm tra xem mọi thứ có đúng không và trình bày kết quả.

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.

Statistical Analysis

Overview

Conduct hypothesis tests (t-tests, ANOVA, chi-square), regression, correlation, and Bayesian analyses with systematic assumption checking, effect sizes, and APA-style reporting. Define the estimand and sampling units, diagnose model limitations, and report effect estimates with uncertainty. Numerical screens cannot certify assumptions or scientific validity.

When to Use This Skill

Use this skill when:

  • Conducting statistical hypothesis tests (t-tests, ANOVA, chi-square, non-parametric)
  • Performing regression or correlation analyses
  • Running Bayesian statistical analyses
  • Checking statistical assumptions and diagnostics
  • Calculating effect sizes and conducting power analyses
  • Reporting statistical results in APA format
  • Analyzing experimental or observational data for research

Installation

Targets Pingouin 0.7.0, SciPy 1.18.1, statsmodels 0.15.0, PyMC 6.3.2 and ArviZ 1.3.0 (reviewed 2026-10-01). Create a separate environment; do not add mutually incompatible scientific stacks to a shared project environment.

uv venv --python 3.12 .venv-statistics
uv pip install --python .venv-statistics/bin/python "pingouin==0.7.0" "scipy==1.18.1" "statsmodels==0.15.0" pandas matplotlib seaborn
# Optional Bayesian examples:
uv pip install --python .venv-statistics/bin/python "pymc==6.3.2" "arviz==1.3.0"

On Windows use .venv-statistics/Scripts/python.exe. Lock the resolved environment for reproduction.

  • Pingouin 0.7 fixes erroneous mixed/repeated-measures corrections, categorical ANOVA, and other results; do not reproduce an old analysis by merely changing its reported version. See the official changelog.
  • Pingouin 0.6+ names are p_val, cohen_d, CI95, p_unc. ttest reports absolute Cohen's d; calculate a signed estimate explicitly. Its power column is observed power and should not be used to interpret a null result.
  • correction='auto' chooses Welch by unequal sample sizes, not by variance evidence. Set correction=True for prespecified Welch inference.
  • PyMC 6 returns an xarray DataTree. ArviZ 1 uses ci_prob in summary/plot_dist and prob in hdi; specify 95% intervals explicitly. See Bayesian guidance.
  • Pingouin omits BF10 for one-sided t-tests; posterior directional probabilities are not Bayes factors. A two-sided BF10 uses its own model/prior and is not the Bayesian counterpart of a Welch unequal-variance model.

For model-specific APIs (OLS, GLM, ARIMA), see the statsmodels skill. For PyMC workflows, see the pymc skill.


Analysis Workflow

Use the following workflow, documenting prespecified decisions and exploratory departures.

  1. Frame the question before touching the data. State the hypothesis, the outcome and predictor variables, and the design (independent vs. paired, number of groups). Specify the target effect, sampling unit, dependence, contrasts and multiplicity family before outcome-driven selection. Label adaptive exploration explicitly.
  2. Inspect the data. Per group: n, mean, SD, median, missing values. Plot the raw data (histograms or box plots) before any test. Unequal group sizes, missingness, floor/ceiling effects, and outliers all change what test is appropriate — surface them to the user rather than silently working around them.
  3. Select the test using the quick reference below, or references/test_selection_guide.md for designs beyond the basics (counts, time-to-event, reliability, factorial).
  4. Check assumptions with scripts/assumption_checks.py. Interpret plots and screens alongside the design and estimand; do not switch tests automatically at a diagnostic p-value threshold. Report justified sensitivity analyses and any departures from the plan.
  5. Run the test and always compute the effect size alongside it — a p-value assesses incompatibility with the null model; the effect estimate and its uncertainty support judgments about practical importance.
  6. Report using the APA templates below, including descriptives, exact statistics, effect sizes with CIs, and the assumption checks performed.

If the user only needs one step (e.g., "how many participants do I need?"), jump straight to that section — but still confirm the design assumptions the calculation rests on.


Test Selection Guide

Quick Reference: Choosing the Right Test

…

Câu hỏi thường gặp

Tôi có cần biết chính xác tên kiểm định thống kê không?

Không, bạn có thể mô tả điều muốn làm với dữ liệu (ví dụ so sánh các nhóm), và công cụ sẽ giúp chọn kiểm định phù hợp.

“Giả định” thống kê là gì?

Đó là các điều kiện mà dữ liệu cần đáp ứng để kiểm định cho kết quả đáng tin cậy. Công cụ sẽ kiểm tra những điều này cho bạn.

Kết quả sẽ được trình bày như thế nào?

Kết quả được định dạng theo chuẩn báo cáo khoa học (kiểu APA), gồm các con số chính và độ lớn hiệu ứng.

Chi tiết

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

Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required sample sizes, or write up results - even if they never name a specific test. Covers

repo: K-Dense-AI/scientific-agent-skills

Độ phổ biến

Sao GitHub
51k
Vị trí xếp hạng
#3576
Giấy phép
MIT
Cập nhật
15/10/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ự