What is statsmodels?
Statistical models library for Python. Best for econometrics, time series, rigorous inference with coefficient tables.
K-Dense-AI/scientific-agent-skills
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.
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill "skills/statsmodels"Quick start
Install it or open the source, trigger it with a clear task, then follow the source workflow.
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill "skills/statsmodels"Use statsmodels to help me with: [describe your task]. Before you begin, tell me what input you need, the steps you will follow, and the expected output.
4 key workflow steps, examples, and cautions are distilled below.
Continue to the workflowDirect answers
Statistical models library for Python. Best for econometrics, time series, rigorous inference with coefficient tables.
It is relevant to workflows involving Testing, Engineering, Operations, Research.
SkillSignal detected this source-specific command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill "skills/statsmodels". Inspect the repository and command before running it.
The upstream source does not declare a dedicated Agent platform.
No obvious permission action was detected by the static rules. This is not proof that the Skill is safe.
This page combines upstream documentation with deterministic repository, quality, and static-risk signals. It is not described as a manual test or security review.
SkillSignal brief
Statistical models library for Python. Best for econometrics, time series, rigorous inference with coefficient tables.
Useful in these contexts
Core capabilities
Distilled from the source
About 6 min · 10 sections
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)
references/quickstartguide.md: minimal worked
references/modelingcapabilities.md: linear
references/modelselection.md: the R-style formula API
Per-topic detail: references/linearmodels.md,
Forgetting constant term: Always use sm.addconstant() unless no intercept desired
Ignoring assumptions: Check residuals, heteroskedasticity, autocorrelation
Wrong model for outcome type: Binary→Logit/Probit, Count→Poisson/NB, not OLS
Not checking convergence: Look for optimization warnings
Quality breakdown
Based on traceable docs and repository signals; stars are not treated as quality.
Compare before choosing
These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.
Build, inspect, test, and analyze bounded process-based discrete-event simulations with SimPy, including events, resources, interrupts, monitoring, replications, warm-up, and reproducible output analysis.
Improve AI application with evaluation-driven development. Define eval criteria, instrument the application, build golden datasets, observe and evaluate application runs, analyze results, and produce a concrete action plan for improvements. ALWAYS USE THIS SKILL when the user asks to set up QA, add tests, add evals, evaluate, benchmark, fix wrong behaviors, improve quality, or do quality assurance for any Python project that calls an LLM model.
Use when the user has merge conflicts or says "resolve conflicts". Understands conflict markers, resolution strategies, and verification workflow.
Commercial-grade Python installer expert for Windows: Nuitka extreme compilation, dist slimming, DLL footprint analysis, and Inno Setup packaging to ship the smallest, fastest installers. Use only for advanced packaging/optimization (minimal size, fast startup), not basic script-to-exe conversion. 中文触发:Nuitka 极限优化、Python 商业打包、极限编译 Python、dist 瘦身、DLL 分析、最小安装包、最快启动、商业级打包风格
Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.
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.
Examples target statsmodels 0.14.6, released Dec 5, 2025. For reproducible environments, pin the primary package:
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.
This skill should be used when:
statsmodels is for inference — standard errors, confidence intervals, and hypothesis tests. Reach for scikit-learn when prediction is the goal and the coefficients do not need interpreting.
sm.add_constant() unless excluding intercept.summary() for detailed outputThis skill includes comprehensive reference files for detailed guidance:
Detailed coverage of linear regression models including:
Complete guide to generalized linear models:
Comprehensive guide to discrete outcome models:
In-depth time series analysis guidance:
Comprehensive statistical testing and diagnostics:
When to reference:
Search patterns:
# 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
sm.add_constant() unless no intercept desiredFor detailed documentation and examples: