Skip to main content

Questions tagged [statsmodels]

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

-1 votes
0 answers
13 views

Module statsmodels genmod families has no attribute quasi python

I am getting the following error in Jupyter Notepbook while trying to call sm.GLM(y_total, X, family=sm.families.Quasi(link=sm.families.links.log)).fit() AttributeError: module 'statsmodels.genmod....
Swapnil Srivastava's user avatar
0 votes
0 answers
12 views

logistic regressions using statsmodel and pyspark result in different estimations

I have tested statsmodel and various pyspark ml packages for logistic regression with weightCol feature and found the model estimations vary. For my particular tests: statsmodel and pyspark.ml....
user16739's user avatar
  • 101
0 votes
0 answers
8 views

Hausman test report [closed]

I've been working on a research project using a multi-level regression model, and I'm currently figuring out how to present the Hausman test results. I've seen some papers where authors mention doing ...
Sabrina's user avatar
0 votes
0 answers
26 views

Impact of r squared value on a linear regression equation output

I have a linear regression equation which goes something like this y = B0 + B1x1 + B2x2 + B3x3 + ....Bnxn Where: y is my dependent variable and xn are my independent variables I am generating this ...
Muzammil Madki's user avatar
0 votes
0 answers
21 views

How to update/append model estimated via pmdarima without restimating the parameters

I am using the pmdarima package fit a model with an exogeneous variable: processor = preprocessing.LogEndogTransformer() pipe_log_onw_price_model_2022 = pipeline.Pipeline([ ("log", ...
siebenkaese's user avatar
0 votes
0 answers
30 views

High Error Values with Optuna in SARIMAX Parameter Optimization

I'm encountering issues with the SARIMAX algorithm while using it to forecast 1-step customer demand. The problem is that the error in the trials is very high, resulting in a large MAPE and RMSE (...
Federico's user avatar
0 votes
0 answers
20 views

Does coint from statsmodels.tsa.stattools in python consider stationarity?

At the base level I am trying to determine if two stocks are cointegrated. To that end I take the adjusted close data of two stocks and call coint on this data. However I am unsure if the coint test ...
AAM's user avatar
  • 87
0 votes
0 answers
14 views

I try to understand F ditribution and relations to chi square and variances

Hello to everyone out there, I am trying to understand why F distribution and how it's related to chi-square. Why there are two formulas (with chi-square values devided by their corresponsing degrees ...
Yura Zavadenko's user avatar
1 vote
1 answer
50 views

Decomposing a signal with a custom trend

I wanted to decompose the following signal, a numpy array: I'm currently using the seasonal_decompose function from statsmodels.tsa.seasonal: https://www.statsmodels.org/dev/generated/statsmodels.tsa....
chang thenoob's user avatar
0 votes
0 answers
19 views

How do I rescale the impulse responses after a VAR in statsmodels?

Consider the example below: import numpy as np import pandas= import statsmodels.api as sm from statsmodels.tsa.api import VAR mdata = sm.datasets.macrodata.load_pandas().data # prepare the dates ...
ℕʘʘḆḽḘ's user avatar
0 votes
0 answers
32 views

how to estimate a simple 1-factor model in statsmodels?

Consider the simple 1-factor model structure below: R_it = a_i + beta_i*S_t + u_it S_t = phi* S_t-1 + v_t where R_it is a 5x1 vector, Vt is a normal N(0,1) and Uit is N(0, sigma) As you can see, ...
ℕʘʘḆḽḘ's user avatar
0 votes
0 answers
23 views

Why does my forecast/prediction using a VAR in statsmodels quickly converge to zero?

Outline: I am using a vector autoregression (VAR) model from the statsmodel package https://www.statsmodels.org/stable/vector_ar.html#var. My two time-series, let us call them time-series 1) ts1 and 2)...
Philipp's user avatar
  • 415
0 votes
0 answers
18 views

ARIMA model Ljung_Box test p-value

I have applied Ljung_Box test on residuals and I am getting 10 p-values associated with each lag. However, when I use arima_model.summary(), I get only one p-value. I am interested in knowing how does ...
Aaditya Bhardwaj's user avatar
0 votes
2 answers
69 views

How to make statsmodels' ANOVA result match R's ANOVA result

The following question is sort of a concrete adaptation of a post on StatsExchange. The following R script runs just fine: library(reshape) J1 <- c(9,6,8,7,10,6) J2 <- c(2,1,4,1,5,2) J3 <- c(...
hobscrk777's user avatar
  • 2,527
1 vote
2 answers
22 views

ValueError: list.remove(x): x not in list while doing Model Building - Stepwise selection for feature selection

I am doing Stepwise selection for feature selection using statsmodels.api as sm and while running the codes I am getting this error ValueError: list.remove(x): x not in list for the below piece of ...
user25582985's user avatar

15 30 50 per page
1
2 3 4 5
191