Skip to content Skip to sidebar Skip to footer
Showing posts with the label Statsmodels

Why Can't I Import Statsmodels Directly?

I'm certainly missing something very obvious here, but why does this work: a = [0.2635,0.654654… Read more Why Can't I Import Statsmodels Directly?

Print Ols Regression Summary To Text File

I am running OLS regression using pandas.stats.api.ols using a groupby with the following code: fro… Read more Print Ols Regression Summary To Text File

Statsmodels Raises Typeerror: Ufunc 'isfinite' Not Supported For The Input Types

I am applying backward elimination using statsmodels.api and the code gives this error `TypeError: … Read more Statsmodels Raises Typeerror: Ufunc 'isfinite' Not Supported For The Input Types

Weekday As Dummy / Factor Variable In A Linear Regression Model Using Statsmodels

The question: How can I add a dummy / factor variable to a model using sm.OLS()? The details: Data … Read more Weekday As Dummy / Factor Variable In A Linear Regression Model Using Statsmodels

Best Model For Variable Selection With Big Data?

I posted a question earlier about some code but now I realize I should be more broad with the gener… Read more Best Model For Variable Selection With Big Data?

How To Get R-squared For Robust Regression (rlm) In Statsmodels?

When it comes to measuring goodness of fit - R-Squared seems to be a commonly understood (and accep… Read more How To Get R-squared For Robust Regression (rlm) In Statsmodels?

Statsmodels With Partly Identified Model

I am trying to run a regression where only some of the coefficients can be identified: data = np.ar… Read more Statsmodels With Partly Identified Model

Python Statsmodels Ols: How To Save Learned Model To File

I am trying to learn an ordinary least squares model using Python's statsmodels library, as des… Read more Python Statsmodels Ols: How To Save Learned Model To File

How Exactly Bic In Augmented Dickey–fuller Test Work In Python?

This question is on Augmented Dickey–Fuller test implementation in statsmodels.tsa.stattools python… Read more How Exactly Bic In Augmented Dickey–fuller Test Work In Python?

Custom Priors In Pymc

Say I want to put a custom prior on two variables a and b in PyMC, e.g.: p(a,b)∝(a+b)^(−5/2) (for t… Read more Custom Priors In Pymc

Plot Mixed Effect Model Results By Group In Python

I'm using a Mixed effect model with statsmodel in python and I cannot find a way to plot the re… Read more Plot Mixed Effect Model Results By Group In Python

Evaluate Slope And Error For Specific Category For Statsmodels Ols Fit

I have a dataframe df with the following fields: weight, length, and animal. The first 2 are contin… Read more Evaluate Slope And Error For Specific Category For Statsmodels Ols Fit

Ols Of Statsmodels Does Not Work With Inversely Proportional Data?

I'm trying to perform a Ordinary Least Squares Regression with some inversely proportional data… Read more Ols Of Statsmodels Does Not Work With Inversely Proportional Data?

Fitting Negative Binomial In Python

In scipy there is no support for fitting a negative binomial distribution using data (maybe due to … Read more Fitting Negative Binomial In Python

How To Use Scale And Shape Parameters Of Gamma GLM In Statsmodels

The task I have data that looks like this: I want to fit a generalized linear model (glm) to this … Read more How To Use Scale And Shape Parameters Of Gamma GLM In Statsmodels