What problem does it solve?
Statsmodels provides a comprehensive, Python-based toolkit for rigorous statistical modeling, estimation, inference, and diagnostics across a wide range of model families, helping analysts and researchers obtain reliable results without building models from scratch.
Core Features & Use Cases
- Regression modeling (OLS, WLS, GLS, GLSAR, Quantile Regression) with diagnostics
- Generalized Linear Models (GLM) for non-normal outcomes
- Discrete choice and counting models (Logit, Probit, Poisson, NB, ZIP/ZINB, MNLogit)
- Time series analysis (ARIMA, SARIMAX, VAR, VARMAX, state-space)
- Hypothesis testing and diagnostic tools (Heteroskedasticity, autocorrelation, normality, influence)
- Formula API for R-style modeling and easy specification
Quick Start
Install Statsmodels and run a simple OLS example to fit y ~ X with an intercept and inspect the results.