Docsity

multivariate calculus, Esercizi di Finanza

Toggle sidebar
bg1
Quantitative Methods for Finance Practice Problem Set 2
Quantitative Methods for Finance
Practice Problem Set 2 – Multivariate Calculus
Unofficial practice material based on the topics and difficulty of the supplied Problem Set 2.
Instructions. Solve the analytical questions by hand. For the Python questions, write and run the
requested code using NumPy, Matplotlib and SciPy. Unless explicitly stated otherwise, justify the
classification of stationary points. Solutions are intentionally omitted.
1. Find the critical point (x∗, y∗)of the function
f(x, y) = x2+ 2(y+ 1)2−4x+ 8(y+ 1).
Determine whether it is a local minimum, a local maximum, or a saddle point.
2. Find the first-order Taylor approximation of
f(x, y) = e2x+y
at (x0, y0) = (0,0).
3. The first-order Taylor approximation of f(x, y) = e−x2/2+3yat (0,0) is:
(a) f(x, y)≈1−x+ 3y
(b) f(x, y)≈1+3y
(c) f(x, y)≈1
(d) The approximation does not exist.
4. Find the second-order Taylor approximation for each function at the indicated point:
(a) f(x, y) = e−x2−y2/2at (0,0).
(b) g(x, y) = ln(x+ 2y)at (1,1).
(c) h(x, y) = √x+ 2yat (2,1).
5. Let f(x, y)=2x2−6xy + 5y2+ 3x. The Hessian matrix Hf(x, y)is:
(a) 2−6
−6 5 !
(b) 4−3
−3 10 !
(c) 4−6
−6 10 !
(d) None of the above.
6. Suppose that (x∗, y∗)is a critical point of a twice differentiable function and detHf(x∗, y ∗)<0.
Which statement is correct?
(a) It is a local minimum.
(b) It is a local maximum.
(c) It is a saddle point.
(d) No conclusion can be drawn.
7. Let x∗be a critical point of a twice differentiable multivariate function. If all eigenvalues of Hf(x∗)
are strictly negative, then:
(a) x∗is a strict local minimum.
(b) x∗is a strict local maximum.
(c) x∗is a saddle point.
(d) There is not enough information.
1
pf3
pf4

Anteprima parziale del testo

Scarica multivariate calculus e più Esercizi in PDF di Finanza solo su Docsity!

Quantitative Methods for Finance

Practice Problem Set 2 – Multivariate Calculus

Unofficial practice material based on the topics and difficulty of the supplied Problem Set 2.

Instructions. Solve the analytical questions by hand. For the Python questions, write and run the requested code using NumPy, Matplotlib and SciPy. Unless explicitly stated otherwise, justify the classification of stationary points. Solutions are intentionally omitted.

1. Find the critical point (x∗, y∗) of the function

f (x, y) = x^2 + 2(y + 1)^2 − 4 x + 8(y + 1). Determine whether it is a local minimum, a local maximum, or a saddle point.

2. Find the first-order Taylor approximation of

f (x, y) = e^2 x + y at (x 0 , y 0 ) = (0, 0).

3. The first-order Taylor approximation of f (x, y) = e− x^2 / 2+3 y^ at (0, 0) is: (a) f (x, y) ≈ 1 − x + 3y (b) f (x, y) ≈ 1 + 3y (c) f (x, y) ≈ 1 (d) The approximation does not exist. 4. Find the second-order Taylor approximation for each function at the indicated point: (a) f (x, y) = e− x^2 − y^2 /^2 at (0, 0). (b) g(x, y) = ln(x + 2y) at (1, 1). (c) h(x, y) =

x + 2y at (2, 1).

5. Let f (x, y) = 2x^2 − 6 xy + 5y^2 + 3x. The Hessian matrix H f (x, y) is:

(a)

( 2 − 6 − 6 5

)

(b)

( 4 − 3 − 3 10

)

(c)

( 4 − 6 − 6 10

)

(d) None of the above.

6. Suppose that (x∗, y∗) is a critical point of a twice differentiable function and det H f (x∗, y∗) < 0. Which statement is correct? (a) It is a local minimum. (b) It is a local maximum. (c) It is a saddle point. (d) No conclusion can be drawn. 7. Let x ∗^ be a critical point of a twice differentiable multivariate function. If all eigenvalues of H f ( x ∗) are strictly negative , then: (a) x ∗^ is a strict local minimum. (b) x ∗^ is a strict local maximum. (c) x ∗^ is a saddle point. (d) There is not enough information.

8. (Python – surfaces and level curves) Using Matplotlib, plot the 3D surface and the corre- sponding contour plot for each function below. Use a mesh grid and label the axes. f 1 (x, y) = 4x − 2 y, f 4 (x, y) = 2x^2 + 2xy + 3y^2 , f 2 (x, y) = 2x + y + 3, f 5 (x, y) = (x − 1)^2 + (y + 2)^2 + 2, f 3 (x, y) = 2x^2 + y^2 , f 6 (x, y) = x^3 − 3 x + 2y^2. For each plot, indicate whether the function is affine, quadratic, or cubic. 9. (Python – quadratic forms) For each of the following symmetric matrices, use NumPy to compute the determinant, eigenvalues and eigenvectors. Classify the corresponding quadratic form q( x ) = x T^ Q x as positive definite, negative definite, indefinite or semidefinite. Plot the 3D surface and its contour curves. Explain whether it represents an upward/downward paraboloid, a saddle or a degenerate surface.

A =

( 4 0 0 − 2

) , B =

( 2 0 0 5

) , C =

( − 2 0 0 − 4

) ,

D =

( 2 1 1 2

) , E =

( 0 3 3 0

) , F =

( 1 2 2 4

) ,

G =

( − 2 1 1 − 2

) .

10. (Python – spectral decomposition) Consider the quadratic forms

q 1 (x, y) = 4x^2 + 4xy + y^2 , q 4 (x, y) = x^2 − 4 xy + y^2 , q 2 (x, y) = 2x^2 + 2xy + 3y^2 , q 5 (x, y) = −x^2 + 4xy − 4 y^2 , q 3 (x, y) = − 3 x^2 − 2 xy − 2 y^2. For each quadratic form: (a) Define the associated symmetric matrix Q. (b) Compute the eigenvalues and eigenvectors using numpy.linalg.eigh. (c) Build an orthogonal matrix V using the normalized eigenvectors. (d) Verify V T^ V = V V T^ = I, and hence V −^1 = V T^. (e) Verify V T^ QV = D, where D is diagonal. (f) Classify the quadratic form and plot its 3D surface.

14. (Analytical constrained optimization) Solve the following optimization problems. Use either substitution or Lagrange multipliers. Check whether the extrema are local or global wherever possible. (a) min x,y x^2 + y^2 subject to xy = 8. (b) min x,y 2 x^2 + y^2 + xy subject to x + y = 6. (c) max x,y (− 3 x^2 − 2 y^2 + 2xy + 4x − 2 y) subject to x − 2 y = 3. 15. (Additional optimization problems) - For unconstrained problems: compute the critical points analytically, classify them using the Hessian (when possible) and check whether a global optimum exists. - For constrained problems: find candidates using substitution or a Lagrangian, then establish their optimality where possible. - For all problems: implement a numerical solution in Python using scipy.optimize.minimize. To maximize f , minimize −f. Compare numerical outputs with your analytical results and try different initial guesses when multiple stationary points are possible. (a) Unconstrained problems i. min x,y x^2 + 2y^2 − 6 x + 8y + 4. ii. max x,y − 2 x^2 − y^2 + 2xy + 8x + 4y. iii. Study the stationary points of f (x, y) = x^3 − 3 x + y^2 − 2 y and determine if a global minimum exists. iv. min x,y x^4 − 4 x^2 + (y − 1)^2.

(b) Constrained problems i. min x,y 3 x^2 + 2y^2 + 2xy subject to x + y = 3. ii. min x,y (x − 2)^2 + (y + 1)^2 subject to x − y = 1. iii. max x,y 2 x + 3y subject to x^2 + y^2 = 13. (Nonlinear constraint) iv. max x,y − 2 x^2 − 2 y^2 + 6x + 8y subject to 2 x + y = 4. v. min x,y (x + 1)^2 + (y − 3)^2 subject to x + 2y = 1. vi. min x,y x^2 + 3y^2 − 2 x + 4y subject to 2 x − y = 2.

End of practice set. This is an original set of exercises for self-study, not an official university assignment.