statistical-analysis
Qué hace
Esta herramienta te ayuda a analizar datos de investigación. Puede elegir la prueba estadística adecuada, comprobar si tus datos cumplen los requisitos de esa prueba y presentar los resultados de forma clara, como en los artículos científicos.
Cuándo usarla
- ✓Cuando quieres comparar grupos de datos.
- ✓Cuando pruebas una idea o una hipótesis con tus datos.
- ✓Para entender las relaciones entre distintos datos de tu investigación.
Link de la skill
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/statistical-analysis/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Analiza estos datos de investigación y compara los grupos A y B. Dime si hay una diferencia significativa.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Le das tus datos y le indicas qué quieres averiguar. La herramienta propone y ejecuta los análisis estadísticos adecuados, comprueba que todo sea correcto y presenta los resultados.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
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.ttestreports absolute Cohen's d; calculate a signed estimate explicitly. Itspowercolumn 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. Setcorrection=Truefor prespecified Welch inference.- PyMC 6 returns an xarray
DataTree. ArviZ 1 usesci_probinsummary/plot_distandprobinhdi; specify 95% intervals explicitly. See Bayesian guidance. - Pingouin omits
BF10for one-sided t-tests; posterior directional probabilities are not Bayes factors. A two-sidedBF10uses 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.
- 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.
- 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.
- Select the test using the quick reference below, or
references/test_selection_guide.mdfor designs beyond the basics (counts, time-to-event, reliability, factorial). - 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. - 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.
- 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
…
Preguntas frecuentes
¿Necesito saber el nombre exacto de la prueba estadística?
No. Puedes describir lo que quieres hacer con los datos (por ejemplo, comparar grupos), y la herramienta te ayudará a elegir la prueba correcta.
¿Qué son los 'supuestos' estadísticos?
Son las condiciones que tus datos deben cumplir para que una prueba estadística sea fiable. La herramienta las comprueba por ti.
¿Cómo se presentarán los resultados?
Los resultados se darán en un formato estándar para informes científicos (estilo APA), con las cifras clave y los tamaños del efecto.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 51 mil
- Posición en el ranking
- #3576
- Licencia
- MIT
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
13c-metabolic-flux
51 milEstima flujos metabólicos a partir de datos de trazado con isótopos de carbono-13. Es útil para analizar el metabolismo celular y las rutas bioquímicas.
adaptyv
51 milDiseña experimentos de caracterización de proteínas con la API de Adaptyv. Ayuda a estimar costos, enviar secuencias y seguir los resultados del laboratorio.
aeon
51 milRealiza tareas de aprendizaje automático con datos de series temporales. Es útil para clasificar, predecir, detectar anomalías y encontrar patrones en datos secuenciales.
alphagenome
51 milConsulta efectos genómicos precalculados de variantes genéticas. Ofrece puntuaciones y explicaciones para entender el impacto de las variantes en el genoma.
Skills parecidas
gitcrawl
394 milPermite que tu agente busque en un archivo guardado de incidencias y pull requests de GitHub, agrupe duplicados y revise su estado actual en GitHub.
slacrawl
394 milPermite que tu agente busque y cuente mensajes en un archivo local de Slack, revise qué tan reciente es y lo actualice cuando haga falta.
goplaces
394 milAyuda a tu agente a buscar lugares, obtener sus detalles y reseñas, y resolver nombres de lugares usando Google Places, con salida JSON para scripts.