Top "Statsmodels" questions

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

statistical summary table in sklearn.linear_model.ridge?

In OLS form StatsModels, results.summary shows the summary of regression results (such as AIC, BIC, R-squared, ...). Is there any …

python statsmodels sklearn-pandas
statsmodel AttributeError: module 'scipy.stats' has no attribute 'chisqprob'

I'm running the code below with statsmodel 0.8.0 which i believe is the latest. import statsmodels.api as sm est = sm.…

python scipy statsmodels
Difference(s) between scipy.stats.linregress, numpy.polynomial.polynomial.polyfit and statsmodels.api.OLS

It seems all three functions can do simple linear regression, e.g. scipy.stats.linregress(x, y) numpy.polynomial.polynomial.…

python python-3.x numpy scipy statsmodels
Pandas rolling regression: alternatives to looping

I got good use out of pandas' MovingOLS class (source here) within the deprecated stats/ols module. Unfortunately, it was …

python pandas numpy linear-regression statsmodels
How to interpret the summary table for Python OLS Statsmodel?

I have a continuous dependent variable y and a independent categorical variable x named control_grid. x contains two variables: …

python statistics statsmodels anova
How to perform a chi-squared goodness of fit test using scientific libraries in Python?

Let's assume I have some data I obtained empirically: from scipy import stats size = 10000 x = 10 * stats.expon.rvs(size=size) + 0.2 * …

python scipy statsmodels goodness-of-fit
using ols from statsmodels.formula.api - how to remove constant term?

I'm following this first example in statsmodels tutorial: http://statsmodels.sourceforge.net/devel/ How do I specify not to use …

python numpy regression statsmodels patsy
Fitting a Poisson distribution to data in statsmodels

I am trying to fit a Poisson distribution to my data using statsmodels but I am confused by the results …

python statsmodels
scipy.stats.expon.fit() with no location parameter

I am using scipy.stats.expon.fit(data) to fit an exponential distribution to my data. This appears to return …

python scipy statsmodels
'<' not supported between instances of 'float' and 'str' Error for Tukey HSD Test

I get a strange error when running the Tukey test. I hope somebody is able to help me with this …

python-3.x dataframe statsmodels tukey