
Statsmodels
When you need actual statistical inference with p-values, confidence intervals, and diagnostic tests rather than just predictions, this is your tool. It handles the full spectrum from OLS and logistic regression to ARIMA time series and GLMs with proper hypothesis testing, AIC/BIC model comparison, and publication-ready summary tables. The library can feel academic compared to scikit-learn, but that's the point. You get residual diagnostics, heteroskedasticity tests, marginal effects, and all the econometric rigor that sklearn deliberately leaves out. One gotcha: you must manually add a constant with sm.add_constant() or your intercept will be zero, which trips up newcomers constantly.
- skills.sh installs
- 426
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill statsmodels --agent claude-codeInstalls into .claude/skills of the current project.
Files
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.
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)
- Detecting outliers and influential observations
- Comparing models (AIC/BIC, likelihood ratio tests)
- Estimating causal effects
- Producing publication-ready statistical tables and inference
Quick Start Guide
Linear Regression (OLS)
import statsmodels.api as sm
import numpy as np
import pandas as pd
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Category
- Data Science & ML
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Prompt Library423
- Chroma421
- Telegram Mini App420
- Pricing Strategy419
- Seo419
- Evaluating Llms Harness418
- Ml Paper Writing416
- Openalex Database416
- Workflow Automation416
- Backend To Frontend Handoff Docs413
- Shopify Development411
- Nextjs Supabase Auth410
- Clinicaltrials Database409
- Writing Plans408
- Geopandas407
- Bash Linux405
- App Store Optimization404
- Telegram Bot Builder403
- Treatment Plans403
- Micro Saas Launcher401
- Ai Product399
- Paper 2 Web399
- Best Practices398
- Json Canvas397