data-science-statistical-analysis
Use when the user asks about hypothesis tests (t-test, chi-square, Mann-Whitney), regression diagnostics, effect sizes, confidence intervals, Bayesian…
от j4flmao★ 47 звёзд на GitHub
Установить data-science-statistical-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Statistical Analysis
Purpose
Perform rigorous statistical analysis: descriptive statistics, hypothesis testing, regression, time series, Bayesian inference, and reproducible reporting.
Agent Protocol
Trigger
Exact user phrases: "statistical analysis", "hypothesis test", "t-test", "ANOVA", "chi-square", "regression", "linear regression", "logistic regression", "time series", "ARIMA", "forecast", "Bayesian", "confidence interval", "p-value", "effect size", "power analysis", "data exploration", "descriptive statistics", "correlation", "outlier detection".
Input Context
- Analysis goal (exploration, inference, prediction, forecasting)
- Data structure (rows, columns, types, missingness)
- Question to answer: what decision depends on this analysis?
- Assumptions about data (independence, distribution, measurement scale)
- Audience: technical or business stakeholders
- Reproducibility requirements (notebook, script, report)
Output Artifact
Statistical analysis results with interpretation, assumptions checked, and business implications.
Response Format
## Analysis Summary
Question: {what was asked}
Data: {N rows, N features, time period}
Method: {test/model, software, parameters}
Results: {estimate, CI, p-value, effect size}
Assumptions Checked: {normality, independence, homoscedasticity}
Interpretation: {what the result means}
Business Implication: {what to do about it}
Completion Criteria
- Data explored and cleaned (missingness, outliers, distributions)
- Appropriate test/model selected based on data and question
- Assumptions checked and violations addressed
- Results reported with effect size and confidence interval
- Interpretation translated to business context
- Reproducible code/notebook provided
Workflow
Step 1: Data Exploration
Summarize data: shape, types, missing values, summary statistics. Visualize: univariate distributions (histograms, box plots), bivariate relationships (scatter plots, correlation heatmaps), multivariate structure (pair plots, PCA). Check data quality: range violations, duplicates, logical inconsistencies, timestamp ordering.
Step 2: Question Mapping
Question Types
| Question Type | Statistical Approach | Example |
|---|---|---|
| Comparison | Hypothesis test (t-test, chi-square, ANOVA) | Is revenue different between groups? |
| Association | Correlation, regression | Does ad spend predict sales? |
| Prediction | Regression, time series forecast | What will next quarter's revenue be? |
| Classification | Logistic regression, discriminant analysis | Will this customer churn? |
| Clustering | K-means, hierarchical, DBSCAN | What customer segments exist? |
| Dimensionality reduction | PCA, t-SNE, UMAP | What are the key drivers of variation? |
Question Refinement
Map vague business question to statistical formulation. "Are we doing better?" → "Is the mean conversion rate in period B higher than period A?" or "Is the trend slope positive and significant?"
Step 3: Model Selection
Method Selection Decision Tree
Data type of outcome (Y)?
├── Continuous (revenue, time, score)
│ ├── Normally distributed → Linear regression, t-test, ANOVA
│ ├── Skewed-positive → Log-transform + linear, or Gamma GLM
│ └── Bounded [0,1] → Beta regression, logit transform
├── Binary (converted, churned, clicked)
│ ├── Logistic regression (logit link)
│ └── Probit regression (normal CDF link)
├── Count (sessions, purchases, errors)
│ ├── Equidispersed → Poisson regression
│ └── Overdispersed → Negative binomial, quasi-Poisson
├── Ordinal (rating 1-5, tier A-B-C)
│ ├── Ordered logit (proportional odds)
│ └── Ordered probit
├── Categorical (brand choice, region)
│ ├── Multinomial logistic regression
│ └── Discriminant analysis
└── Time-to-event (survival, churn time)
├── Cox proportional hazards
└── Kaplan-Meier + log-rank test
Step 4: Assumption Checking
Key Assumptions by Method
| Method | Assumptions | Diagnostic |
|---|---|---|
| t-test | Normality, independence, equal variance | Shapiro-Wilk, Levene's test, Q-Q plot |
| Linear regression | Linearity, independence, homoscedasticity, normality | Residuals vs fitted, Q-Q plot, Breusch-Pagan, Durbin-Watson |
| Logistic regression | Linearity of logit, independence, no multicollinearity | Box-Tidwell test, VIF, residual deviance |
| ANOVA | Normality, independence, equal variance | Shapiro-Wilk, Levene's, residual plot |
| Poisson regression | Mean = variance (equidispersion) | Dispersion parameter, Pearson chi-square |
Handling Violations
Non-normal data: transform (log, Box-Cox, Yeo-Johnson) or use non-parametric alternative. Heteroscedasticity: use robust standard errors (HC0-HC4, Huber-White). Non-independence: use mixed effects models, clustered standard errors, or GEE. Outliers: robust regression (Huber, quantile), or trimmed estimators.
Step 5: Analysis and Reporting
Complete Report Struc
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/bayesian-methods.md
- references/descriptive-stats.md
- references/hypothesis-testing.md
- references/regression-analysis.md
- references/statistical-analysis-advanced.md
- references/statistical-analysis-fundamentals.md
FAQ
Что делает скилл data-science-statistical-analysis?
Use when the user asks about hypothesis tests (t-test, chi-square, Mann-Whitney), regression diagnostics, effect sizes, confidence intervals, Bayesian inference with PyMC, missing data or exploratory statistics. Produces the right test or model, assumption checks and reported effect sizes. Not for experiment design (use data-science-experimentation) or forecasting (use ml-time-series).
Как установить скилл data-science-statistical-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-science-statistical-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…