Mbzuai Entry Exam Sample Questions -

Let ( X \sim \mathcalN(0,1) ). Compute ( \mathbbE[e^X] ). (Hint: MGF of normal)

def func(x, lst=[]): lst.append(x) return lst print(func(1)) print(func(2)) Write a Python function normalize(X) that takes a 2D numpy array X (samples × features) and returns a zero-mean, unit-variance normalized version (feature-wise). Do not use sklearn .

Given a binary classifier with confusion matrix: TP=90, FN=10, FP=30, TN=70 Compute Precision , Recall , F1-score , and Accuracy . mbzuai entry exam sample questions

What is the bias-variance decomposition of expected test error? Write the formula and briefly explain each term. Section 4: Machine Learning Basics (15%) Question 10: Why does L2 regularization produce smaller but non-zero weights, while L1 regularization can produce exact zeros?

If ( A ) and ( B ) are square invertible matrices, then ( (A + B)^-1 = A^-1 + B^-1 ). Explain briefly. Section 2: Calculus & Optimization (25%) Question 4: Find the gradient ( \nabla f(x,y) ) of ( f(x,y) = \ln(1 + e^xy) ). Then compute the directional derivative at ( (1,0) ) in the direction of ( (1,1) ). Let ( X \sim \mathcalN(0,1) )

Given vectors ( u = (1, 2, -1) ), ( v = (0, 1, 3) ). Compute the projection of ( u ) onto ( v ).

The exam generally tests: > Python Programming > Basic ML Theory . MBZUAI Entry Exam Sample Questions Section 1: Linear Algebra (30%) Question 1: Let ( A ) be a 3x3 matrix with eigenvalues ( 2, -1, 3 ). What is the determinant of ( A^2 - 2A )? Do not use sklearn

For ( f(x) = \frac12 |Ax - b|^2 ), derive the closed-form solution for ( x ) that minimizes ( f ). Section 3: Probability & Statistics (20%) Question 7: You have two dice: one fair, one loaded (shows 6 with probability ( 1/3 ), others each ( 2/15 )). You pick a die at random (50% chance each), roll it once, and get a 6. What is the probability it was the loaded die?