You are on page 1of 2

Course: Machine Learning - Foundations

Week 2 - Test Questions

1. (2 points)
Answer: D
Option A and B are discontinuous at x=1.Option C is discontinuous at x=2. So correct
option is D

2. (1 point)
Answer: D
A, B, C are equivalent statements.

3. (2 points)
Answer: B, D
Right hand limit and left hand limit at x=3 are different so function is not continuous
at x=3

4. (1 point)
Answer: 1.011
Linear approximation of ex is 1+x. Here x=0.011

5. (1 point)
Answer: 1.975 √
Linear
√ approximation of x is,
∗ √ 1
x − (x − x ) 2 x .
√ √
Here x= 4 and x∗ = 3.9 3.9 = 4 − (4 − 3.9) 2√1 4 =1.975

6. (1 point)
Answer: Two vectors are perpendicular if their inner product is zero

7. (2 points)
Answer: B
T
f (x) ≈ f (v) + ∇f  − v)
 (v) (x
x−2
= 16 + [12 12]
y−2
= 12x + 12y − 32

8. (1 point)
Answer: A
[ ∂f , ∂f ]
∂x ∂y
= [3x2 y 2 2x3 y]
= [12 4]
Course: Machine Learning - Foundations Page 2 of 2

9. (1 point)
Answer: C
[ ∂f , ∂f , ∂f ]
∂x ∂y ∂z
= [3x2 2y 3z 2 ]
= [0 2 3]

10. (1 point)
Answer: As per Cauchy Shwarz inequality,
− k a kk b k≤ a.b ≤k a kk b

11. (2 points)
Answer: 0.816
∇f = [3x2 2y 3z 2 ]T
at (1,1,1)
∇f = [3 2 3]T√
k i − 2j + k k= 6
Directional derivative= 3×1−2×2+3×1

6

12. (2 points)
Answer: A
∇f = [2 3y 2 4z]T
at (1,0,1)
∇f = [2 0 4]T√
k [2 0 4]T k= 20
direction of steepest ascent=∇f / k f k

13. (2 points)
Answer: 0.577
∇f = [1 1 1]T
at (-1,1,0)
∇f = [1 1 1]√T
k i − j + k k= 3
Directional derivative= 1×1−1×1+1×1

3

14. (1 point)
Answer: Line through u ∈ Rd along v ∈ Rd is given by
x = u + αv
where, α ∈ R and x ∈ Rd

You might also like