$npx skillfedfor your agent

statsmodels

Statsmodels delivers rigorous statistical inference through comprehensive model estimation, diagnostic testing, and publication-ready summaries. It excels at linear and generalized linear regression, time series modeling, ANOVA, survival analysis, and causal inference—all with the p-values and confidence intervals essential for academic and scientific work.

Statsmodels performs statistical inference with detailed diagnostics, p-values, and confidence intervals for regression and hypothesis testing.

AI-generated summary based on this skill's SKILL.md

19 2 MITupdated by tondevrel

Decision gist · record as of 2026-02-01

Statsmodels performs statistical inference with detailed diagnostics, p-values, and confidence intervals for regression and hypothesis testing. Statsmodels delivers rigorous statistical inference through comprehensive model estimation, diagnostic testing, and publication-ready summaries. It excels at linear and generalized linear regression, time series modeling, ANOVA, survival analysis, and causal inference—all with the p-values and confidence intervals essential for academic and scientific work.

manual: git clone https://github.com/tondevrel/scientific-agent-skills → cp -r scientific-agent-skills/skills/statsmodels ~/.claude/skills/statsmodels
skills/statsmodels/SKILL.md · version f0c425d9

Use it when

  • Statsmodels supports OLS (ordinary least squares), GLM (generalized linear models), logistic regression, Poisson regression for count data.
  • Yes.

Verify before relying

Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

tondevrel/scientific-agent-skills/statsmodels

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I perform OLS linear regression in Python using statsmodels?

Statsmodels makes OLS regression straightforward with its formula interface. Import `statsmodels.formula.api as smf`, define your model using R-style syntax (e.g., `smf.ols('y ~ x1 + x2', data=df)`), then call `.fit()` to estimate coefficients. The resulting summary includes p-values, confidence intervals, R-squared, and diagnostic statistics—everything needed for publication.

What regression models does statsmodels support?

Statsmodels supports OLS (ordinary least squares), GLM (generalized linear models), logistic regression, Poisson regression for count data, weighted least squares (WLS) for heteroscedastic data, and many specialized models. Each provides detailed diagnostics, p-values, and confidence intervals for rigorous statistical inference.

Can statsmodels perform ARIMA time series forecasting?

Yes. Statsmodels includes ARIMA and SARIMAX for time series analysis and forecasting. Use `statsmodels.tsa.arima.model.ARIMA` to fit autoregressive integrated moving average models, or `SARIMAX` for seasonal variants. Both support diagnostic plots, in-sample fit statistics, and out-of-sample predictions.

How does statsmodels handle hypothesis testing and p-values?

Statsmodels delivers comprehensive hypothesis testing through model summaries that report p-values, confidence intervals, and test statistics for each coefficient. It supports t-tests, F-tests, Wald tests, and likelihood ratio tests. The `.summary()` method generates publication-ready tables with all diagnostic information.

What causal inference and treatment effect methods are available?

Statsmodels supports causal inference through regression-based treatment effect estimation, instrumental variables (IV/2SLS), and difference-in-differences models. These methods estimate average treatment effects while controlling for confounders, with p-values and confidence intervals for rigorous causal claims.

How can I check for multicollinearity and heteroscedasticity in statsmodels?

Statsmodels provides residual diagnostics and tests for model assumptions. Calculate variance inflation factors (VIF) to detect multicollinearity, use Breusch-Pagan or White tests for heteroscedasticity, and examine residual plots. The `.summary()` output includes Durbin-Watson statistics and other diagnostic metrics for comprehensive model validation.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Statsmodels - Statistical Modeling & Inference

Statsmodels is the bridge between Python and the rigor of R-style statistical analysis. It allows users to estimate models using formulas (via patsy), perform extensive diagnostic tests, and produce detailed summary tables that are the standard in academic publishing.

When to Use

  • Estimating Linear Regression models with detailed diagnostics (OLS, WLS).
  • Generalized Linear Models (GLM): Logistic, Poisson, Gamma regression.
  • Time Series Analysis (ARIMA, SARIMAX, VAR, State Space

(truncated - see the full file via the links below)

File tree — 1 file
skills/statsmodels/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Perform statistical inference with detailed diagnostics and p-values”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

statsmodels-stats
by beita6969 · beita6969/ScienceClaw

statsmodels-stats provides regression modeling, hypothesis testing, and time series analysis for statistical workflows. Build OLS, logistic, and generalized linear models; run t-tests, ANOVA, and proportion tests; fit ARIMA and VAR models; and perform survival analysis with diagnostic plots and rigorous statistical reporting.

MITupdated Jun 2026
★ 869repo stars
Statsmodels Statistical Modeling
by jaechang-hits · jaechang-hits/SciAgent-Skills

Statsmodels provides classical statistical modeling with rigorous inference for Python, covering linear regression, generalized linear models, discrete choice analysis, and time series forecasting. It emphasizes coefficient interpretation, hypothesis testing, and model diagnostics rather than prediction optimization. Use this skill when you need detailed statistical inference, confidence intervals, and assumption validation.

no license declared → metadata onlyupdated Jul 2026
★ 284repo stars
pywayne-statistics
by wangyendt · wangyendt/wayne-skills

Pywayne Statistics provides a unified library for statistical hypothesis testing across normality assessment, group comparisons, correlation analysis, time series validation, and regression diagnostics. Each test returns consistent result objects with p-values, confidence intervals, and effect sizes, making it straightforward to validate data assumptions and detect significant effects in A/B tests and observational studies.

MITupdated Jul 2026
★ 8repo stars
statsmodels
by synthetic-sciences · synthetic-sciences/openscience

Statsmodels delivers rigorous statistical modeling for regression, generalized linear models, time series, and discrete outcomes. Access comprehensive diagnostics, robust standard errors, influence statistics, and publication-quality inference tables. Ideal for econometrics, causal estimation, and hypothesis testing.

Apache-2.0updated Jul 2026
★ 2,896repo stars
statistics-fundamentals
by JoelLewis · JoelLewis/finance_skills

Analyze financial return series with descriptive statistics, normality tests, and covariance estimation. Run CAPM regressions with significance testing, apply Ledoit-Wolf shrinkage for stable portfolio optimization, and bootstrap confidence intervals for statistics without clean analytical solutions.

MITupdated Jul 2026
★ 159repo stars
statsmodels
by K-Dense-AI · K-Dense-AI/scientific-agent-skills

Statsmodels is Python's statistical modeling library for fitting regression, generalized linear, time series, and discrete outcome models with full inference capabilities. It delivers detailed diagnostics, residuals analysis, hypothesis tests, and publication-ready output—ideal when coefficients and their uncertainty matter more than prediction alone.

MITupdated Jul 2026
★ 31,940repo stars

More skills statistical-analysis (MIT) · lifelines (MIT) · data-analysis (MIT) · data-stats-analysis (MIT)

Tags
statistical-inferencehypothesis-testingtime-series-modelingcausal-analysismodel-diagnosticsacademic-publishingr-style-formulassurvival-analysisgeneralized-linear-modelsheteroscedasticity-robust