Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Mathematical FoundationsEasy
Q1. What is a scalar in linear algebra?
- A.A higher-order tensor
- B.A multi-row data matrix
- C.A single numerical value✓ Correct
- D.A multi-element vector
Explanation
A scalar is a single numerical value, as opposed to vectors, matrices, or higher-order tensors.
Report an error in this question
Mathematical FoundationsEasy
Q2. What is the mean of the numbers 2, 4, 6, 8, 10?
- A.7
- B.8
- C.5
- D.6✓ Correct
Explanation
The mean is (2+4+6+8+10)/5 = 30/5 = 6.
Report an error in this question
Mathematical FoundationsEasy
Q3. A matrix with equal rows and columns is called:
- A.Rectangular matrix
- B.Diagonal matrix
- C.Square matrix✓ Correct
- D.Identity matrix
Explanation
A square matrix has the same number of rows and columns.
Report an error in this question
Mathematical FoundationsEasy
Q4. What does probability measure?
- A.The computational speed of an algorithm
- B.The overall size of a given dataset
- C.The likelihood of an event occurring
- D.The hardware accuracy of a processor✓ Correct
Explanation
Probability measures the likelihood or chance of an event occurring, ranging from 0 to 1.
Report an error in this question
Mathematical FoundationsEasy
Q5. The derivative of a constant is:
- A.1
- B.The constant itself
- C.0✓ Correct
- D.Infinity
Explanation
The derivative of a constant is always 0 because a constant has no rate of change.
Report an error in this question
Mathematical FoundationsEasy
Q6. What is the dot product of vectors [1,2] and [3,4]?
- A.7
- B.14
- C.11✓ Correct
- D.10
Explanation
Dot product = (1*3) + (2*4) = 3 + 8 = 11.
Report an error in this question
Mathematical FoundationsEasy
Q7. What is the median of {1, 3, 5, 7, 9}?
- A.3
- B.5✓ Correct
- C.4
- D.7
Explanation
The median is the middle value in a sorted set. In {1,3,5,7,9}, the middle value is 5.
Report an error in this question
Mathematical FoundationsEasy
Q8. An identity matrix has:
- A.All entries set to the value of zero
- B.Entries filled with random real numbers
- C.1s on the diagonal and 0s elsewhere✓ Correct
- D.All entries set to the value of one
Explanation
An identity matrix has 1s on the main diagonal and 0s in all other positions.
Report an error in this question
Mathematical FoundationsEasy
Q9. The range of a probability value is:
- A.-1 to 1
- B.Negative infinity to positive infinity
- C.0 to 1✓ Correct
- D.0 to 100
Explanation
Probability values always range from 0 (impossible) to 1 (certain).
Report an error in this question
Mathematical FoundationsEasy
Q10. What is the transpose of a matrix?
- A.The matrix is numerically inverted
- B.The matrix entries are all squared
- C.The matrix is multiplied by itself
- D.Rows and columns are interchanged✓ Correct
Explanation
The transpose of a matrix is obtained by interchanging its rows and columns.
Report an error in this question
Mathematical FoundationsMedium
Q11. The gradient of a function points in the direction of:
- A.Steepest descent
- B.Random direction
- C.Steepest ascent✓ Correct
- D.Zero change
Explanation
The gradient vector points in the direction of the steepest increase of the function.
Report an error in this question
Mathematical FoundationsMedium
Q12. Bayes' theorem relates:
- A.Prior and posterior probabilities✓ Correct
- B.Only matrix decompositions
- C.Only the mean and variance
- D.Only derivative computations
Explanation
Bayes' theorem describes how to update the probability of a hypothesis given new evidence, relating prior and posterior probabilities.
Report an error in this question
Mathematical FoundationsMedium
Q13. The eigenvalue equation is Av = λv. What is λ?
- A.Eigenvector
- B.Trace
- C.Determinant
- D.Eigenvalue✓ Correct
Explanation
In the equation Av = λv, λ is the eigenvalue, a scalar that indicates how the eigenvector v is scaled by matrix A.
Report an error in this question
Mathematical FoundationsMedium
Q14. What is the chain rule used for in calculus?
- A.Computing joint probabilities
- B.Adding matrices element-wise
- C.Differentiating composite functions✓ Correct
- D.Sorting data sequentially
Explanation
The chain rule is used to compute the derivative of a composite function: d/dx[f(g(x))] = f'(g(x)) * g'(x).
Report an error in this question
Mathematical FoundationsMedium
Q15. Standard deviation measures:
- A.Spread of data around the mean✓ Correct
- B.The central tendency of values
- C.The minimum observed value
- D.The maximum observed value
Explanation
Standard deviation measures how spread out data values are from the mean of the dataset.
Report an error in this question
Mathematical FoundationsMedium
Q16. A positive definite matrix has:
- A.All negative eigenvalues
- B.Mixed sign eigenvalues
- C.All zero eigenvalues
- D.All positive eigenvalues✓ Correct
Explanation
A positive definite matrix has all positive eigenvalues, which is important in optimization (guarantees a minimum).
Report an error in this question
Mathematical FoundationsMedium
Q17. In probability, two events are independent if:
- A.P(A|B) = P(B)
- B.P(A∩B) = P(A) * P(B)✓ Correct
- C.P(A∩B) = P(A) + P(B)
- D.P(A∩B) = 0
Explanation
Two events are independent if the probability of both occurring equals the product of their individual probabilities.
Report an error in this question
Mathematical FoundationsMedium
Q18. The determinant of a 2x2 matrix [[a,b],[c,d]] is:
- A.ab + cd
- B.ab - cd
- C.ad - bc✓ Correct
- D.ad + bc
Explanation
The determinant of a 2x2 matrix is calculated as ad - bc.
Report an error in this question
Mathematical FoundationsMedium
Q19. A convex function has the property that:
- A.It is always an increasing function
- B.It has no minimum point at all
- C.Any local minimum is also a global minimum✓ Correct
- D.It has many distinct local minima
Explanation
A key property of convex functions is that any local minimum is also a global minimum, which simplifies optimization.
Report an error in this question
Mathematical FoundationsMedium
Q20. The covariance between two identical variables equals:
- A.A value of exactly zero
- B.The variance of that variable✓ Correct
- C.A value of negative one
- D.A value of exactly one
Explanation
Cov(X,X) = Var(X). The covariance of a variable with itself is its variance.
Report an error in this question
Mathematical FoundationsHard
Q21. The Hessian matrix contains:
- A.Eigenvalues of the matrix only
- B.The determinant values only
- C.Second-order partial derivatives✓ Correct
- D.First-order derivatives only
Explanation
The Hessian matrix contains all second-order partial derivatives of a scalar-valued function, used to analyze curvature.
Report an error in this question
Mathematical FoundationsHard
Q22. The Kullback-Leibler divergence measures:
- A.The spread or variance of a single distribution
- B.The central tendency or mean of a distribution
- C.How one probability distribution differs from another✓ Correct
- D.The linear correlation between two variables
Explanation
KL divergence measures the difference between two probability distributions, commonly used in ML for comparing distributions.
Report an error in this question
Mathematical FoundationsHard
Q23. A Jacobian matrix represents:
- A.First-order partial derivatives of a vector-valued function✓ Correct
- B.Only the output values of a single scalar function
- C.Only the second-order derivatives of a scalar function
- D.Only the eigenvalues of a square transformation matrix
Explanation
The Jacobian matrix contains all first-order partial derivatives of a vector-valued function with respect to another vector.
Report an error in this question
Mathematical FoundationsHard
Q24. In the context of ML, why is the log-likelihood used instead of likelihood?
- A.It requires significantly less memory during training
- B.It converts products to sums, making computation easier✓ Correct
- C.It produces more statistically accurate final estimates
- D.It runs faster on modern parallel computing hardware
Explanation
Log-likelihood converts the product of probabilities into a sum, making numerical computation more stable and differentiation easier.
Report an error in this question
Mathematical FoundationsHard
Q25. The singular value decomposition (SVD) decomposes a matrix into:
- A.U, Sigma, and V-transpose matrices✓ Correct
- B.Only the eigenvector components
- C.Exactly two factor matrices
- D.Only the eigenvalue components
Explanation
SVD decomposes a matrix A into UΣV^T where U and V are orthogonal matrices and Σ is a diagonal matrix of singular values.
Report an error in this question
Mathematical FoundationsHard
Q26. A saddle point in optimization is where:
- A.The objective function reaches its overall global minimum
- B.The gradient of the function is completely undefined
- C.The objective function reaches its overall global maximum
- D.The gradient is zero but it is neither a minimum nor maximum✓ Correct
Explanation
At a saddle point, the gradient is zero but the point is a minimum along some directions and a maximum along others.
Report an error in this question
Mathematical FoundationsHard
Q27. The moment generating function uniquely determines:
- A.Only the median statistic
- B.Only the expected mean value
- C.The probability distribution✓ Correct
- D.Only the variance estimate
Explanation
If it exists in a neighborhood of zero, the moment generating function uniquely determines the probability distribution.
Report an error in this question
Mathematical FoundationsHard
Q28. In matrix calculus, the gradient of x^T A x with respect to x is:
- A.2x
- B.Ax
- C.A^T
- D.(A + A^T)x✓ Correct
Explanation
The gradient of x^T A x with respect to x is (A + A^T)x. If A is symmetric, this simplifies to 2Ax.
Report an error in this question
Mathematical FoundationsHard
Q29. The condition number of a matrix indicates:
- A.The trace or diagonal sum of the matrix
- B.Sensitivity of the solution to small changes in input✓ Correct
- C.The total number of columns in the matrix
- D.The total number of rows in the matrix
Explanation
The condition number measures how sensitive a matrix computation is to perturbations in the input, important for numerical stability.
Report an error in this question
Mathematical FoundationsHard
Q30. Jensen's inequality states that for a convex function f:
- A.f(E[X]) ≤ E[f(X)]✓ Correct
- B.f(E[X]) ≥ E[f(X)]
- C.f(E[X]) = 0
- D.f(E[X]) = E[f(X)]
Explanation
Jensen's inequality states that for a convex function, the function of the expected value is less than or equal to the expected value of the function.
Report an error in this question