Statsmodels Statistical Modeling
Guides Claude through rigorous statsmodels work — OLS, GLM, discrete choice, and time series — with full diagnostics and inference.
Data & AnalyticsIntermediate★ 33,030⑂ 3,248AI score 8/10Last updated: Aug 9, 2026
What it does
Teaches Claude to use statsmodels, Python's flagship statistical modeling library, the right way: model selection → estimation → assumption testing → diagnostics → publication-ready reporting.
- Regression: OLS, WLS, GLS, quantile regression, mixed effects
- GLM: Binomial, Poisson, Gamma families and link-function choice
- Discrete outcomes: Logit/Probit, multinomial, negative binomial, ZIP/ZINB, hurdle
- Time series: stationarity tests (ADF/KPSS), ARIMA/SARIMAX/VAR, forecast intervals
- Diagnostics: heteroskedasticity, autocorrelation, VIF, Cook's distance, robust/cluster SEs
Topic-specific references/ files keep detail out of the way until it's needed, and a 15-item pitfall list catches the classic mistakes.
Who it's for
- Researchers and grad students who need coefficient tables and confidence intervals for publication
- Econometricians and policy analysts where interpretation matters more than prediction
- Data analysts comfortable with scikit-learn but rusty on standard errors and p-values
- Forecasters who don't want to skip stationarity and residual checks
Example uses
- Sales regression: "Fit OLS of revenue on ad spend and season dummies, test for heteroskedasticity, and re-report with robust SEs" — includes residual plots, VIF, and influence checks.
- Churn interpretation: "Run a logistic regression on churn and give me odds ratios plus marginal effects" — flags convergence warnings and offers a Probit comparison.
- Monthly demand forecast: "Check stationarity with ADF/KPSS, then fit SARIMAX and forecast 12 months with intervals" — order identification from ACF/PACF plus a Ljung-Box residual test.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/statsmodels folder from the GitHub repo K-Dense-AI/scientific-agent-skills into my ~/.claude/skills/statsmodels/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/statsmodels ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal (Terminal on macOS/Linux, WSL or Git Bash on Windows).
- Confirm Python 3.9+ is available:
python3 --version - Install the library:
uv pip install statsmodels==0.14.6(orpip install statsmodels==0.14.6). Addpip install scikit-learnif you want the predictive-metric examples. - Clone the repo:
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r scientific-agent-skills/skills/statsmodels ~/.claude/skills/ - Verify that
~/.claude/skills/statsmodels/references/contains the reference markdown files. - Restart Claude Code and try a prompt like "Fit an OLS model on this CSV and run full diagnostics."
View source on GitHub ↗License: MIT