Top "Statsmodels" questions

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

statsmodels linear regression - patsy formula to include all predictors in model

Say I have a dataframe (let's call it DF) where y is the dependent variable and x1, x2, x3 are …

python r statsmodels
Confidence interval of probability prediction from logistic regression statsmodels

I'm trying to recreate a plot from An Introduction to Statistical Learning and I'm having trouble figuring out how to …

python logistic-regression statsmodels confidence-interval
non Invertible of a ARIMA model

I am trying to write a code to generate a series of arima model and compare different models.The code …

python statsmodels
statsmodels add_constant for OLS intercept, what is this actually doing?

Reviewing linear regressions via statsmodels OLS fit I see you have to use add_constant to add a constant '1…

python linear-regression statsmodels
python 3 + statsmodels?

If I do sudo pip3 install statsmodels I get errors. I pasted the end of the console output below. I …

python-3.x statsmodels
Is LASSO regression implemented in Statsmodels?

I would love to use a linear LASSO regression within statsmodels, so to be able to use the 'formula' notation …

python regression statsmodels lasso-regression
Fitting negative binomial in python

In scipy there is no support for fitting a negative binomial distribution using data (maybe due to the fact that …

python statistics scipy distribution statsmodels
Python Statsmodels: Using SARIMAX with exogenous regressors to get predicted mean and confidence intervals

I'm using statsmodels.tsa.SARIMAX() to train a model with exogenous variables. Is there an equivalent of get_prediction() when …

python time-series forecasting statsmodels confidence-interval
Can we generate contingency table for chisquare test using python?

I am using scipy.stats.chi2_contingency method to get chi square statistics. We need to pass frequency table i.…

python statistics scipy statsmodels chi-squared
Using statsmodel estimations with scikit-learn cross validation, is it possible?

I posted this question to Cross Validated forum and later realized may be this would find appropriate audience in stackoverlfow …

python scikit-learn cross-validation statsmodels