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

Predict Statsmodel Argument Error

I am trying to predict outofsample values for an array. Python code: import pandas as pd import nu… Read more Predict Statsmodel Argument Error

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?

Statsmodels Arima: Constant Value For Each Forecast

I'm trying to use statsmodels' ARIMA to forecast a time series. I'm using sklearn'… Read more Statsmodels Arima: Constant Value For Each Forecast

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

Seasonal Decompose In Python

I have a CSV file that contains the average temperature over almost 5 years. After decomposition us… Read more Seasonal Decompose In Python

Statsmodels Poisson Glm Different Than R

I am trying to fit some models (Spatial interaction models) according to some code which is provide… Read more Statsmodels Poisson Glm Different Than R

Python Negative Binomial Regression - Results Don't Match Those From R

I'm experimenting with negative binomial regression using Python. I found this example using R,… Read more Python Negative Binomial Regression - Results Don't Match Those From R

Python Statsmodels Robust Cov_type='hac-panel' Issue

I hope this is the right place for my question. I would like to understand how to use the 'hac… Read more Python Statsmodels Robust Cov_type='hac-panel' Issue

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

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?

Statsmodels Summary To Latex

I'm a newbie to latex and I want to import a statsmodels(python-package) summary to my report i… Read more Statsmodels Summary To Latex

Python Out Of Sample Forecasting Arima Predict()

Does statsmodels.api.tsa.ARIMA(mylist, (p,d,q)).fit().predict(start, end) only work for d=0?... myL… Read more Python Out Of Sample Forecasting Arima Predict()

Armax Model Forecasting Leads To "valueerror: Matrices Are Not Aligned" When Passing Exog Values

I'm struggling with forecasting out of sample values with an ARMAX model. Fitting the model wor… Read more Armax Model Forecasting Leads To "valueerror: Matrices Are Not Aligned" When Passing Exog Values

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?

Python Statsmodel.api Logistic Regression (logit)

So I'm trying to do a prediction using python's statsmodels.api to do logistic regression o… Read more Python Statsmodel.api Logistic Regression (logit)

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

Automatically Select Lags For Autoregression Model Statsmodels

In statsmodels v0.10.1 there was no need to choose the number of lags in Autoregressive AR(p) model… Read more Automatically Select Lags For Autoregression Model Statsmodels

Regression Model Statsmodel Python

This is more of a stats question as the code is working fine, but I am learning regression modeling… Read more Regression Model Statsmodel Python

Python Statsmodel.api Logistic Regression (Logit)

So I'm trying to do a prediction using python's statsmodels.api to do logistic regression o… Read more Python Statsmodel.api Logistic Regression (Logit)

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