Top "Statsmodels" questions

Statsmodels is a Python module that allows users to explore data, estimate statistical models, and perform statistical tests.

Fama Macbeth Regression in Python (Pandas or Statsmodels)

Econometric Backgroud Fama Macbeth regression refers to a procedure to run regression for panel data (where there are N different …

python r pandas statsmodels
Appending predicted values and residuals to pandas dataframe

It's a useful and common practice to append predicted values and residuals from running a regression onto a dataframe as …

python pandas dataframe prediction statsmodels
Extracting coefficients from GLM in Python using statsmodel

I have a model which is defined as follows: import statsmodels.formula.api as smf model = smf.glm(formula="A ~ …

python pandas statsmodels
How to visualize a nonlinear relationship in a scatter plot

I want to visually explore the relationship between two variables. The functional form of the relationship is not visible in …

python matplotlib curve-fitting statsmodels smoothing
Autoregressive model using statsmodels in Python

I am trying to start using the AR models in statsmodels. However, I seem to be doing something wrong. Consider …

python statsmodels autoregressive-models
statespace.SARIMAX model: why the model use all the data to train mode, and predict the a range of train model

I followed the tutorial to study the SARIMAX model: https://www.digitalocean.com/community/tutorials/a-guide-to-time-series-forecasting-with-arima-in-python-3. The date range of …

python time-series statsmodels
Johansen cointegration test in python

I can't find any reference on funcionality to perform Johansen cointegration test in any Python module dealing eith statistics and …

python statistics pandas statsmodels
Python statsmodels ARIMA LinAlgError: SVD did not converge

Background: I'm developing a program using statsmodels that fits 27 arima models (p,d,q=0,1,2) to over 100 variables and chooses the …

python statsmodels
Statsmodels ARIMA - Different results using predict() and forecast()

I would use (Statsmodels) ARIMA in order to predict values from a series: plt.plot(ind, final_results.predict(start=0 ,…

python statsmodels arima
Python Statsmodels Mixedlm (Mixed Linear Model) random effects

I am a bit confused about the output of Statsmodels Mixedlm and am hoping someone could explain. I have a …

python statsmodels mixed-models random-effects