GATE DA 2024 question paper with solutions
All 65 questions of the GATE 2024 Data Science and Artificial Intelligence paper, in order, with the official answer key from IISc Bengaluru. 54 have a full solution; 1 more shows the official answer only.
- questions · 100 marks
- 65questions · 100 marks
- with a full solution
- 54with a full solution
- question types
- 37 MCQ · 12 MSQ · 16 NATquestion types
GATE DA 2024 answer key
| Question | Type | Marks | Answer |
|---|---|---|---|
| Q.1 | MCQ | 1 | D |
| Q.2 | MCQ | 1 | A |
| Q.3 | MCQ | 1 | B |
| Q.4 | MCQ | 1 | B |
| Q.5 | MCQ | 1 | B |
| Q.6 | MCQ | 2 | D |
| Q.7 | MCQ | 2 | A |
| Q.8 | MCQ | 2 | B |
| Q.9 | MCQ | 2 | A |
| Q.10 | MCQ | 2 | A |
| Q.11 | MCQ | 1 | A |
| Q.12 | MCQ | 1 | A |
| Q.13 | MCQ | 1 | B |
| Q.14 | MCQ | 1 | A |
| Q.15 | MCQ | 1 | A |
| Q.16 | MCQ | 1 | A |
| Q.17 | MCQ | 1 | D |
| Q.18 | MCQ | 1 | C |
| Q.19 | MCQ | 1 | D |
| Q.20 | MCQ | 1 | B |
| Q.21 | MCQ | 1 | B |
| Q.22 | MCQ | 1 | A |
| Q.23 | MCQ | 1 | D |
| Q.24 | MCQ | 1 | C |
| Q.25 | MCQ | 1 | C |
| Q.26 | MCQ | 1 | C |
| Q.27 | MCQ | 1 | B |
| Q.28 | MSQ | 1 | A, B, C |
| Q.29 | MSQ | 1 | B, C, D |
| Q.30 | NAT | 1 | 0 |
| Q.31 | NAT | 1 | 3 |
| Q.32 | NAT | 1 | 17 |
| Q.33 | NAT | 1 | 0.24 |
| Q.34 | NAT | 1 | 42 |
| Q.35 | NAT | 1 | 0 |
| Q.36 | MCQ | 2 | C |
| Q.37 | MCQ | 2 | A |
| Q.38 | MCQ | 2 | D |
| Q.39 | MCQ | 2 | C |
| Q.40 | MCQ | 2 | A |
| Q.41 | MCQ | 2 | C |
| Q.42 | MCQ | 2 | A |
| Q.43 | MCQ | 2 | A |
| Q.44 | MCQ | 2 | C |
| Q.45 | MCQ | 2 | B |
| Q.46 | MSQ | 2 | A, B, D |
| Q.47 | MSQ | 2 | A, C |
| Q.48 | MSQ | 2 | B, D |
| Q.49 | MSQ | 2 | B, C, D |
| Q.50 | MSQ | 2 | A, B |
| Q.51 | MSQ | 2 | B, D |
| Q.52 | MSQ | 2 | A, B, C |
| Q.53 | MSQ | 2 | A, D |
| Q.54 | MSQ | 2 | A, C |
| Q.55 | MSQ | 2 | A, B |
| Q.56 | NAT | 2 | 0.125 |
| Q.57 | NAT | 2 | 0.2 |
| Q.58 | NAT | 2 | 0.25 |
| Q.59 | NAT | 2 | Marks to all |
| Q.60 | NAT | 2 | 0.5 |
| Q.61 | NAT | 2 | 55 |
| Q.62 | NAT | 2 | 0.12 to 0.13 |
| Q.63 | NAT | 2 | 5 |
| Q.64 | NAT | 2 | 0.125 |
| Q.65 | NAT | 2 | 0.062 to 0.063 |
General Aptitude Q.1 to Q.10
- Q.1MCQ · 1 markOfficial answer: D
- Q.2MCQ · 1 markOfficial answer: A
- Q.3MCQ · 1 markOfficial answer: B
- Q.4MCQ · 1 markOfficial answer: B
- Q.5MCQ · 1 markOfficial answer: B
- Q.6MCQ · 2 marksOfficial answer: D
- Q.7MCQ · 2 marksOfficial answer: A
- Q.8MCQ · 2 marksOfficial answer: B
- Q.9MCQ · 2 marksOfficial answer: A
- Q.10MCQ · 2 marksOfficial answer: A
Data Science and Artificial Intelligence Q.11 to Q.65
- Q.11MCQ · 1 markOfficial answer: A
Probability and Statistics › Continuous distributions
A Poisson() variable has mean and variance . The standard normal is the normal with mean 0 and variance 1. Both statements hold.
WATCH OUT FORFull solutionConfusing the second parameter of with the standard deviation, or doubting that a Poisson variable's variance equals its mean. Both statements are standard facts, so there is nothing to trap you.
- Q.12MCQ · 1 markOfficial answer: A
Probability and Statistics › Counting & axioms
With 3 tosses, heads plus tails equals 3. Two events that each need at least 2 of the 3 tosses cannot both occur, so they are mutually exclusive and the intersection is empty.
WATCH OUT FORFull solutionMultiplying as if and were independent, and picking (C). Independent coins do not make and independent. In fact is determined by the same tosses and cannot occur when does.
- Q.13MCQ · 1 markOfficial answer: B
For a real matrix, find the sign of the discriminant of . A negative discriminant means a complex conjugate pair, with no real eigenvalue.
WATCH OUT FORFull solutionComputing the determinant as by dropping the sign of the entry. That gives , which has real roots of opposite sign and wrongly points to (D). The correct determinant is .
- Q.14MCQ · 1 markOfficial answer: A
Data Structures and Algorithms › Graph algorithms
In undirected DFS, an edge first explored from to is a tree edge if is white and a back edge if is gray. It can never be a cross edge, and 'gray' is a vertex colour, not an edge type.
WATCH OUT FORThe question and its official answerChoosing 'cross' or 'gray': in a DFS of an undirected graph every edge is either a tree edge or a back edge, never a cross edge, and 'gray' is a vertex colour, not an edge type.
- Q.15MCQ · 1 markOfficial answer: A
Calculus and Optimization › Maxima & minima
At a stationary point, (second-derivative test) guarantees a local minimum only. It says nothing about global behaviour.
WATCH OUT FORFull solutionChoosing "global minimum" because the second derivative is positive. is a local condition. Global minimality needs convexity everywhere, i.e. on all of .
- Q.16MCQ · 1 markOfficial answer: A
Data Structures and Algorithms › Linear structures
Match each item to the structure that defines it: FIFO is the queue discipline, LIFO is the stack discipline, and key-based lookup is what a hash table is built for.
WATCH OUT FORFull solutionSwapping FIFO and LIFO, so that stacks are paired with first-in-first-out (option D). Remember that a queue serves the oldest item and a stack serves the newest.
- Q.17MCQ · 1 markOfficial answer: D
Machine Learning › LDA, SVM & trees
Support vectors are the points exactly on the margin. Find the maximum-margin hyperplane (the bisector of the closest pair of points in the two convex hulls), then pick the points with .
WATCH OUT FORFull solutionAssuming the far points and must be support vectors because they look extreme. Support vectors are the points closest to the boundary, not the farthest ones; points well outside the margin have zero multiplier.
- Q.18MCQ · 1 markOfficial answer: C
Machine Learning › Logistic, k-NN, naive Bayes
A generative model learns the joint distribution , usually as (Naive Bayes). A discriminative model learns directly (logistic regression). PCA is unsupervised and has no class model, so it is dimensionality reduction.
WATCH OUT FORFull solutionSwapping Naive Bayes and logistic regression because both are called classifiers that output class probabilities. What separates them is whether is modelled (generative) or only (discriminative). Another slip is labelling PCA a generative model.
- Q.19MCQ · 1 markOfficial answer: D
Each -means cluster is a Voronoi cell, which is convex. Any point on the segment between two members of a cluster is therefore also in that cluster.
WATCH OUT FORFull solutionPicking because it is the origin or the "centre" of the data. The origin is not on the segment between the two points, so a centroid can sit near it and claim it for another cluster.
- Q.20MCQ · 1 markOfficial answer: B
Machine Learning › Logistic, k-NN, naive Bayes
Conditional independence given the class turns the joint over attributes into separate one-parameter Bernoulli distributions per class. Count the free parameters: 1 for the prior, plus for the likelihoods.
WATCH OUT FORFull solutionCounting the full joint table per class, which ignores the independence assumption. Another slip is counting both and , or both class priors, instead of only the free parameters.
- Q.21MCQ · 1 markOfficial answer: B
Data Structures and Algorithms › Sorting & hashing
In open addressing, an insertion probes exactly as an unsuccessful search does, until the first empty slot, so it has the same bound .
WATCH OUT FORFull solutionPicking (option A) by mixing up the insertion cost with the successful-search cost, which is about . An insertion always needs at least one probe and its cost blows up as .
- Q.22MCQ · 1 markOfficial answer: A
Machine Learning › LDA, SVM & trees
Maximising the ratio gives the generalised eigenproblem . With invertible this becomes the ordinary eigenproblem for , and the maximum is its largest eigenvalue.
WATCH OUT FORFull solutionSwapping the matrices and writing , or multiplying in the wrong order (). The inverse must multiply from the left, so that it comes from .
- Q.23MCQ · 1 markOfficial answer: D
Artificial Intelligence › Search
Admissible means at every node. The absolute difference of two values in stays in , but a sum, product or ratio can exceed .
WATCH OUT FORFull solutionChoosing because combining two good heuristics seems to give a stronger one. Adding two admissible estimates can double-count the remaining cost and overestimate. Only the maximum (or minimum) of admissible heuristics is guaranteed admissible.
- Q.24MCQ · 1 markOfficial answer: C
Artificial Intelligence › Uncertainty
Read the factorisation as a Bayesian network and apply d-separation. Chains and forks are blocked by conditioning on the middle node, but a collider such as is opened by conditioning on (or on a descendant of it). Marginally independent parents therefore become dependent given the child.
WATCH OUT FORFull solutionAssuming that because and are independent a priori (the factorisation has ), they stay independent once is observed. This ignores the explaining-away effect at a collider.
- Q.25MCQ · 1 markOfficial answer: C
Artificial Intelligence › Search
is the highest value MAX can already guarantee along the path, and is the lowest value MIN can already force. A branch is pruned as soon as .
WATCH OUT FORFull solutionReading "best choice for MIN" as the highest value. Best for MIN is the lowest value, so tracks the lowest value and only decreases. Mixing up the two bounds also flips which comparison ( at MIN nodes, at MAX nodes) triggers pruning.
- Q.26MCQ · 1 markOfficial answer: C
Database Management and Warehousing › Relational algebra
is checked as , with the relation that must be contained on the left. "Either ... or" means the union.
WATCH OUT FORFull solutionUsing the intersection for "either or" (option A), which demands membership in both relations. Or reversing the difference (options B and D), which tests whether Defender/Forward names are in Team.
- Q.27MCQ · 1 markOfficial answer: B
Database Management and Warehousing › Data transformation
Z-score normalization uses only the mean and standard deviation: z = (x − mean) / standard deviation. Minimum and maximum are used by min-max normalization, not here.
WATCH OUT FORFull solutionUsing the minimum and maximum (min-max scaling) gives about 0.484, which is near 0.476 and can tempt you to pick the wrong method. Check that the question asks for the z-score.
- Q.28MSQ · 1 markOfficial answer: A, B, C
Data Structures and Algorithms › Trees & heaps
Inorder together with either preorder or postorder always rebuilds a binary tree. Preorder with postorder fails only because of nodes with a single child, and a full binary tree has none, so it works there too.
WATCH OUT FORFull solutionRemembering the rule that preorder plus postorder cannot rebuild a tree and so rejecting (C). That rule applies to general binary trees, and the question specifies a full binary tree.
- Q.29MSQ · 1 markOfficial answer: B, C, D
Artificial Intelligence › Logic
An implication fails only when its antecedent is true and its consequent false. So make the antecedent true, which here fixes both and , and test the consequent at that single assignment.
WATCH OUT FORFull solutionWriting when the converse is meant, or the reverse. In (A) the antecedent forces and , which makes false. In (D) the antecedent forces , which makes true.
- Q.30NAT · 1 markOfficial answer: 0
Data Structures and Algorithms › Design techniques
With the last element as pivot, an already sorted array makes every pivot the maximum of its subarray, so every element is already on the correct side of it. Nothing needs to be exchanged, so the number of real swaps is zero (the sorted input is the best case for swaps, though the worst case for the recursion depth and comparisons).
WATCH OUT FORFull solutionCounting the self-swaps of a blind Lomuto loop (4+3+2+1 element-with-itself exchanges, plus the final pivot placement) and answering 10 or 14. Those do not exchange two distinct elements, and the question asks for the minimum. Another slip is to treat sorted input as the worst case and expect many swaps; it is the worst case for comparisons and depth, not for real swaps.
- Q.31NAT · 1 markOfficial answer: 3
Database Management and Warehousing › SQL
A comma join with an equality condition on the key is an equi-join. Apply each filter to the joined rows, and count the rows that satisfy all three conditions together.
WATCH OUT FORFull solutionCounting the three Jaipur rows without checking
RaidPoints, or treatingRaidPoints > 200as>= 200and then wrongly including Sunil. Sunil belongs to Patna, so he is excluded either way. - Q.32NAT · 1 markOfficial answer: 17
Data Structures and Algorithms › Linear structures
Trace the deque operation by operation.
ais overwritten at every assignment, so only the last removal (removeLast()) decides the final value.WATCH OUT FORFull solutionReporting the value from the first or second removal (10 or 32), or treating
insertFirstas an append at the back. Another slip is to forget thatais reassigned, so only the last removal counts. - Q.33NAT · 1 markOfficial answer: 0.24
Calculus and Optimization › Limits & continuity
For the logistic sigmoid, , so the derivative can be read straight from the function value without finding .
WATCH OUT FORFull solutionSolving for and then substituting into the derivative is slower and invites rounding errors. Another slip is dropping the minus sign from the chain rule on , or forgetting the square in the denominator.
- Q.34NAT · 1 markOfficial answer: 42
Probability and Statistics › Descriptive statistics
A mean is the total divided by the count, so recover the total (), add the new value, and divide by . Equivalently, the mean moves by .
WATCH OUT FORFull solutionDividing the new sum by 50 instead of 51, or averaging the old mean with the new value as . Both ignore that the old mean carries the weight of 50 points.
- Q.35NAT · 1 markOfficial answer: 0
Factor . If , the whole product has determinant , so the second factor never has to be computed.
WATCH OUT FORFull solutionComputing entry by entry and then taking its determinant. This is long and error-prone. Another slip is to check only whether the trace or an individual entry is zero, instead of checking .
- Q.36MCQ · 2 marksOfficial answer: C
Probability and Statistics › Random variables
Model the wait as a two-state Markov chain (last throw even or not) and solve the two first-step equations for the expected remaining throws.
WATCH OUT FORFull solutionAnswering by treating pairs of throws as independent trials. An odd throw after one even throw wipes out the progress, and overlapping runs are allowed, so the true expectation is larger, at 6.
- Q.37MCQ · 2 marksOfficial answer: A
Calculus and Optimization › Limits & continuity
Differentiable implies continuous. At each junction, match both the function value and the derivative of the middle quadratic with those of the outer line. This gives four linear equations in (two of them consistent).
WATCH OUT FORFull solutionImposing only continuity. Continuity alone gives and , which leaves a whole family of solutions, and options (B) and (C) are tempting for that reason. The derivative conditions fix .
- Q.38MCQ · 2 marksOfficial answer: D
Data Structures and Algorithms › Python
The recursion counts the nodes of a tree stored as a dictionary of child lists. Each call returns 1 for itself plus the counts of its children, and a key missing from the dictionary is a leaf that returns 1. The output is 1 + (1 + 3) + (1 + 3) = 9.
WATCH OUT FORFull solutionCounting only the keys of the dictionary (3) or only the leaves (6), or forgetting that a missing key still returns 1 and so counts as a node. Another slip is returning 0 for leaves, which would give 3 instead of 9.
- Q.39MCQ · 2 marksOfficial answer: C
Data Structures and Algorithms › Python
S[i]is the length of the non-decreasing run ending at positioni. The comparison isX[i-1] <= X[i], andS[i]is reset to 1 whenever it fails. The value added isS[i-1], which is the previous position's already-computed run length.WATCH OUT FORFull solutionUsing
S[i-1] + 1unconditionally, or counting a run only when the sequence strictly increases, gives the wrong array. Another slip is forgetting thatS[i]restarts at 1 after every descent (6 to 3, and 5 to 4). That slip leads to the cumulative-looking distractors in options (A), (B) and (D). - Q.40MCQ · 2 marksOfficial answer: A
Data Structures and Algorithms › Sorting & hashing
Binary search makes one comparison at the middle, then continues in only one part, and the larger part has elements. The worst case therefore satisfies , which gives comparisons.
WATCH OUT FORFull solutionChoosing (B) by copying the merge sort recurrence, which adds the costs of both halves, or choosing (C) by forgetting that the middle comparison costs one step each time.
- Q.41MCQ · 2 marksOfficial answer: C
Data Structures and Algorithms › Python
A recursive two-pointer swap: swap the ends of the window, then recurse on the window shrunk by one at each end, until the pointers meet or cross. That is in-place reversal of the segment.
WATCH OUT FORFull solutionReading the single swap
D[s1], D[s2] = D[s2], D[s1]and picking (D) without noticing the recursive call repeats the swap on the inner pairs. Another error is thinking swaps imply sorting. No comparison between elements ever happens, so the result depends only on positions, never on values. - Q.42MCQ · 2 marksOfficial answer: A
In single linkage, the distance between two clusters is the smallest pairwise distance across them. Merge the closest pair repeatedly, recomputing cluster distances with a minimum.
WATCH OUT FORFull solutionMerging with as a pair, because looks small. That ignores that and already merged at distance 1, so joins the cluster rather than alone.
- Q.43MCQ · 2 marksOfficial answer: A
Machine Learning › Neural networks
With positive inputs, zero biases and positive weights, every pre-activation is positive. ReLU then acts as the identity, so Figure 1 collapses to a linear map. The coefficient of each input equals the sum, over all paths from that input to the output, of the product of the weights along the path. reaches 3 first-layer neurons and each first-layer neuron gives downstream, so . and each reach only 2 first-layer neurons, so .
WATCH OUT FORFull solutionAssuming the first layer is fully connected (9 edges) because the crossing lines look dense. That gives and option (D). Count the edges leaving each input: has 3, but and have only 2 each.
- Q.44MCQ · 2 marksOfficial answer: C
Artificial Intelligence › Search
When the question dictates the expansion order (smallest number first), that rule overrides the usual queue or stack behaviour of BFS and DFS. With the same order, both searches expand the same states and reach the goal after the same number of expansions.
WATCH OUT FORFull solutionApplying the textbook behaviour of BFS (level by level) and DFS (deepest first) and concluding they differ, without noticing that the question forces the ascending-number order on both. Another slip is to count the goal itself as an expansion for one search and not the other.
- Q.45MCQ · 2 marksOfficial answer: B
Data Structures and Algorithms › Sorting & hashing
Simulate each algorithm for exactly two passes and compare with the sorted array. Selection sort fixes one element per pass in its final place. Here the two smallest elements, and , are fixed in two passes, and the rest, , already happens to be in order.
WATCH OUT FORFull solutionAssuming that bubble sort or insertion sort also finishes in two passes. Bubble sort carries only the largest element to the end each pass, so the small elements and near the right move left by just one place per pass. Insertion sort after two passes has only sorted the first three elements and has not yet looked at .
- Q.46MSQ · 2 marksOfficial answer: A, B, D
Database Management and Warehousing › Normal forms
is derivable exactly when . Compute the closure of the left side by repeatedly firing every dependency whose left side is already inside the set. Here is what lets reach and so pull in and .
WATCH OUT FORFull solutionStopping the closure of at and forgetting to fire and afterwards. Another slip is to think holds because determines and . The converse does not follow, since nothing determines .
- Q.47MSQ · 2 marksOfficial answer: A, C
Linear Algebra › Vector spaces
A subspace must contain the zero vector and be closed under addition and all real scalar multiples. A span of vectors and the solution set of a homogeneous linear system are always subspaces.
WATCH OUT FORFull solutionTreating (B) as a span because it is built from two vectors. The squared coefficients can only be non-negative, so negative multiples are missing. For (D), the mistake is forgetting that a plane misses the origin.
- Q.48MSQ · 2 marksOfficial answer: B, D
Linear Algebra › Linear systems
Uniqueness of a solution depends only on the nullity of (independent columns), while existence depends on whether the right-hand side lies in the column space. So the same can give different outcomes for different right-hand sides only when the nullity is positive (infinite versus none) or when the system is tall (unique versus none).
WATCH OUT FORFull solutionThinking that one matrix cannot give different outcomes for different right-hand sides. For a square invertible matrix every right-hand side behaves alike, but a singular square matrix (B) or a tall matrix with independent columns (D) can have a solution for one vector and none for another. In (C), forgetting that a wide matrix always has a non-trivial null space.
- Q.49MSQ · 2 marksOfficial answer: B, C, D
Linear Algebra › Special matrices
A projection matrix is idempotent (), its rank equals , and rank-nullity gives .
WATCH OUT FORFull solutionConfusing the dimension of the subspace being projected onto with the dimension of the null space. For a 1-dimensional the null space has dimension 2, not 1.
- Q.50MSQ · 2 marksOfficial answer: A, B
Calculus and Optimization › Maxima & minima
Find the stationary points from , then classify each one with the second-derivative test (or the sign change of ): gives a local minimum and gives a local maximum.
WATCH OUT FORFull solutionMixing up the sign of . Here , so is a local minimum, and option (C) is a trap. Another slip is to treat as a minimum, when makes it a maximum.
- Q.51MSQ · 2 marksOfficial answer: B, D
Data Structures and Algorithms › Graph algorithms
An ordering is a valid topological sort exactly when, for every directed edge , appears before . Check each edge against each option's positions. The only freedom is the relative order of independent branches, here versus , and the chain versus the chain.
WATCH OUT FORFull solutionChecking only that comes first and comes early, and missing that must also precede . Options (A) and (C) put right after , before . Another slip is forgetting that and are separate chains, so their order relative to each other is free.
- Q.52MSQ · 2 marksOfficial answer: A, B, C
Data Structures and Algorithms › Trees & heaps
In a binary tree, (leaves = degree-2 nodes + 1). Bound the node counts by the longest path, which gives the minimum, and by full levels, which gives the maximum.
WATCH OUT FORFull solutionCounting height in nodes instead of edges, which breaks the lower bounds in B and C. Another slip is assuming a tree of height has at least leaves. A chain has only one leaf.
- Q.53MSQ · 2 marksOfficial answer: A, D
Machine Learning › LDA, SVM & trees
Two classes in the plane are linearly separable exactly when their convex hulls do not intersect. A point inside the other class's hull (panel ii) or crossing diagonals (the XOR layout, panel iii) rule out separation, and one explicit separating line proves it.
WATCH OUT FORFull solutionJudging panel (iv) by eye from its tilted layout and calling it inseparable. Because the points are not on a grid, a slanted line is needed, and one such line separates the classes. The other slip is treating the XOR layout as separable because each class is symmetric.
- Q.54MSQ · 2 marksOfficial answer: A, C
Artificial Intelligence › Logic
\"All X are Y except Z\" means two implications: not-Z implies Y, and Z implies not-Y. Each implication is equivalent to its contrapositive, so and . A pair is correct exactly when it contains one sentence from and one from .
WATCH OUT FORFull solutionTreating or as the full assertion. Each of these pairs holds two equivalent sentences, so it states only one half of the assertion. Another slip is to miss that is the contrapositive of and so drop option (C).
- Q.55MSQ · 2 marksOfficial answer: A, B
Database Management and Warehousing › Indexing
Match index type to predicate type. Hash indexes serve only equality, whereas B trees serve equality and range. A range predicate such as
CustomerRating > 3.4needs a B tree on that attribute.WATCH OUT FORFull solutionAssuming a hash index is always faster than a B tree and choosing a hash index on the attribute with the range condition (option C), or hashing everything (option D). Hashing cannot help with a comparison.
- Q.56NAT · 2 marksOfficial answer: 0.125
Probability and Statistics › Continuous distributions
For independent uniform variables the point is uniform on a rectangle, so the probability is the area of the region divided by the rectangle's area.
WATCH OUT FORFull solutionTreating the two intervals as if they overlapped on only and taking there, or integrating over and forgetting that makes for . The area must be divided by the full rectangle area , not by .
- Q.57NAT · 2 marksOfficial answer: 0.2
Probability and Statistics › Continuous distributions
For an exponential distribution with rate , the mean is and the variance is , so the condition reduces to .
WATCH OUT FORFull solutionUsing the mean and variance of an exponential written in terms of the scale (mean) parameter, or taking the variance as instead of . That gives , which has no solution.
- Q.58NAT · 2 marksOfficial answer: 0.25
Probability and Statistics › Conditional & Bayes
The question gives and the likelihoods , . Get the prior from the complement rule, get by total probability over and , then reverse the conditioning with Bayes' theorem.
WATCH OUT FORFull solutionUsing as if it were . That gives and . Another slip is dividing by or by instead of .
- Q.59NAT · 2 marksOfficial answer: Marks to all
Probability and Statistics › Random variables
Given , the conditional density is proportional to the joint density with held fixed. On that is proportional to , so and . Any constant in front of the joint density cancels in this ratio.
WATCH OUT FORFull solutionOne mistake is taking from to instead of to . Another is using the marginal mean instead of the conditional one. A third is to assume, without checking, that is a valid density: it integrates to on this triangle, so is not the true marginal of (the valid one is ). A fourth is to read the conditional as uniform on , which would give .
- Q.60NAT · 2 marksOfficial answer: 0.5
Calculus and Optimization › Limits & continuity
Split the logarithm of the product into , then use the standard expansions and so each piece divided by has a finite limit.
WATCH OUT FORFull solutionForgetting the contribution and answering (treating as if were negligible next to ), or getting its sign wrong. is of order , so it changes the limit by .
- Q.61NAT · 2 marksOfficial answer: 55
has rank 1, so it has a single nonzero singular value, equal to . The sum of the singular values is therefore the trace, .
WATCH OUT FORFull solutionTaking the single singular value to be the norm instead of . The matrix is , so the squared norm appears. Another slip is adding the entries of (15).
- Q.62NAT · 2 marksOfficial answer: 0.12 to 0.13
Machine Learning › LDA, SVM & trees
Information gain is the parent's entropy minus the size-weighted average entropy of the children. Count the class split in the whole table and in each Pitch branch, then compute the binary entropies.
WATCH OUT FORFull solutionUsing the wrong class counts per branch, for example miscounting the Green wins on pace-friendly pitches. Another slip is forgetting to weight each branch by its share of the matches, or using natural log instead of base 2.
- Q.63NAT · 2 marksOfficial answer: 5
Machine Learning › Logistic, k-NN, naive Bayes
In -NN, rank all training points by Euclidean distance from the query and take a majority vote among the nearest. Compute the distances once, then test each odd in turn.
WATCH OUT FORFull solutionCounting only the two squares nearest to the query, or assuming that the square at is farther than the circle at . These two are tied at , so at both are included, and the circles still win 2 to 1. With 5 points in total, the only way for squares to win a majority is to use all of them.
- Q.64NAT · 2 marksOfficial answer: 0.125
Artificial Intelligence › Uncertainty
A Bayesian network's joint probability is the product of each node's conditional probability given its parents. Read the one row of each table that matches the assignment asked for, then multiply.
WATCH OUT FORFull solutionReading the wrong row of a table, for example using the row of the table. Another slip is to treat and as independent of and drop the conditioning. Here is fully determined by , so , not .
- Q.65NAT · 2 marksOfficial answer: 0.062 to 0.063
Probability and Statistics › Descriptive statistics
Write each indicator's expectation as a probability, then use . Because forces , the product equals .
WATCH OUT FORFull solutionTreating and as independent and answering . They are dependent, since "both heads" is a special case of "at least one head". Another slip is computing as .