statsmodels Questions

1

I am attempting to perform a logistic regression on a dataset which contains a target variable which is boolean ('default'), and two features ('fico_interp', 'home_ownership_int') using logit modul...
Spann asked 18/5, 2015 at 23:9

1

Solved

I am trying to analyse stars' data. I have light time series of the stars and I want to predict to which class (among 4 different types) they belong. I have light time series of those stars, and I ...
Doug asked 17/12, 2015 at 19:7

0

I am getting an error when I try to run a multivariable linear regression in Statsmodels. Everything works fine when I hardcode just one X column in the XData variable. Can someone please give me ...
Therapy asked 23/11, 2015 at 3:34

1

My Python version is 3.5 on win32. I successfully installed Numpy+MKL, Scipy and Statsmodels from here http://www.lfd.uci.edu/~gohlke/pythonlibs/ However, when I run import statsmodels a...
Koel asked 16/11, 2015 at 10:43

1

Solved

This question is on Augmented Dickey–Fuller test implementation in statsmodels.tsa.stattools python library - adfuller(). In principle, AIC and BIC are supposed to compute information criterion fo...
Postmark asked 1/11, 2015 at 16:16

1

Solved

Problem Setup In statsmodels Quantile Regression problem, their Least Absolute Deviation summary output shows the Intercept. In that example, they are using a formula from __future__ import print_...
Launder asked 10/10, 2015 at 5:25

3

Solved

I need to serialise scikit-learn/statsmodels models such that all the dependencies (code + data) are packaged in an artefact and this artefact can be used to initialise the model and make predictio...
Thriller asked 24/9, 2015 at 9:17

1

Solved

I was testing some basic category regression using Stats model: I build up a deterministic model Y = X + Z where X can takes 3 values (a, b or c) and Z only 2 (d or e). At that stage the model...
Floater asked 16/9, 2015 at 3:13

1

I am new to python and programming in general, so forgive any simple mistakes/ things that should be obvious. What I am trying to do is quite simple, I just want to fit a linear trend (1-d polyno...
Legroom asked 1/9, 2015 at 8:58

3

Solved

It's a useful and common practice to append predicted values and residuals from running a regression onto a dataframe as distinct columns. I'm new to pandas, and I'm having trouble performing this ...
Mikamikado asked 19/8, 2015 at 16:44

2

Solved

I'm certainly missing something very obvious here, but why does this work: a = [0.2635,0.654654,0.365,0.4545,1.5465,3.545] import statsmodels.robust as rb print rb.scale.mad(a) 0.356309343367 b...
Perfectible asked 6/8, 2015 at 20:1

1

Solved

ARIMA (statsmodels.tsa.arima_model.ARIMA), AR (statsmodels.tsa.ar_model.AR), and ARMA (statsmodels.tsa.arima_model.ARMA) in statsmodels all take in the parameters of their model in their predict me...
Fouquiertinville asked 27/7, 2015 at 23:49

1

Solved

I'm trying to use statsmodels' MNLogit function on the famous iris data set. I get: "Current function value: nan" when I try to fit a model. Here is the code I am using: import statsmodels.api as ...
Belie asked 20/7, 2015 at 0:29

2

Solved

It seems all three functions can do simple linear regression, e.g. scipy.stats.linregress(x, y) numpy.polynomial.polynomial.polyfit(x, y, 1) x = statsmodels.api.add_constant(x) statsmodels.api.O...
Lukasz asked 29/6, 2015 at 22:34

1

Solved

I have a simple pandas DataFrame, for which I would like to create a mosaic plot. Here is my code: import pandas as pd from statsmodels.graphics.mosaicplot import mosaic mydata = pd.DataFrame({...
Hazard asked 24/6, 2015 at 16:16

1

Solved

I am trying to write a code to generate a series of arima model and compare different models.The code is as follow. p=0 q=0 d=0 pdq=[] aic=[] for p in range(6): for d in range(2): for q in rang...
Problematic asked 17/6, 2015 at 20:10

1

I use this code to calculate a Gaussian Kernel Density on this values from random import randint x_grid=[] for i in range(1000): x_grid.append(randint(0,4)) print (x_grid) This is the code to c...
Replevy asked 14/6, 2015 at 10:43

1

Solved

The documentation for Statsmodels' linear mixed-effect models claims that The Statsmodels LME framework currently supports post-estimation inference via Wald tests and confidence intervals on th...
Contravallation asked 30/5, 2015 at 2:18

1

Solved

I've been digging into the API of statsmodels.regression.linear_model.RegressionResults and have found how to retrieve different flavors of heteroskedasticity corrected standard errors (via propert...
Smedley asked 31/5, 2015 at 4:28

1

Is there a way I can find the r confidence interval in Python? In R i could do something like: cor.test(m, h) Pearson's product-moment correlation data: m and h t = 0.8974, df = 4, p-value = 0...
Rarotonga asked 22/5, 2015 at 7:10

1

Solved

I have a time series with seasonal components. I fitted the statsmodels ARIMA with model = tsa.arima_model.ARIMA(data, (8,1,0)).fit() For example. Now, I understand that ARIMA differences my dat...
Carrera asked 7/5, 2015 at 17:36

1

In the statsmodels time series analysis AR and ARMA models, the freq argument can be "a Pandas offset or ‘B’, ‘D’, ‘W’, ‘M’, ‘A’, or ‘Q’." What do ‘B’, ‘D’, ‘W’, ‘M’, ‘A’, and ‘Q’ mean? I'm guessi...
Estrone asked 6/5, 2015 at 23:50

1

Solved

I'm a newbie to latex and I want to import a statsmodels(python-package) summary to my report in latex. I found that it's possible to transform a summary into a latex tabular with the following met...
Factious asked 3/5, 2015 at 8:10

1

Solved

I have daily stock price data from yahoo finance in a dataframe called price_data. I would like to add a column to this which provides the fitted value from a time series trend of the Adj Close c...
Ihram asked 30/4, 2015 at 6:51

1

Solved

If I understand the OLS model correctly, this should never be the case? trades['const']=1 Y = trades['ret']+trades['comms'] #X = trades[['potential', 'pVal', 'startVal', 'const']] X = trades[['po...
Vicereine asked 16/4, 2015 at 2:45

© 2022 - 2024 — McMap. All rights reserved.