GATE 2024
64 questions
MCQ 36 · MSQ 12 · NAT 161-mark 29 · 2-mark 35
Questions 61–64 of 64
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 ) or pace-friendly (represented as ). The attribute Format can take one of two values: one-day match (represented as ) or test match (represented as T).
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).
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).
Answer: 0.12 to 0.13
Information gain: , where is the entropy and is the set of matches with Pitch value . This uses entropy as the impurity measure.
All 10 matches: 4 Green, 6 Blue.
Pitch = S (matches 1, 2, 4, 7, 10): 3 Green, 2 Blue.
Pitch = F (matches 3, 5, 6, 8, 9): 1 Green, 4 Blue.
Each Pitch value has 5 of the 10 matches, so the weighted entropy after the split is
This is below 0.125, so it rounds to 0.12.
Answer: 0.12
All 10 matches: 4 Green, 6 Blue.
Pitch = S (matches 1, 2, 4, 7, 10): 3 Green, 2 Blue.
Pitch = F (matches 3, 5, 6, 8, 9): 1 Green, 4 Blue.
Each Pitch value has 5 of the 10 matches, so the weighted entropy after the split is
This is below 0.125, so it rounds to 0.12.
Answer: 0.12
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 in nearest neighbor algorithm for which the diamond () shaped data point is assigned the label square is ______.
Answer: 5
Distances from the diamond at to each point:
- circle :
- circle :
- square :
- square :
- square :
Taking the nearest points in order, then voting:
- : 1 circle, so the label is circle.
- : 2 circles and 1 square, so the label is circle.
- : 2 circles and 3 squares, so the label is square.
The smallest odd that gives square is .
Answer: 5
- circle :
- circle :
- square :
- square :
- square :
Taking the nearest points in order, then voting:
- : 1 circle, so the label is circle.
- : 2 circles and 1 square, so the label is circle.
- : 2 circles and 3 squares, so the label is square.
The smallest odd that gives square is .
Answer: 5
Given the following Bayesian Network consisting of four Bernoulli random variables and the associated conditional probability tables: decimal places).
The value of = ______ (rounded off to three decimal places).
The value of = ______ (rounded off to three decimal places).
Answer: 0.125
Use the diagram from the question to write the joint probability:
It has the form P(U).P(V | U).P(W | U).P(Z | V, W)
Values read from the tables:
P(U=1) = 0.5, P(V=1 | U=1) = 0.5, P(W=1 | U=1) = 1 & P(Z=1 | V=1, W=1) = 0.5
P(U=1, V=1, W=1, Z=1) = P(U=1).P(V=1 | U=1).P(W=1 | U=1).P(Z=1 | V=1, W=1) = 0.5*0.5*1*0.5 = 0.125
Two fair coins are tossed independently. is a random variable that takes a value of 1 if both tosses are heads and 0 otherwise. is a random variable that takes a value of 1 if at least one of the tosses is heads and 0 otherwise.
The value of the covariance of and is _________ (rounded off to three decimal places).
The value of the covariance of and is _________ (rounded off to three decimal places).
Answer: 0.062 to 0.063
The table gives the joint distribution of and and the marginals.
For , only the term with is not zero:
Answer: 0.0625
For , only the term with is not zero:
Answer: 0.0625