
API Reference - statsmodels 0.14.6
Import Paths and Structure explains the design of the two API modules and how importing from the API differs from directly importing from the module where the model is defined.
statsmodels 0.14.6
statsmodels is a Python module that provides classes and functions for the estimation of many different statistical models, as well as for conducting statistical tests, and statistical data exploration. An …
Linear Regression - statsmodels 0.14.6
This module allows estimation by ordinary least squares (OLS), weighted least squares (WLS), generalized least squares (GLS), and feasible generalized least squares with autocorrelated AR (p) …
Installing statsmodels - statsmodels 0.14.6
Installing statsmodels The easiest way to install statsmodels is to install it as part of the Anaconda distribution, a cross-platform distribution for data analysis and scientific computing. This is the …
Getting started - statsmodels 0.14.6
See Import Paths and Structure for information on the difference between importing the API interfaces (statsmodels.api and statsmodels.tsa.api) and directly importing from the module that defines the …
Robust Linear Models - statsmodels 0.14.6
Robust Linear Models Robust linear models with support for the M-estimators listed under Norms. See Module Reference for commands and arguments. Examples
Ordinary Least Squares - statsmodels 0.15.0 (+853)
Dec 17, 2025 · [20]: from statsmodels.datasets.longley import load_pandas y = load_pandas().endog X = load_pandas().exog X = sm.add_constant(X) Fit and summary: [21]: ols_model = sm.OLS(y, X) …
Generalized Linear Models - statsmodels 0.14.6
Generalized linear models currently supports estimation using the one-parameter exponential families. See Module Reference for commands and arguments.
Import Paths and Structure - statsmodels 0.14.6
This makes most functions and classes conveniently available within one or two levels, without making the “sm” namespace too crowded. To see what functions and classes available, you can type the …
Generalized Linear Models — statsmodels 0.6.1 documentation
Generalized Linear Models ¶ Generalized linear models currently supports estimation using the one-parameter exponential families See Module Reference for commands and arguments.