$npx skillfedfor your agent

statsmodels-stats

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.

statsmodels-stats performs linear, logistic, and generalized regression modeling with comprehensive statistical testing.

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

869 101 MITupdated by beita6969

Decision gist · record as of 2026-06-08

statsmodels-stats performs linear, logistic, and generalized regression modeling with comprehensive statistical testing. 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.

manual: git clone https://github.com/beita6969/ScienceClaw → cp -r ScienceClaw/skills/statsmodels-stats ~/.claude/skills/statsmodels-stats
skills/statsmodels-stats/SKILL.md · version a13ff38c

Use it when

  • statsmodels-stats supports t-tests, ANOVA, chi-squared tests, proportion tests, and multiple comparison corrections including FDR.
  • statsmodels-stats includes ARIMA and seasonal decomposition tools.

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

beita6969/ScienceClaw/statsmodels-stats · repository language: TypeScript

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 do linear regression in Python with statsmodels-stats?

statsmodels-stats provides OLS (Ordinary Least Squares) regression through its regression module. Import `statsmodels.api`, prepare your data with predictors and a response variable, fit the model using `OLS()`, and call `.fit()` to obtain coefficients, p-values, confidence intervals, and diagnostic statistics. The results object includes summary tables, R-squared, and residual plots for model validation.

What hypothesis tests does statsmodels-stats support?

statsmodels-stats supports t-tests, ANOVA, chi-squared tests, proportion tests, and multiple comparison corrections including FDR. Use `ttest_ind()` for independent samples, `f_oneway()` for ANOVA, and `chi2_contingency()` for categorical data. The library reports p-values, test statistics, and confidence intervals to assess statistical significance rigorously across your analyses.

How can I forecast time series with statsmodels-stats using ARIMA?

statsmodels-stats includes ARIMA and seasonal decomposition tools. Use `ARIMA(data, order=(p,d,q))` to specify autoregressive, differencing, and moving-average components, then call `.fit()` and `.get_forecast()` to generate predictions. Select model order via AIC/BIC criteria, test for stationarity with ADF or KPSS tests, and validate assumptions through diagnostic plots.

What diagnostic plots can statsmodels-stats generate for residuals?

statsmodels-stats produces QQ plots, residual-versus-fitted plots, scale-location plots, and influence diagnostics to validate model assumptions. Call `.plot_diagnostics()` on time series models or access residual plots from regression results. These plots help detect non-normality, heteroscedasticity, autocorrelation, and influential outliers in your fitted models.

Does statsmodels-stats support logistic and generalized linear models?

Yes. statsmodels-stats provides logistic regression via `Logit()` and generalized linear models through `GLM()` with configurable link functions and distributions. Fit models, extract marginal effects, compute odds ratios, and report effect sizes and confidence intervals. Robust regression and weighted least squares (WLS) are also available for handling heteroscedasticity and outliers.

Can statsmodels-stats perform survival analysis and VAR modeling?

statsmodels-stats includes Cox proportional hazards regression for survival analysis and vector autoregression (VAR) for multivariate time series. VAR models capture dynamic relationships across multiple series; fit with `VAR(data).fit()` and generate impulse responses and forecasts. Both methods provide diagnostic tools and statistical inference for complex temporal and event-time data.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Statsmodels Statistical Analysis

Statistical modeling, hypothesis testing, and time series analysis using statsmodels and pandas.

When to Use

  • Linear regression (OLS, GLS, WLS, robust)
  • Logistic regression and generalized linear models
  • Hypothesis testing (t-tests, ANOVA, chi-squared)
  • Time series analysis (ARIMA, VAR, seasonal decomposition)
  • Survival analysis and diagnostic plots

When NOT to Use

  • Machine learning classification/regression (use scikit-learn)
  • Deep learning or neural networks (use PyTorch/TensorFlow)
  • Simple descriptive statistics only (use scipy-analysis)

OLS / GLS / WLS Regression

```python import statsmodels.api as sm import statsmodels.formula.api as smf

model = smf.ols('y ~ x1 + x2 + x1:x2', data=df).fit() print(model.summary())

Matrix interface

X =

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

File tree — 1 file
skills/statsmodels-stats/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 linear, logistic, or generalized regression modeling”

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

Related skills

data-analysis
by beita6969 · beita6969/ScienceClaw

Data Analysis handles the full workflow of scientific data exploration: load CSV, Excel, or JSON files; identify and remove missing values, duplicates, and outliers; generate distributions and correlation heatmaps; and run parametric or non-parametric tests depending on your data's characteristics. Fit OLS, logistic, or mixed-effects regression models and export publication-ready results with effect sizes and confidence intervals.

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
statsmodels
by tondevrel · tondevrel/scientific-agent-skills

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.

MITupdated Feb 2026
★ 19repo stars
Statistical Hypothesis Testing
by aj-geddes · aj-geddes/useful-ai-prompts

Perform rigorous statistical tests including t-tests, ANOVA, chi-square, and non-parametric alternatives to assess whether observed differences are statistically significant. The skill handles independent and paired comparisons, multiple group analysis, categorical independence testing, and includes effect size calculations, confidence intervals, and power analysis to support evidence-based decision-making.

MITupdated Mar 2026
★ 299repo 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
scikit-learn-ml
by beita6969 · beita6969/ScienceClaw

scikit-learn-ml provides a foundation for supervised learning tasks including classification, regression, clustering, and dimensionality reduction. It covers data preparation, model training with multiple algorithms, hyperparameter tuning via grid search, and evaluation metrics. Best suited for in-memory datasets; not for deep learning, time series, or distributed big data workloads.

MITupdated Jun 2026
★ 869repo stars

More skills meta-analysis (MIT) · data-stats-analysis (MIT) · statsmodels (MIT) · statistical-testing (MIT)

Tags
statistical-inferenceregression-modelinghypothesis-testingtime-series-forecastingassumption-checkingeffect-size-reportingmodel-diagnosticsrobust-methodscausal-inference