Recent questions tagged linear-regression

1 1 vote
1 1 answer
373
373 views
Which of the following statements are true for a design matrix $X \in \mathbb{R}^{n \times d}$ with $d n$? (The rows are $n$ sample points and the columns represent $d$ ...
1 1 vote
2 2 answers
633
633 views
A data scientist uses LASSO regression on a training dataset and obtains a set of weights. LASSO is known for introducing bias due to its regularization penalty but is al...
0 0 votes
1 1 answer
444
444 views
You have used Ridge regression (12 penalty) on a dataset and obtained a set of weights 𝑤̂. Compared to the weights obtained from unregularized linear regression (Ordinary...
0 0 votes
0 0 answers
371
371 views
Consider the following table defining the sample inputs and corresponding target values for a perceptron model.$\begin{array}{|c|c|c|c|c|c|} \hline \text{Sample No} & x1 ...
1 1 vote
1 1 answer
496
496 views
Consider linear regression and logistic regression. They both use linear functions.They both can be used to solve regression prob-They both use the logistic activation fu...
1 1 vote
1 1 answer
242
242 views
Consider a simple classification task with features $x_i \in \mathbb{R}^d$ and $k$ classes. Suppose we train a linear classifier to minimize the regularized least squared...
1 1 vote
1 1 answer
232
232 views
Consider just the general shape of the following plots.For each of the following possible interpretations of the quantities being plotted on the $X$ and $Y$ axes, indicat...
1 1 vote
0 0 answers
179
179 views
Consider the following training data: xy132130.5Suppose the data comes from a model $y=c x^\beta$ , for unknown constants $c$ and $\beta$. Use least squares linear regres...
1 1 vote
1 1 answer
263
263 views
A linear model is defined as a model where our prediction $\hat{y}$ is given by the equation below, where $d$ is the number of parameters in our model:$$\hat{y}=f_\theta(...
3 3 votes
1 1 answer
216
216 views
$\text { Which model would be the most appropriate linear model for the following dataset ? }$ $ \ y=\theta_1 x+\theta_2 $$y=\sum_{k=1}^d \theta_k x^k $$\sqrt{ } y=\theta...
1 1 vote
0 0 answers
200
200 views
Linear regression. What is linear about it $?$Select all that apply.Always fits a linear (or affine) shape to the dataLinear objective function with respect to the inputL...
1 1 vote
0 0 answers
158
158 views
Suppose we are performing linear regression using a non-linear basis expansion $\Phi$. Which of the following statements is true about the learned predictor?It is a linea...
1 1 vote
0 0 answers
195
195 views
When running linear regressions, it is a good idea to look at the largest (in absolute value) regression weights to see which features are most influential in determining...
1 1 vote
1 1 answer
204
204 views
Suppose we have a data set of 100 points whose first few rows are shown below, and that we'd like to predict $\vec{y}$ from $\vec{v}$ and $\vec{w}$. Suppose we create a d...
1 1 vote
1 1 answer
202
202 views
Suppose we have a data set of 100 points whose first few rows are shown below, and that we'd like to predict $\vec{y}$ from $\vec{v}$ and $\vec{w}$. Suppose we create a d...
1 1 vote
1 1 answer
168
168 views
Suppose we have a data set of 100 points whose first few rows are shown below, and that we'd like to predict $\vec{y}$ from $\vec{v}$ and $\vec{w}$. Suppose we create a d...
1 1 vote
1 1 answer
189
189 views
Alice has collected a dataset of dependent and independent variables $\left\{\left(x^{(1)}, y^{(1)}\right), \ldots,\left(x^{(n)}, y^{(n)}\right)\right\}$; she does linear...
2 2 votes
1 1 answer
148
148 views
Let $(x_i, y_i)$ be a data point, where $x_i \in \mathbb{R}^d$ is a feature vector and $y_i \in \mathbb{R}$ is the correspondingoutput. There are a total of $m$ data poin...
0 0 votes
1 1 answer
214
214 views
For the remainder of this question, we will use the multiple linear regression model, which is of the form$$\hat{y}=x \cdot \theta=\sum_{j=0}^p \theta_j x_j$$We assume th...
1 1 vote
0 0 answers
144
144 views
Assume that you have a dataset composed of $N$ observations: the target $\mathbf{t}$ and features $\mathbf{X}$. You want to fit a linear regression model and find the wei...
0 0 votes
1 1 answer
183
183 views
Given data $\mathcal{D}=\left\{\left(\mathbf{x}^{(1)}, y^{(1)}, \ldots,\left(\mathbf{x}^{(N)}, y^{(N)}\right)\right\}\right.$, we obtain $\hat{\mathbf{w}}$, the parameter...
0 0 votes
1 1 answer
190
190 views
Suppose the scores of the midterm, homework, and final of 4 students are given by MidtermHomeworkFinal808596726874949790697078You'd like to use linear regression to predi...
0 0 votes
1 1 answer
196
196 views
The closed form solution for linear regression is $\theta=\left(\mathbf{X}^T \mathbf{X}\right)^{-1} \mathbf{X}^T \mathbf{y}$. Suppose you have $N=35$ training examples an...