Install python-statsmodels by entering the following commands in the terminal:
sudo apt update sudo apt install python-statsmodels
Description:
Python module for the estimation of statistical models
statsmodels Python module provides classes and functions for the estimation of several categories of statistical models. These currently include linear regression models, OLS, GLS, WLS and GLS with AR(p) errors, generalized linear models for six distribution families and M-estimators for robust linear models. An extensive list of result statistics are available for each estimation problem.
Homepage: http://statsmodels.sourceforge.net/
Version: 0.8.0-6
Section: universe/python