Skip to main content

Questions tagged [linear-regression]

For questions related to the theory or application of linear regression.

Filter by
Sorted by
Tagged with
1 vote
1 answer
44 views

I am learning linear regression model based on this tutorial. Following the example provided in the tutorial, it works fine with mini-batch stochastic gradient descent. ...
hguser's user avatar
  • 101
1 vote
1 answer
83 views

so I got this question for my Lab: Q: Show how linear regression for classification can improve pocket algorithm with PLA. I thought linear regression was bad for classification? So how can linear ...
diego alamu's user avatar
2 votes
1 answer
61 views

We know that It's quite common for simple methods to perform well, especially out-of-sample (which is where it matters). This effect becomes stronger on short series. I have TEC data of time series. ...
the_tomato's user avatar
0 votes
1 answer
63 views

I am trying to understand the concept of generalization error based on the attached illustration that contrasts empirical risk (𝑅_hat) with true risk (𝑅) Two regions are marked in the diagram: Red-...
Stephen's user avatar
  • 11
1 vote
3 answers
117 views

I have noticed that many introductory materials on neural networks use linear regression to predict house prices as the standard first example on neural networks. This seems to be a common practice. ...
Humberto José Bortolossi's user avatar
1 vote
1 answer
101 views

I have the following task to do: I have time series data. Training by the consecutive 3 days to predict the each 4th day. Each day data represents one CSV file which has dimension 24x25. Every ...
S. M.'s user avatar
  • 123
0 votes
1 answer
74 views

I have a dataset that consists of data about students. The features are things such as passed credits, failed credits, ...
Amirreza A.'s user avatar
0 votes
1 answer
67 views

Currently doing andrew ng's unsupervised learning specialization, I came across this algorithm for collaborative filtering: here the Xi refers to feature vector of objects(ex: action in movies, ...
SRAVAN KOTTA's user avatar
0 votes
0 answers
39 views

good evening, I wanted to know how the system of equations is solved step by step to arrive at the formulas for β0 and β1 in simple linear regression. In the following picture, there is the system of ...
Martín Badino's user avatar
1 vote
1 answer
79 views

I'm a new student in AI, currently learning linear regression. I used the california housing dataset for doing my experiments. My goal is to predict the 'population' column based on the 'total_rooms' ...
Jahid Chowdhury Choton's user avatar
2 votes
1 answer
640 views

Does L1/L2 (NAdam weight decay) really make the model "unlearn"? Ok so my question might be dumb but is there any way to "unlearn" a model - and yeah I know there is wieght_decay ...
AnArrayOfFunctions's user avatar
1 vote
1 answer
107 views

How are eqs.(3.55) and (3.56) obtained? Especially, it is unclear how triangle inequality implies eq.(3.56) because we have squared norms.
DSPinfinity's user avatar
  • 1,223
0 votes
1 answer
207 views

Simple Linear Regression reference: https://online.stat.psu.edu/stat462/node/93/ Multiple Linear Regression reference: https://online.stat.psu.edu/stat462/node/131/ I see that the way to calculate the ...
will The J's user avatar
0 votes
1 answer
126 views

https://en.wikipedia.org/wiki/ADALINE Can Adaline(Adaptive Linear Neuron) be used to do a multiple linear regression being equivalent to the least squares method?
will The J's user avatar
1 vote
1 answer
129 views

In the section on LSTD in SuttonBarto's book on RL, there is a proof on convergence of semi-gradient TD(0) using a linear function approximator. Later on they estimated A and b as I was under the ...
user75923's user avatar
1 vote
2 answers
343 views

I am working on Multiple Linear Regression (Multiple variables). I am been able to predict and get a good r2 score. But I am not sure that I understood the part of plotting the best fit line, I can't ...
Niranjandas M's user avatar
2 votes
2 answers
150 views

In linear regression, I train the model so the graph runs best through the data points, so the geometric distance between f(x) and $y^i$ is minimized. Now, is it correct that in logistic regression I ...
Jacky02's user avatar
  • 21
0 votes
2 answers
291 views

The function cross_val_score uses the estimator’s default scorer (if available) and LinearRgression (the estimator I use) uses The coefficient of determination (which is defined as $R^2 = 1 - \frac{u}...
FluidMechanics Potential Flows's user avatar
-1 votes
1 answer
74 views

What is the easiest classification algorithm in SQL when my data looks like this? ...
Ohumeronen's user avatar
0 votes
1 answer
77 views

I have made a neural network from scratch (in java), which is refusing to switch out of linear regression. I have pushed up the layer sizes (it now has 2 hidden layers, both with 5 neurons), and yet ...
Gamaray's user avatar
  • 113
1 vote
0 answers
86 views

I wish to implement an Actor Critic agent using linear functions for a continuing task with one continuous action. Below the resulting pseudo-code I have reached by my own (the initialization part is ...
brz's user avatar
  • 11
0 votes
2 answers
2k views

I have a textual dataset that has a set of real numbers as labels: L={0.0, 0.33, 0.5, 0.75, 1.0}, and I have a model that takes the text as input and has a Sigmoid output. If I train the model on this ...
Minions's user avatar
  • 123
0 votes
1 answer
81 views

I am trying to implement a simple 2nd order polynomial gradient descent algorithm in Java. It is not converging and becomes unstable. How do I fix it? ...
PentiumPro200's user avatar
-1 votes
1 answer
279 views

The question looks foolish, but I think cross-entropy is somewhat weird as a cost function. As a cost function for linear regression, the mean square error $ \sum_{i=1}^{n} (y_i - (ax_i+b)) ^2$ seems ...
JAEMTO's user avatar
  • 125
1 vote
1 answer
921 views

Below are the two tensors ...
ZKS's user avatar
  • 121
0 votes
1 answer
413 views

I am trying to solve a classification problem by implementing the Least Squares algorithm in Python. To solve this problem, I am implementing the linear algebra formula to train the classifier, which ...
User9123's user avatar
2 votes
3 answers
337 views

Most of the algorithms in machine learning I am aware of use datasets and learning happens in an iterative manner given some examples. The examples can also be understood as experience in the case of ...
hanugm's user avatar
  • 4,172
2 votes
1 answer
934 views

Consider linear regression. The mean squared error (MSE) is 120.5 for the training dataset. We've reached the minimum for the training data. Is it possible that by applying Lasso (L1 regularization) ...
user6394019's user avatar
0 votes
1 answer
79 views

I have two measuring devices. Both measure the same thing. One is accurate, the other is not, but does correlate with a non-fixed offset, some outliers, and some noise. I won't always be using the ...
jonathanc's user avatar
1 vote
0 answers
164 views

So I'm stack to something that it's probably very easy but I can't get my head around it. I'm building a Neural Network that will consist of many layers with non-linear activation functions (probably ...
ChrisP's user avatar
  • 41
8 votes
1 answer
4k views

Here is a linear regression model $$y = mx + b,$$ where $b$ is known as $y$-intercept, but also known as the bias [1], $m$ is the slope, and $x$ is the feature vector. As I understood, in machine ...
Sivaram Rasathurai's user avatar
1 vote
1 answer
287 views

I am trying to comprehend how the Gradient Descent works. I understand we have a cost function which is defined in terms of the following parameters, $J(𝑤_{1},𝑤_{2},.... , w_{n}, b)$ the derivative ...
Exploring's user avatar
  • 381
2 votes
0 answers
120 views

Why is there no upper confidence bound algorithm for linear stochastic bandits that uses lasso regression in the case that the regression parameters are sparse in the features? In particular, I don't ...
PJORR's user avatar
  • 31
0 votes
1 answer
357 views

Geometric interpretation of Logistic Regression and Linear regression is considered here. I was going through Logistic regression and Linear regression. In the optimization equation of both following ...
Ajey's user avatar
  • 1
0 votes
1 answer
77 views

I am new in machine learning and learning linear regression concept. Please help with answers to below queries. I want to understand effect on existing independent variable(X1) if I add a new ...
Snehal Gupta's user avatar
0 votes
3 answers
204 views

What if I have some data, let's say I'm trying to answer if education level and IQ affect earnings, and I want to analyze this data and put in a regression model to predict earnings based on the IQ ...
JingleBells's user avatar
2 votes
1 answer
1k views

I am new to working with neural networks. However, I have built some linear regression models in the past. My question is, is it worth looking for features with a correlation to my target variable as ...
Shogun187's user avatar
2 votes
1 answer
303 views

Reading through the CS229 lecture notes on generalised linear models, I came across the idea that a linear regression problem can be modelled as a Gaussian distribution, which is a form of the ...
calveeen's user avatar
  • 1,331
1 vote
1 answer
144 views

When does it happen that a layer (either first or hidden) outputs negative values in order to justify the use of RELU? As far as I know, features are never negative or converted to negative in any ...
sujeto1's user avatar
  • 129
1 vote
0 answers
61 views

I have hopefully a fundamental question of Do I understand things right. (Thank you in advance and sorry for my English which might be not so good) 1-Preambula 1: I know that if we have 2 independent ...
Igor's user avatar
  • 325
1 vote
1 answer
93 views

I am trying to optimize the cost function calculation in regression analysis using a non-matrix multiplication based approach. More specifically, I have a point $x = (1, 1, 2, 3)$, to which I want to ...
Akshay Tilekar's user avatar
2 votes
1 answer
293 views

I have learned so far how to linear regression with one or multiple features. So far, so good, everything seems to work fine, at least for my first simple examples. However, I now need to normalise my ...
Golo Roden's user avatar
2 votes
0 answers
82 views

What is the difference between a generalised estimating equation (GEE) model and a recurrent neural network (RNN) model, in terms of what these two models are doing? Apart from the differences in the ...
Leockl's user avatar
  • 161
2 votes
1 answer
808 views

In machine learning, I understand that linear regression assumes that parameters or weights in equation should be linear. For Example: $$y = w_1x_1 + w_2x_2$$ is a linear equation where $x_1$ and $...
ka1shi's user avatar
  • 43
1 vote
2 answers
441 views

I am new to neural networks. I would like to use them as a fitting or forecasting method. A simple NN model that does not contain hidden layers, that is, the input nodes are directly connected to the ...
Nizar's user avatar
  • 111
0 votes
2 answers
173 views

A single neuron will be able to do linear separation. For example, XOR simulator network: ...
Dan D's user avatar
  • 1,338
0 votes
1 answer
90 views

I have a bunch of training data for classifying product names, around 30,000 samples. The task is to classify these product names into types of product, around 100 classes (single words). For example:...
Dan D's user avatar
  • 1,338
1 vote
1 answer
139 views

The ready-to-use DNNClassifier in tf.estimator seems not able to fit these data: ...
Dan D's user avatar
  • 1,338
2 votes
4 answers
246 views

In regression, in order to minimize an error function, a functional form of hypothesis $h$ must be decided upon, and it must be assumed (as far as I'm concerned) that $f$, the true mapping of instance ...
sangstar's user avatar
  • 131
2 votes
1 answer
495 views

Consider the following data with one input (x) and one output (y): (x=1, y=2) (x=2, y=1) (x=3, y=2) Apply linear regression on this data, using the hypothesis $h_Θ(x) = Θ_0 + Θ_1 x$, where $...
ten do's user avatar
  • 145