Classification questions

Q22

GATE DA 2025 DAClassificationMCQ1 mark−1/3 if wrong

Report a problem with Q22

What is wrong?
Consider designing a linear classifier
y=sign(f(x;w,b)),f(x;w,b)=w⊤x+by = \text{sign}(f(x;w, b)), \quad f(x;w, b) = w^\top x + b
on a dataset D={(x1,y1),(x2,y2),…,(xN,yN)},xi∈Rd,yi∈{+1,−1},i=1,2,…,ND = \{(x_1, y_1), (x_2, y_2), \ldots, (x_N, y_N)\}, x_i \in \mathbb{R}^d, y_i \in \{+1, -1\}, i = 1, 2, \ldots, N. Recall that the sign function outputs +1+1 if the argument is positive, and −1-1 if the argument is non-positive. The parameters ww and bb are updated as per the following training algorithm:
wnew=wold+ynxn,bnew=bold+ynw_{\text{new}} = w_{\text{old}} + y_nx_n, \quad b_{\text{new}} = b_{\text{old}} + y_n
whenever sign(f(xn;wold,bold))≠yn\text{sign}(f(x_n; w_{\text{old}}, b_{\text{old}})) \neq y_n. In other words, whenever the classifier wrongly predicts a sample (xn,yn)(x_n, y_n) from the dataset, woldw_{\text{old}} gets updated to wneww_{\text{new}}, and likewise boldb_{\text{old}} gets updated to bnewb_{\text{new}}. Consider the case (xn,+1)(x_n, +1), f(xn;wold,bold)<0f(x_n; w_{\text{old}}, b_{\text{old}}) < 0. Then
Show answer without attempting

Loading the answer…

Q35

GATE DA 2025 DAClassificationNAT1 mark

Report a problem with Q35

What is wrong?
The naive Bayes classifier is used to solve a two-class classification problem with class labels y1,y2y_1, y_2. Suppose the prior probabilities are P(y1)=13P(y_1) = \frac{1}{3} and P(y2)=23P(y_2) = \frac{2}{3}. Assuming a discrete feature space with
P(x∣y1)=34andP(x∣y2)=14P(x|y_1) = \frac{3}{4} \quad \text{and} \quad P(x|y_2) = \frac{1}{4}
for a specific feature vector xx. The probability of misclassifying xx is __________ (Round off to two decimal places)
Show answer without attempting

Loading the answer…

Q53

GATE DA 2025 DAClassificationMSQ2 marks

Report a problem with Q53

What is wrong?
Consider designing a linear binary classifier f(x)=sign(w⊤x+b)f(x) = \text{sign}(w^\top x + b), x∈R2x \in \mathbb{R}^2 on the following training data:
Class-1: {(20),(02),(22)}\left\{ \begin{pmatrix} 2 \\ 0 \end{pmatrix}, \begin{pmatrix} 0 \\ 2 \end{pmatrix}, \begin{pmatrix} 2 \\ 2 \end{pmatrix} \right\}, Class-2: {(00)}\left\{ \begin{pmatrix} 0 \\ 0 \end{pmatrix} \right\}
Hard-margin support vector machine (SVM) formulation is solved to obtain ww and bb. Which of the following options is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q55

GATE DA 2025 DAClassificationMSQ2 marks

Report a problem with Q55

What is wrong?
Consider a two-class problem in Rd\mathbb{R}^d with class labels red and green. Let μred\mu_{\text{red}} and μgreen\mu_{\text{green}} be the means of the two classes. Given test sample x∈Rdx \in \mathbb{R}^d, a classifier calculates the squared Euclidean distance (denoted by ∥⋅∥2\|\cdot\|^2) between xx and the means of the two classes and assigns the class label that the sample xx is closest to. That is, the classifier computes
f(x)=∥μred−x∥2−∥μgreen−x∥2f(x) = \|\mu_{\text{red}} - x\|^2 - \|\mu_{\text{green}} - x\|^2
and assigns the label red to xx if f(x)<0f(x) < 0, and green otherwise. Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q17

GATE DA 2024 DAClassificationMCQ1 mark−1/3 if wrong

Report a problem with Q17

What is wrong?
Consider the dataset with six datapoints: {(x1,y1),(x2,y2),…,(x6,y6)}\{(x_1, y_1), (x_2, y_2), \dots, (x_6, y_6)\}, where x1=[10]x_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix}, x2=[01]x_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix}, x3=[0−1]x_3 = \begin{bmatrix} 0 \\ -1 \end{bmatrix}, x4=[−10]x_4 = \begin{bmatrix} -1 \\ 0 \end{bmatrix}, x5=[22]x_5 = \begin{bmatrix} 2 \\ 2 \end{bmatrix}, x6=[−2−2]x_6 = \begin{bmatrix} -2 \\ -2 \end{bmatrix} and the labels are given by y1=y2=y5=1y_1 = y_2 = y_5 = 1, and y3=y4=y6=−1y_3 = y_4 = y_6 = -1. A hard margin linear support vector machine is trained on the above dataset.

Which ONE of the following sets is a possible set of support vectors?
Show answer without attempting

Loading the answer…

Q20

GATE DA 2024 DAClassificationMCQ1 mark−1/3 if wrong

Report a problem with Q20

What is wrong?
Given a dataset with KK binary-valued attributes (where K>2K > 2) for a two-class classification task, the number of parameters to be estimated for learning a naïve Bayes classifier is
Show answer without attempting

Loading the answer…

Q22

GATE DA 2024 DAClassificationMCQ1 mark−1/3 if wrong

Report a problem with Q22

What is wrong?
For any binary classification dataset, let SB∈Rd×d\mathbf{S}_B \in \mathbb{R}^{d \times d} and SW∈Rd×d\mathbf{S}_W \in \mathbb{R}^{d \times d} be the between-class and within-class scatter (covariance) matrices, respectively. The Fisher linear discriminant is defined by u∗∈Rd\mathbf{u}^* \in \mathbb{R}^d, that maximizes
J(u)=uTSBuuTSWuJ(\mathbf{u}) = \frac{\mathbf{u}^T \mathbf{S}_B \mathbf{u}}{\mathbf{u}^T \mathbf{S}_W \mathbf{u}}

If λ=J(u∗)\lambda = J(\mathbf{u}^*), SW\mathbf{S}_W is non-singular and SB≠0\mathbf{S}_B \neq 0, then (u∗,λ)(\mathbf{u}^*, \lambda) must satisfy which ONE of the following equations?

Note: R\mathbb{R} denotes the set of real numbers.
Show answer without attempting

Loading the answer…

Q53

GATE DA 2024 DAClassificationMSQ2 marks

Report a problem with Q53

What is wrong?
Consider the following figures representing datasets consisting of two-dimensional features with two classes denoted by circles and squares.

Which of the following is/are TRUE?
Question figure
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q62

GATE DA 2024 DAClassificationNAT2 marks

Report a problem with Q62

What is wrong?
Details of ten international cricket games between two teams “Green” and “Blue” are given in Table C. This table consists of matches played on different pitches, across formats along with their winners. The attribute Pitch can take one of two values: spin-friendly (represented as SS) or pace-friendly (represented as FF). The attribute Format can take one of two values: one-day match (represented as OO) or test match (represented as TT).

A cricket organization would like to use the information given in Table C to develop a decision-tree model to predict outcomes of future games between these two teams.

To develop such a model, the computed InformationGain(C, Pitch) with respect to the Target is ______ (rounded off to two decimal places).

Table C
Match NumberPitchFormatWinner (Target)
1STGreen
2STBlue
3FOBlue
4SOBlue
5FTGreen
6FOBlue
7SOGreen
8FTBlue
9FOBlue
10SOGreen
Show answer without attempting

Loading the answer…

Q63

GATE DA 2024 DAClassificationNAT2 marks

Report a problem with Q63

What is wrong?
Given the two-dimensional dataset consisting of 5 data points from two classes (circles and squares) and assume that the Euclidean distance is used to measure the distance between two points. The minimum odd value of kk in kk-nearest neighbor algorithm for which the diamond (⋄\diamond) shaped data point is assigned the label square is ______.
Question figure
Show answer without attempting

Loading the answer…

0/100 correct0 marks

Related topics in Machine Learning