Recent questions in Machine Learning

0 0 votes
0 0 answers
33
33 views
Consider the least squares regression model, $\hat{Y} = X\theta$. Assume that $X$ and $Y$ refer to the design matrix and true response vector for our training data.Let $\...
0 0 votes
1 1 answer
223
223 views
Consider the following two regularized linear regression objectives:$$L_1(w)=\sum_{i=1}^{n}(y_i-w^T x_i)^2+\lambda\sum_{j=1}^{8}w^2_j$$$$L_2(w)=\sum_{i=1}^{n}(y_i-w^T x_i...
0 0 votes
0 0 answers
94
94 views
Consider the following dataset for a binary classification problem, where $+$ denotes the positive class and $-$ denotes the negative class.$$\begin{array}{|c|c|c|}\hline...
0 0 votes
0 0 answers
71
71 views
Given $n$ linearly independent feature vectors in $n$ dimensions, each assigned a label from $\{-1,+1\}$, consider a linear classifier of the form $\operatorname{sign}(w\...
0 0 votes
0 0 answers
82
82 views
Consider a regression model $h(x)=2x$ with the following loss function:$$L_{\mathrm{OINK}}(\hat{y},y)=\begin{cases}a(\hat{y}-y), & \hat{y}\geq y,\\b(y-\hat{y}), & \hat{y}...
1 1 vote
0 0 answers
72
72 views
Consider the following regularized linear regression objective function:$$L(w,b)=\sum_{i=1}^{n}(y_i-w^T x_i-b)^2+\lambda w^T D w$$where $D$ is a fixed diagonal matrix cho...
0 0 votes
0 0 answers
62
62 views
Which of the following statements about $L_1$ and $L_2$ regularization in linear regression are correct?$L1$ regularization tends to produce sparser weight vectors than $...
0 0 votes
0 0 answers
65
65 views
Consider a binary logistic regression model with labels $Y \in \{0,1\}$. Suppose the class probabilities are obtained from the softmax function using weight vectors $w_0$...
0 0 votes
0 0 answers
84
84 views
For a hard-margin SVM, the margin is inversely related to $\|w\|$. Suppose two SVM solutions have weight vectors $w_1$ and $w_2$, where$$\left\|w_1\right\|<\left\|w_2\rig...
0 0 votes
0 0 answers
66
66 views
Consider a least-squares linear regression problem with $X \in \mathbb{R}^{n \times d}$ and $y \in \mathbb{R}^n$. If the least-squares solution is unique, which of the fo...
0 0 votes
0 0 answers
64
64 views
Suppose a soft-margin SVM is used for a binary classification problem with labels $y_i \in\{-1,+1\}$. Let $\xi_i$ be the slack variable for training point $i$.If an error...
0 0 votes
0 0 answers
60
60 views
Let $f: \mathbb{R}^d \rightarrow \mathbb{R}$ be a differentiable function. At a point $x$, in which direction does the gradient $\nabla f(x)$ point?Direction of steepest ...
0 0 votes
0 0 answers
62
62 views
In linear regression, the least-squares prediction is given by$$\hat{y}=X\left(X^T X\right)^{-1} X^T y .$$What does this expression represent geometrically?The projection...
0 0 votes
0 0 answers
57
57 views
Suppose we are performing linear regression on $n$ training examples. Let $y_i$ be the actual output and $\hat{y}_i$ be the model's prediction for the $i$-th example.The ...
1 1 vote
0 0 answers
51
51 views
Consider the dataset shown below. A linear regression model $y = \theta x + \theta_0$ is now trained using datasets $A$ and $B$ (combined), and tested on dataset $C$.Base...
0 0 votes
0 0 answers
55
55 views
Suppose we have $n$ observations $\left(x_{i}, y_{i}\right)$, where $i=1,2, \ldots, n$. We use a linear regression model without an intercept, $\hat{y}=\beta x$.The param...
0 0 votes
0 0 answers
68
68 views
For the same dataset, consider the following two models:Model A: $\quad y=w_{1}^{2} x+w_{2} x$Model B: $\quad y=w x$Assume that we have unlimited training data. Which of ...
0 0 votes
0 0 answers
53
53 views
Consider the following two linear regression models, both including an intercept:Model A: $\quad \hat{y}=\theta_{0}+\theta_{1} x$Model B: $\hat{y}=\beta_{0}+\beta_{1} x^{...
0 0 votes
0 0 answers
55
55 views
Consider the dataset shown below. A linear regression model $y = \theta x + \theta_0$ is trained on dataset $A$ and tested on the disjoint dataset $B$. The performance is...