GATE 2025
65 questions
MCQ 35 · MSQ 18 · NAT 121-mark 30 · 2-mark 35
Questions 31–35 of 65
There are three boxes containing white balls and black balls.
Box-1 contains 2 black and 1 white balls.
Box-2 contains 1 black and 2 white balls.
Box-3 contains 3 black and 3 white balls.
In a random experiment, one of these boxes is selected, where the probability of choosing Box-1 is , Box-2 is , and Box-3 is . A ball is drawn at random from the selected box. Given that the ball drawn is white, the probability that it is drawn from Box-2 is ________ (Round off to two decimal places)
Box-1 contains 2 black and 1 white balls.
Box-2 contains 1 black and 2 white balls.
Box-3 contains 3 black and 3 white balls.
In a random experiment, one of these boxes is selected, where the probability of choosing Box-1 is , Box-2 is , and Box-3 is . A ball is drawn at random from the selected box. Given that the ball drawn is white, the probability that it is drawn from Box-2 is ________ (Round off to two decimal places)
Answer: 0.25
Chance of white from each box:
Total probability of white:
Bayes' rule:
Answer: 0.25
Total probability of white:
Bayes' rule:
Answer: 0.25
_____ (Round off to one decimal place)
Answer: 0.5
Multiply and divide by the conjugate:
Now divide the top and the bottom by :
When , we get . So the limit becomes
Answer: 0.5
Now divide the top and the bottom by :
When , we get . So the limit becomes
Answer: 0.5
On a relation named Loan of a bank:
The following SQL query is executed:
The number of rows returned by the query is _______(Answer in integer)
The following SQL query is executed:
SELECT L1.loan number
FROM Loan L1
WHERE L1.amount >(SELECT MAX(L2.amount)
FROM Loan L2
WHERE L2.branch name='SR Nagar'); The number of rows returned by the query is _______(Answer in integer)
Answer: 3
Inner subquery: it finds where . The SR Nagar loans are , and . So the maximum .
Outer query: it picks the loans with (strictly greater). Checking each loan: ✓, , , , ✓, ✓, .
Loans that qualify: . This gives rows.
Answer: 3
Outer query: it picks the loans with (strictly greater). Checking each loan: ✓, , , , ✓, ✓, .
Loans that qualify: . This gives rows.
Answer: 3
Given data of the form , we fit a model using linear least-squares regression. The optimal value of is ________(Round off to three decimal places)
Answer: 0.285 to 0.287
Model has no intercept, so the least-squares weight is
Answer: 0.286
Answer: 0.286
The naive Bayes classifier is used to solve a two-class classification problem with class labels . Suppose the prior probabilities are and . Assuming a discrete feature space with
for a specific feature vector . The probability of misclassifying is _______ (Round off to two decimal places)
for a specific feature vector . The probability of misclassifying is _______ (Round off to two decimal places)
Answer: 0.39 to 0.41
Posteriors: ,
The Bayes-optimal classifier chooses the class with the larger posterior (, with ). Misclassification probability is the probability of the class not chosen:
Answer: 0.40