statsmodels
Statistical computations and models for Python
Install
statsmodels on PyPI
pip
pip install statsmodelsuv
uv add statsmodelspoetry
poetry add statsmodelsPackage facts
| License | BSD License (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 5 — numpy, scipy, pandas, patsy, packaging |
| Maintenance | actively maintained — 251 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: statsmodels-0.14.6-cp310-cp310-macosx_10_9_x86_64.whl; statsmodels-0.14.6-cp310-cp310-macosx_11_0_arm64.whl; statsmodels-0.14.6-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; statsmodels-0.14.6-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; statsmodels-0.14.6-cp310-cp310-musllinux_1_2_x86_64.whl; statsmodels-0.14.6-cp310-cp310-win_amd64.whl; statsmodels-0.14.6-cp311-cp311-macosx_10_9_x86_64.whl; statsmodels-0.14.6-cp311-cp311-macosx_11_0_arm64.whl; statsmodels-0.14.6-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; statsmodels-0.14.6-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; statsmodels-0.14.6-cp311-cp311-musllinux_1_2_x86_64.whl; statsmodels-0.14.6-cp311-cp311-win_amd64.whl; statsmodels-0.14.6-cp312-cp312-macosx_10_13_x86_64.whl; statsmodels-0.14.6-cp312-cp312-macosx_11_0_arm64.whl; statsmodels-0.14.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; statsmodels-0.14.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; statsmodels-0.14.6-cp312-cp312-musllinux_1_2_x86_64.whl; statsmodels-0.14.6-cp312-cp312-win_amd64.whl; statsmodels-0.14.6-cp313-cp313-macosx_10_13_x86_64.whl; statsmodels-0.14.6-cp313-cp313-macosx_11_0_arm64.whl
About statsmodels
from the package's own PyPI description — quoted content, verbatim
.. image:: docs/source/images/statsmodels-logo-v2-horizontal.svg :alt: Statsmodels logo
|PyPI Version| |Conda Version| |License| |Azure CI Build Status| |Codecov Coverage| |Coveralls Coverage| |PyPI downloads| |Conda downloads|
About statsmodels
statsmodels is a Python package that provides a complement to scipy for statistical computations including descriptive statistics and estimation and inference for statistical models.
Documentation
The documentation for the latest release is at
https://www.statsmodels.org/stable/
The documentation for the development version is at
https://www.statsmodels.org/dev/
Recent improvements are highlighted in the release notes
https://www.statsmodels.org/stable/release/
Backups of documentation are available at https://statsmodels.github.io/stable/ and https://statsmodels.github.io/dev/.
Main Features
-
Linear regression models:
-
Ordinary least squares
- Generalized least squares
- Weighted least squares
- Least squares with autoregressive errors
- Quantile regression
-
Recursive least squares
-
Mixed Linear Model with mixed effects and variance components
- GLM:...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
statsmodels provides statistical models, hypothesis tests, and inference tools for descriptive statistics, regression, time series analysis, survival analysis, and discrete choice modeling.
Medium install friction due to compiled extensions and five runtime dependencies (numpy, scipy, pandas, patsy, packaging), but wheels are available across Python 3.10–3.13 and major platforms. Active maintenance with last commit 2026-08-13.
BSD License (permissive treatment) allows commercial and private use with minimal restrictions; retain the license notice in distributions.
Usage
pip install statsmodels
import statsmodels.api as sm
model = sm.OLS(y, X).fit()
print(model.summary())
Requires Python ≥3.9; numpy, scipy, and pandas must be installed first.
Verdict: statsmodels is actively maintained with no known vulnerabilities and permissive BSD licensing. Medium install friction is offset by comprehensive wheel coverage across platforms and Python versions. Suitable for production statistical and econometric work.
Needs verification
- Community adoption scale and typical deployment patterns.
- Performance characteristics and memory footprint for large datasets.
- Whether the 251-day release gap reflects normal maintenance cadence.
Similar packages
permissive · top 1,000 on PyPI
scipypermissive · top 100 on PyPI
seabornpermissive · top 1,000 on PyPI
jpype1permissive · top 1,000 on PyPI
numpypermissive · top 100 on PyPI
numbapermissive · top 1,000 on PyPI
qdrant-clientpermissive · top 1,000 on PyPI
psycopg-binarycopyleft · top 1,000 on PyPI
pandaspermissive · top 100 on PyPI
altairpermissive · top 1,000 on PyPI