Agent skill · Testing & QA

statsmodels

Statistical models library for Python. Use when you need specific model classes (OLS, GLM, mixed models, ARIMA) with detailed diagnostics, residuals, and inference. Best for econometrics, time series, rigorous inference with coefficient tables. For guided statistical test selection with APA reporting use statistical-analysis.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codecan modify filesMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill statsmodels --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 9
SKILL.md size: 10 KB
Bundled scripts: none
Version: 1.2
Allowed tools: ReadWriteEditBash
Requires: Requires Python 3.9+ and statsmodels 0.14.6-compatible dependencies. Use `uv pip install statsmodels==0.14.6`; optional…
Path: skills/statsmodels/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Statsmodels: Statistical Modeling and Econometrics ## Overview Statsmodels is Python's premier library for statistical modeling, providing tools for estimation, inference, and diagnostics across a wide range of statistical methods. Apply this skill for rigorous statistical analysis, from simple linear regression to complex time series models and econometric analyses. ## Current Compatibility Examples target statsmodels 0.14.6, released Dec 5, 2025. For reproducible environments, pin the primary package: ```bash uv pip install statsmodels==0.14.6 ``` Use `statsmodels.api` and `statsmodels.formula.api` for stable high-level imports, and direct module imports when examples require newer or specialized classes such as `HurdleCountModel`. ## When to Use This Skill This skill should be used when: - Fitting regression models (OLS, WLS, GLS, quantile regression) - Performing generalized linear modeling (logistic, Poisson, Gamma, etc.) - Analyzing discrete outcomes (binary, multinomial, count, ordinal) - Conducting time series analysis (ARIMA, SARIMAX, VAR, forecasting) - Running statistical tests and diagnostics - Testing model assumptions (heteroskedasticity, autocorrelation, normality)

What's inside
Steps it walks through
  1. Overview
  2. Current Compatibility
  3. When to Use This Skill
  4. Quick Start, Capabilities, and Model Selection
  5. Best Practices
  6. Data Preparation
  7. Model Building
  8. Inference
  9. Model Evaluation
  10. Reporting
  11. Common Workflows
  12. Workflow 1: Linear Regression Analysis
  13. Workflow 2: Binary Classification
  14. Workflow 3: Count Data Analysis
Ships with 8 files
  • references/discrete_choice.md
  • references/glm.md
  • references/linear_models.md
  • references/model_selection.md
  • references/modeling_capabilities.md
  • references/quick_start_guide.md
  • references/stats_diagnostics.md
  • references/time_series.md
Commands it runs
uv pip install statsmodels==0.14.6
Find information about specific models
rg "Quantile Regression" references/
Find diagnostic tests
rg "Breusch-Pagan" references/stats_diagnostics.md
Find time series guidance
rg "SARIMAX" references/time_series.md
More from scientific-agent-skills
All skills →
About this skill
What does the statsmodels skill do?

Statistical models library for Python. Use when you need specific model classes (OLS, GLM, mixed models, ARIMA) with detailed diagnostics, residuals, and inference. Best for econometrics, time series, rigorous inference with coefficient tables. For guided statistical test selection with APA reporting use statistical-analysis.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill statsmodels --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going