regression Questions
2
Solved
How can I do a maximum likelihood regression using scipy.optimize.minimize? I specifically want to use the minimize function here, because I have a complex model and need to add some constraints. I...
Incapacious asked 29/3, 2015 at 0:22
5
I'm using the GROWTH (or LINEST or TREND or LOGEST, all make the same trouble) function in Excel 2003. But there is a problem that if some data is missing, the function refuses to give result:
You...
Monger asked 31/1, 2013 at 9:49
4
Solved
Is it possible to do regressions in R using a panel data set with a binary dependent variable? I am familiar with using glm for logit and probit and plm for panel data, but am not sure how to combi...
Condescending asked 10/5, 2010 at 15:36
2
I have some time series data and I want to calculate a groupwise rolling regression of the last n days in Pandas and store the slope of that regression in a new column.
I searched the older questi...
Triplex asked 22/10, 2019 at 7:28
2
Has anyone tried implementing beta transformed regression python? It is used to model values that lie between 0 and 1 and has a distribution with heteroskedasticity ineherently present. Essentially...
Intoxication asked 15/11, 2017 at 21:33
4
Solved
When we have a high degree linear polynomial that is used to fit a set of points in a linear regression setup, to prevent overfitting, we use regularization, and we include a lambda parameter in th...
Entomophagous asked 29/8, 2012 at 16:4
2
Solved
rich.main3 is a linear model in R. I understand the rest of the elements of the list but I don't get what qraux is. The documentation states that it is
a vector of length ncol(x) which contains...
Halo asked 3/8, 2016 at 10:34
2
My data:
State N Var1 Var2
Alabama 23 54 42
Alaska 4 53 53
Arizona 53 75 65
Var1 and Var2 are aggregated percentage values at the state level. N is the number of participants in each state. I wo...
Hafner asked 6/2, 2016 at 2:58
1
I am trying to write a multiple linear regression model from scratch to predict the key factors contributing to number of views of a song on Facebook. About each song we collect this information, i...
Maddocks asked 15/1, 2018 at 4:58
8
Solved
I have some data that I want to fit so I can make some estimations for the value of a physical parameter given a certain temperature.
I used numpy.polyfit for a quadratic model, but the fit isn't ...
Paramilitary asked 22/8, 2018 at 17:58
1
Im running a panel regression (randon effects) and i have several regressor candidates.
X.panel3.form = as.formula(c("value ~ ",paste(X.panel3.cols,collapse="+")))
> X.panel3.form
value ~ SMB...
Horton asked 29/7, 2016 at 12:34
13
I have trained an XGBoostRegressor model. When I have to use this trained model for predicting for a new input, the predict() function throws a feature_names mismatch error, although the input feat...
Avis asked 20/2, 2017 at 7:43
3
Solved
Is there an existing function to estimate fixed effect (one-way or two-way) from Pandas or Statsmodels.
There used to be a function in Statsmodels but it seems discontinued. And in Pandas, there i...
Ceceliacecil asked 12/6, 2014 at 23:23
4
Solved
I am using scikit-learn's Random Forest Regressor to fit a random forest regressor on a dataset. Is it possible to interpret the output in a format where I can then implement the model fit without ...
Bresee asked 2/5, 2013 at 2:24
11
How can I find the p-value (significance) of each coefficient?
lm = sklearn.linear_model.LinearRegression()
lm.fit(x,y)
Michaelmichaela asked 13/1, 2015 at 17:46
3
Solved
In R stepwise forward regression, I specify a minimal model and a set of variables to add (or not to add):
min.model = lm(y ~ 1)
fwd.model = step(min.model, direction='forward', scope=(~ x1 + x2 +...
Bunco asked 7/4, 2014 at 9:49
4
Solved
Problem context
Using scikit-learn with Python, I'm trying to fit a quadratic polynomial curve to a set of data, so that the model would be of the form y = a2x^2 + a1x + a0 and the an coefficients ...
Multiply asked 18/9, 2015 at 20:8
3
Solved
I haven't been able to find an answer to this question, largely because googling anything with a standalone letter (like "I") causes issues.
What does the "I" do in a model like this?
data(rock)...
Titicaca asked 12/6, 2014 at 19:26
3
I am dealing with a Regression problem and I used StackingRegressor to train data and then make prediction on test set. For model explainability purpose, I used SHAP as follows:
import xgboost
from...
Lavena asked 14/2, 2022 at 19:31
2
This paper https://arxiv.org/pdf/1703.10757.pdf disucces using Regression Activation Mapping (RAM) - instead of Class Activation Mapping (CAM). There are several articles describing how to implemen...
Gelderland asked 16/5, 2018 at 11:10
3
Solved
How can one use cross_val_score for regression? The default scoring seems to be accuracy, which is not very meaningful for regression. Supposedly I would like to use mean squared error, is it possi...
Willardwillcox asked 10/6, 2014 at 3:8
3
Solved
I have the following data:
>>> x
array([ 3.08, 3.1 , 3.12, 3.14, 3.16, 3.18, 3.2 , 3.22, 3.24,
3.26, 3.28, 3.3 , 3.32, 3.34, 3.36, 3.38, 3.4 , 3.42,
3.44, 3.46, 3.48, 3.5 , 3.52, 3.54, 3...
Macaronic asked 12/9, 2013 at 14:49
2
Solved
I have a dataframe where I am trying to run the statsmodel.api OLS regression.
It is printing out the summary. But when I am using the predict() function, it is giving me an error -
shapes (75,...
Paella asked 10/12, 2018 at 9:45
3
I am running the following (truncated) code using glmnet in R
# do a lot of things to create the design matrix called x.design
> glmnet(x.design, y, thresh=1e-11)
where x.design is a n x p d...
Valonia asked 18/2, 2019 at 21:46
2
Solved
I am trying to predict the admit variable with predictors such as gre,gpa and ranks. But the prediction accuracy is very low (0.66).The dataset is given below.
https://gist.github.com/abyalias/3de8...
Honeydew asked 28/6, 2016 at 13:9
1 Next >
© 2022 - 2025 — McMap. All rights reserved.