GATE 2024
64 questions
MCQ 36 · MSQ 12 · NAT 161-mark 29 · 2-mark 35
Questions 16–20 of 64
Which ONE of the following sets is a possible set of support vectors?
Answer: (D)
The class points lie on one side and the class points on the other. The closest pairs across the classes are along the lines and , so the widest gap is given by , (the line ).
Check for each point:
- : . : . These four lie exactly on the margin, so they are the support vectors.
- : . : . These are far outside the margin, so they are not support vectors.
So the support vectors are . Options (A), (B) and (C) fail because they contain (not on the margin) and miss points that are on it.
Answer: (D)
Answer: (C)
Naive Bayes models and (with features assumed independent given the class) and then uses Bayes' rule to get . It models how the data is generated, so it goes with Generative Model.
Logistic Regression models directly, without modelling how is generated. So it goes with Discriminative Model.
So the match is (p)-(ii), (q)-(iii), (r)-(i).
Answer: (C)
Answer: (D)
A convex region that holds two points also holds the whole segment between them. The midpoint of and is , so must be in cluster 3.
The other points are not on that segment, so nothing forces them into cluster 3. For example, a centroid placed at , or can pull that point into another cluster while and stay with a centroid at .
Answer: (D)
Answer: (B)
The Naive Bayes Classifier assumes that the attributes are independent of each other.
So, say the dataset has features, written as , and the class label is .
Here, both and are boolean variables. This means or for , and or .
Now, because of the "independent" assumption of the Naive Bayes Classifier,
Bayesian classifiers use the Bayes theorem, which is . But we ignore here, since it is the same for all the classes "", so it does not matter here.
So,
Now, using the equation
Now, to estimate each we have to find values, one for each of and .
For example, if we have found , then we can easily find , and the other way round.
This is because they are independent features.
The same holds for
So, we need values to estimate each , and so we need a total of values. We also need one value to estimate .
So, we need a total of parameters.
If the features are not independent, we need a total of parameters to estimate . For , we need values, because the one remaining value can be found by making the probabilities sum to 1. In the same way, for , we need values.
So in total we need to estimate
Inserting an element in this hash table requires at most _________ probes, on average.
Answer: (B)
Correct Answer:
Reason: To insert a value, we must first search for a free slot in the hash table. This is the same as an unsuccessful search. The expected number of probes for that is given in the question as