IAE Academy

PAPERS · GATE DA

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

Official answers to every question of GATE DA 2024
QuestionTypeMarksAnswer
Q.1MCQ1D
Q.2MCQ1A
Q.3MCQ1B
Q.4MCQ1B
Q.5MCQ1B
Q.6MCQ2D
Q.7MCQ2A
Q.8MCQ2B
Q.9MCQ2A
Q.10MCQ2A
Q.11MCQ1A
Q.12MCQ1A
Q.13MCQ1B
Q.14MCQ1A
Q.15MCQ1A
Q.16MCQ1A
Q.17MCQ1D
Q.18MCQ1C
Q.19MCQ1D
Q.20MCQ1B
Q.21MCQ1B
Q.22MCQ1A
Q.23MCQ1D
Q.24MCQ1C
Q.25MCQ1C
Q.26MCQ1C
Q.27MCQ1B
Q.28MSQ1A, B, C
Q.29MSQ1B, C, D
Q.30NAT10
Q.31NAT13
Q.32NAT117
Q.33NAT10.24
Q.34NAT142
Q.35NAT10
Q.36MCQ2C
Q.37MCQ2A
Q.38MCQ2D
Q.39MCQ2C
Q.40MCQ2A
Q.41MCQ2C
Q.42MCQ2A
Q.43MCQ2A
Q.44MCQ2C
Q.45MCQ2B
Q.46MSQ2A, B, D
Q.47MSQ2A, C
Q.48MSQ2B, D
Q.49MSQ2B, C, D
Q.50MSQ2A, B
Q.51MSQ2B, D
Q.52MSQ2A, B, C
Q.53MSQ2A, D
Q.54MSQ2A, C
Q.55MSQ2A, B
Q.56NAT20.125
Q.57NAT20.2
Q.58NAT20.25
Q.59NAT2Marks to all
Q.60NAT20.5
Q.61NAT255
Q.62NAT20.12 to 0.13
Q.63NAT25
Q.64NAT20.125
Q.65NAT20.062 to 0.063

General Aptitude Q.1 to Q.10

  1. Q.1MCQ · 1 markOfficial answer: D
  2. Q.2MCQ · 1 markOfficial answer: A
  3. Q.3MCQ · 1 markOfficial answer: B
  4. Q.4MCQ · 1 markOfficial answer: B
  5. Q.5MCQ · 1 markOfficial answer: B
  6. Q.6MCQ · 2 marksOfficial answer: D
  7. Q.7MCQ · 2 marksOfficial answer: A
  8. Q.8MCQ · 2 marksOfficial answer: B
  9. Q.9MCQ · 2 marksOfficial answer: A
  10. Q.10MCQ · 2 marksOfficial answer: A

Data Science and Artificial Intelligence Q.11 to Q.65

  1. 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 FOR

    Confusing 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.

    Full solution
  2. 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 FOR

    Multiplying 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.

    Full solution
  3. Q.13MCQ · 1 markOfficial answer: B

    Linear Algebra › Eigenvalues

    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 FOR

    Computing 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 .

    Full solution
  4. 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 FOR

    Choosing '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.

    The question and its official answer
  5. 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 FOR

    Choosing "global minimum" because the second derivative is positive. is a local condition. Global minimality needs convexity everywhere, i.e. on all of .

    Full solution
  6. 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 FOR

    Swapping 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.

    Full solution
  7. 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 FOR

    Assuming 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.

    Full solution
  8. 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 FOR

    Swapping 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.

    Full solution
  9. Q.19MCQ · 1 markOfficial answer: D

    Machine Learning › Clustering

    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 FOR

    Picking 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.

    Full solution
  10. 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 FOR

    Counting 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.

    Full solution
  11. 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 FOR

    Picking (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 .

    Full solution
  12. 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 FOR

    Swapping the matrices and writing , or multiplying in the wrong order (). The inverse must multiply from the left, so that it comes from .

    Full solution
  13. 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 FOR

    Choosing 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.

    Full solution
  14. 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 FOR

    Assuming 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.

    Full solution
  15. 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 FOR

    Reading "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.

    Full solution
  16. 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 FOR

    Using 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.

    Full solution
  17. 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 FOR

    Using 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.

    Full solution
  18. 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 FOR

    Remembering 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.

    Full solution
  19. 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 FOR

    Writing 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.

    Full solution
  20. 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 FOR

    Counting 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.

    Full solution
  21. 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 FOR

    Counting the three Jaipur rows without checking RaidPoints, or treating RaidPoints > 200 as >= 200 and then wrongly including Sunil. Sunil belongs to Patna, so he is excluded either way.

    Full solution
  22. Q.32NAT · 1 markOfficial answer: 17

    Data Structures and Algorithms › Linear structures

    Trace the deque operation by operation. a is overwritten at every assignment, so only the last removal (removeLast()) decides the final value.

    WATCH OUT FOR

    Reporting the value from the first or second removal (10 or 32), or treating insertFirst as an append at the back. Another slip is to forget that a is reassigned, so only the last removal counts.

    Full solution
  23. 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 FOR

    Solving 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.

    Full solution
  24. 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 FOR

    Dividing 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.

    Full solution
  25. Q.35NAT · 1 markOfficial answer: 0

    Linear Algebra › Eigenvalues

    Factor . If , the whole product has determinant , so the second factor never has to be computed.

    WATCH OUT FOR

    Computing 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 .

    Full solution
  26. 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 FOR

    Answering 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.

    Full solution
  27. 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 FOR

    Imposing 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 .

    Full solution
  28. 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 FOR

    Counting 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.

    Full solution
  29. Q.39MCQ · 2 marksOfficial answer: C

    Data Structures and Algorithms › Python

    S[i] is the length of the non-decreasing run ending at position i. The comparison is X[i-1] <= X[i], and S[i] is reset to 1 whenever it fails. The value added is S[i-1], which is the previous position's already-computed run length.

    WATCH OUT FOR

    Using S[i-1] + 1 unconditionally, or counting a run only when the sequence strictly increases, gives the wrong array. Another slip is forgetting that S[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).

    Full solution
  30. 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 FOR

    Choosing (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.

    Full solution
  31. 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 FOR

    Reading 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.

    Full solution
  32. Q.42MCQ · 2 marksOfficial answer: A

    Machine Learning › Clustering

    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 FOR

    Merging with as a pair, because looks small. That ignores that and already merged at distance 1, so joins the cluster rather than alone.

    Full solution
  33. 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 FOR

    Assuming 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.

    Full solution
  34. 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 FOR

    Applying 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.

    Full solution
  35. 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 FOR

    Assuming 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 .

    Full solution
  36. 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 FOR

    Stopping 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 .

    Full solution
  37. 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 FOR

    Treating (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.

    Full solution
  38. 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 FOR

    Thinking 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.

    Full solution
  39. 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 FOR

    Confusing 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.

    Full solution
  40. 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 FOR

    Mixing 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.

    Full solution
  41. 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 FOR

    Checking 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.

    Full solution
  42. 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 FOR

    Counting 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.

    Full solution
  43. 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 FOR

    Judging 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.

    Full solution
  44. 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 FOR

    Treating 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).

    Full solution
  45. 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.4 needs a B tree on that attribute.

    WATCH OUT FOR

    Assuming 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.

    Full solution
  46. 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 FOR

    Treating 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 .

    Full solution
  47. 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 FOR

    Using 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.

    Full solution
  48. 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 FOR

    Using as if it were . That gives and . Another slip is dividing by or by instead of .

    Full solution
  49. 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 FOR

    One 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 .

    Full solution
  50. 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 FOR

    Forgetting 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 .

    Full solution
  51. Q.61NAT · 2 marksOfficial answer: 55

    Linear Algebra › LU & SVD

    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 FOR

    Taking 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).

    Full solution
  52. 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 FOR

    Using 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.

    Full solution
  53. 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 FOR

    Counting 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.

    Full solution
  54. 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 FOR

    Reading 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 .

    Full solution
  55. 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 FOR

    Treating 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 .

    Full solution