MIT 6.867 Machine Learning Midterm Exam
MIT 6.867 Machine Learning Midterm Exam
For a fixed value of x, the ratio y/x in the regression model y = wx + ϵ, where ϵ is distributed as N(0, σ^2x^2), results in y being distributed as N(wx, σ^2x^2). So, y/x becomes N(w, σ^2/x), indicating that as x is fixed, the variance decreases with increasing x by the factor 1/x. This reflects the variable noise effect depending on the magnitude of x .
To perfectly classify the training examples using logistic regression, introducing the feature x1x2 can capture the underlying logic (y = 1 if x1 = x2, otherwise y = 0) effectively. This transformation allows the separation by functioning directly with the relevant interaction between x1 and x2 .
A polynomial kernel of lower order, specifically order p=2, is required to correctly classify the reduced feature set which consists of points (0,y=1), (2,y=1), (1,y=-1), and (3,y=-1). This allows for a transformation into a higher-dimensional space where a linear separator effectively discriminates between classes .
Greedy selection in logistic regression, based on improving training log-likelihood with no other stopping criteria, may be criticized for its potential short-sightedness, as it may include features like x1 or x2 if they initially appear beneficial, without considering their combined effect or underlying interactions. It risks missing optimal combinations unless explored systematically .
The plots that can represent prediction errors for linear or quadratic regression models when trained with the least squares estimation criterion need to be identified. Plots that show a linear pattern of prediction error, where errors increase or decrease linearly, are compatible with linear regression models. In contrast, those that depict a polynomial or curved error pattern can correspond to quadratic regression models. Identifying compatibility involves matching the pattern of errors in the plots with expected error behaviors from these models. Specific plots and model compatibility need to be evaluated based on visual inspection or additional statistical analysis, which is not directly shown .
In logistic regression, structural error (SE) and approximation error (AE) are identified through expected log-likelihood plots of test labels. Structural error represents a baseline error level and remains unaffected by increased training data, whereas approximation error decreases as more data lead to improved model fitting and reduced error margins. Points on the plot where the expected log-likelihood levels off indicate structural error, while the convergence towards this level reflects reduction in approximation error .
To minimize the prediction variance f(x; ˆw_n) = ˆw_nx effectively in a sequential active learning scenario, the next training input x_(n+1) should be selected to maximize the reduction of uncertainty in the parameter estimate. This typically involves choosing x_n+1 at the boundary of the input range, i.e., either x = 1 or x = 4, depending on the specific behavior of the variance function and its dependence on x .
Adding a regularization penalty |w_1|^2/2 to the log-likelihood criterion in logistic regression can potentially reduce the classification error especially in small datasets by discouraging the model from fitting noise, thereby lowering the likelihood of overfitting .
The margin of a maximum margin classifier remains constant with respect to the parameter h as long as the data remain linearly separable. This implies that changes in h do not alter the optimal separating hyperplane until the point where linear separability is compromised .
The variance of the maximum likelihood estimate of w, considering noise in the target outputs, is inversely proportional to the number of samples n and directly proportional to the square of the noise, σ^2. This can be represented as V(n, σ^2) = σ^2/n, implying that increasing the number of training samples reduces the estimator variance, enhancing the precision of the estimate .