Statistical computations and models for Python

## Project description

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: Generalized linear models with support for all of the one-parameter exponential family distributions

• Bayesian Mixed GLM for Binomial and Poisson

• GEE: Generalized Estimating Equations for one-way clustered or longitudinal data

• Discrete models:

• Logit and Probit

• Multinomial logit (MNLogit)

• Poisson and Generalized Poisson regression

• Negative Binomial regression

• Zero-Inflated Count models

• RLM: Robust linear models with support for several M-estimators.

• Time Series Analysis: models for time series analysis

• Complete StateSpace modeling framework

• Seasonal ARIMA and ARIMAX models

• VARMA and VARMAX models

• Dynamic Factor models

• Unobserved Component models

• Markov switching models (MSAR), also known as Hidden Markov Models (HMM)

• Univariate time series analysis: AR, ARIMA

• Vector autoregressive models, VAR and structural VAR

• Vector error correction model, VECM

• exponential smoothing, Holt-Winters

• Hypothesis tests for time series: unit root, cointegration and others

• Descriptive statistics and process models for time series analysis

• Survival analysis:

• Proportional hazards regression (Cox models)

• Survivor function estimation (Kaplan-Meier)

• Cumulative incidence function estimation

• Multivariate:

• Principal Component Analysis with missing data

• Factor Analysis with rotation

• MANOVA

• Canonical Correlation

• Nonparametric statistics: Univariate and multivariate kernel density estimators

• Datasets: Datasets used for examples and in testing

• Statistics: a wide range of statistical tests

• diagnostics and specification tests

• goodness-of-fit and normality tests

• functions for multiple testing

• Imputation with MICE, regression on order statistic and Gaussian imputation

• Mediation analysis

• Graphics includes plot functions for visual analysis of data and model results

• I/O

• Table output to ascii, latex, and html

• Miscellaneous models

• Sandbox: statsmodels contains a sandbox folder with code in various stages of development and testing which is not considered “production ready”. This covers among others

• Generalized method of moments (GMM) estimators

• Kernel regression

• Various extensions to scipy.stats.distributions

• Panel data models

• Information theoretic measures

## How to get it

The main branch on GitHub is the most up to date code

https://www.github.com/statsmodels/statsmodels

https://github.com/statsmodels/statsmodels/tags

Binaries and source distributions are available from PyPi

https://pypi.org/project/statsmodels/

Binaries can be installed in Anaconda

conda install statsmodels

## Installing from sources

See INSTALL.txt for requirements or see the documentation

https://statsmodels.github.io/dev/install.html

## Contributing

Contributions in any form are welcome, including:

• Documentation improvements

• New features to existing models

• New models

https://www.statsmodels.org/stable/dev/test_notes

for instructions on installing statsmodels in editable mode.

Modified BSD (3-clause)

## Discussion and Development

Discussions take place on the mailing list

and in the issue tracker. We are very interested in feedback about usability and suggestions for improvements.

## Bug Reports

Bug reports can be submitted to the issue tracker at

https://github.com/statsmodels/statsmodels/issues

## Project details

### Source Distribution

statsmodels-0.13.5.tar.gz (18.4 MB view hashes)

Uploaded Source

### Built Distributions

statsmodels-0.13.5-cp311-cp311-win_amd64.whl (9.0 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

statsmodels-0.13.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

statsmodels-0.13.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

statsmodels-0.13.5-cp311-cp311-macosx_11_0_arm64.whl (9.2 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

statsmodels-0.13.5-cp311-cp311-macosx_10_9_x86_64.whl (9.7 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

statsmodels-0.13.5-cp310-cp310-win_amd64.whl (9.1 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

statsmodels-0.13.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

statsmodels-0.13.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

statsmodels-0.13.5-cp310-cp310-macosx_11_0_arm64.whl (9.2 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

statsmodels-0.13.5-cp310-cp310-macosx_10_9_x86_64.whl (9.7 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

statsmodels-0.13.5-cp39-cp39-win_amd64.whl (9.2 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

statsmodels-0.13.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

statsmodels-0.13.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

statsmodels-0.13.5-cp39-cp39-macosx_11_0_arm64.whl (9.2 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

statsmodels-0.13.5-cp39-cp39-macosx_10_9_x86_64.whl (9.7 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

statsmodels-0.13.5-cp38-cp38-win_amd64.whl (9.2 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

statsmodels-0.13.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

statsmodels-0.13.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

statsmodels-0.13.5-cp38-cp38-macosx_11_0_arm64.whl (9.1 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

statsmodels-0.13.5-cp38-cp38-macosx_10_9_x86_64.whl (9.6 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

statsmodels-0.13.5-cp37-cp37m-win_amd64.whl (9.1 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

statsmodels-0.13.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

statsmodels-0.13.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

statsmodels-0.13.5-cp37-cp37m-macosx_10_9_x86_64.whl (9.6 MB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64