linear-regression Questions

1

Solved

I keep getting RuntimeWarning when I run the regression code at the very bottom. I am not sure how to fix them. I believe it may be the attencoef list because there is some nan values in it. Any su...
Stephniestepladder asked 5/7, 2017 at 18:28

3

Solved

I am trying to implement this algorithm to find the intercept and slope for single variable: Here is my Python code to update the Intercept and slope. But it is not converging. RSS is Increasing...

2

Solved

I want to persist a lm object to a file and reload it into another program. I know I can do this by writing/reading a binary file via saveRDS/readRDS, but I'd like to have an ASCII file instead of ...
Hightower asked 13/1, 2017 at 23:39

2

Solved

My question is about the unnecessary predictors, namely the variables that do not provide any new linear information or the variables that are linear combinations of the other predictors. As you ca...
Tybie asked 23/6, 2017 at 12:22

1

I'm working on this class on convolutional neural networks. I've been trying to implement the gradient of a loss function for an svm and (I have a copy of the solution) I'm having trouble understan...
Loriannlorianna asked 26/7, 2016 at 4:52

1

Solved

I am working on StreamingLinearRegressionWithSGD which has two methods trainOn and predictOn. This class has a model object that is updated as training data arrives in the stream specified in train...
Roundworm asked 30/3, 2017 at 10:19

2

Solved

This is a network IP frequency rank plot in log scales. After completing this portion, I am trying to plot the best fit line on log-log scales using Python 2.7. I have to use matplotlib's "symlog" ...
Thiazine asked 7/5, 2017 at 22:0

1

Solved

I want to fit a Linear Regression in R to a categorical variable that have 3 levels. In particular, my data is the following: Y = 1, X= "Type 1", A=0.5 Y = 2, X= "Type 2", A=0.3 Y =0.5,X= "Type ...
Foresee asked 25/4, 2017 at 17:23

8

Solved

Are there any Linear Regression Function in SQL Server 2005/2008, similar to the the Linear Regression functions in Oracle ?

2

Solved

Reviewing linear regressions via statsmodels OLS fit I see you have to use add_constant to add a constant '1' to all your points in the independent variable(s) before fitting. However my only under...
Parrott asked 31/12, 2016 at 2:8

2

Solved

Example data X<-matrix(c(rep(1,97),runif(97)) , nrow=97, ncol=2) y<-matrix(runif(97), nrow= 97 , ncol =1) I have succeed in creating the cost function COST<-function(theta,X,y){ ### Ca...
Illumine asked 4/4, 2017 at 20:59

1

Solved

Short version: How to build separate models for each category (without splitting the data). (I am new to R) Long version: consider the following synthetic data housetype,ht1,ht2,age,price O,0,1,1...
Teresaterese asked 3/4, 2017 at 16:13

2

Solved

I am trying to implement a linear regression model in Tensorflow, with additional constraints (coming from the domain) that the W and b terms must be non-negative. I believe there are a couple of...
Sedulous asked 28/3, 2017 at 9:36

3

Solved

I trying to understand linear regression... here is script that I tried to understand: ''' A linear regression learning algorithm example using TensorFlow library. Author: Aymeric Damien Project: ...
Wickham asked 2/4, 2017 at 15:19

1

Solved

Simple regression of random normal on date fails, but identical data with small integers instead of dates works as expected. # Example dataset with 100 observations at 2 second intervals. set.seed...
Peden asked 14/3, 2017 at 9:7

7

Solved

I want to do Least Squares Fitting in Javascript in a web browser. Currently users enter data point information using HTML text inputs and then I grab that data with jQuery and graph it with...
Glyptography asked 1/6, 2011 at 1:28

2

Solved

My data frame looks like something as follows: unique.groups<- letters[1:5] unique_timez<- 1:20 groups<- rep(unique.groups, each=20) my.times<-rep(unique_timez, 5) play.data<- data...
Foxtail asked 13/4, 2015 at 6:8

1

Solved

As I understand it, when you fit a linear model in R using a nominal predictor, R essentially uses dummy 1/0 variables for each level (except the reference level), and then giving a regular old coe...
Imputable asked 30/1, 2017 at 19:18

1

Solved

I run regressions over two groups with the same independent variables. Then, I would like to test whether the slopes from the two regressions are significantly different. I have read that when the...
Sardonic asked 13/1, 2017 at 17:2

2

Solved

I did a linear regression for a two tailed t-test with 178 degrees of freedom. The summary function gives me two p-values for my two t-values. t value Pr(>|t|) 5.06 1.04e-06 *** 10.09 < 2e-...
Zamia asked 6/1, 2017 at 11:57

2

Solved

is it possible to get other values (currently I know only a way to get beta and intercept) from the summary of linear regression in pandas? I need to get R-squared. Here is an extraction from manua...
Breeching asked 29/5, 2016 at 9:17

1

Solved

This is my data frame, with two columns Y (response) and X (covariate): ## Editor edit: use `dat` not `data` dat <- structure(list(Y = c(NA, -1.793, -0.642, 1.189, -0.823, -1.715, 1.623, 0.96...
Ruhr asked 16/11, 2016 at 14:16

2

Problem Synopsis: When attempting to use the scipy.optimize.fmin_bfgs minimization (optimization) function, the function throws a derphi0 = np.dot(gfk, pk) ValueError: matrices are not aligned...
Enallage asked 6/1, 2012 at 1:6

1

Solved

I am running a linear regression on a number of attributes including two categorical attributes, B and F, and I don't get a coefficient value for every factor level I have. B has 9 levels and F h...
Fritzie asked 8/12, 2016 at 6:8

2

I was trying to match the linear regression R results with that of python Matching the coefficients for each of independent variable and below is the code: Data is uploaded. https://www.d...
Theola asked 2/12, 2016 at 15:25

© 2022 - 2024 — McMap. All rights reserved.