AnswerKey MathEcon16 FinalExam
AnswerKey MathEcon16 FinalExam
Date: 16.01.2017
Instructions:
• Exam paper is provided by the proctors. Fill in the required information on every
sheet. No own paper is allowed. You must turn in all sheets at the end of the exam,
including any scratch paper. All exam questions must be returned.
• The exam includes 4 questions. Tell the proctor immediately if something is missing.
Start your answers to every question at the top of a new page.
• The duration of the exam is 180 minutes. If you arrive late for the exam, you must
finish with all other students. No extension can be granted.
• This is a closed-book exam. You are allowed to use a black or blue ink pen, a
non-programmable calculator, and a dictionary only. The pen must not write
red or green. No pencils are allowed. The dictionary may not have any markings.
You are allowed no other material, including cell phones, computers, class material,
books, cheat sheets.
• Show all derivations and computations. Numerical results without corresponding ana-
lytical derivations receive no points except if stated otherwise. The solution approach
has to be clear to the grader. Write legibly.
1
Question I (25 points)
1. Are the following statements true or false? Just state TRUE or FALSE.
(a) The eigenvalues of A are the same as the eigenvalues of kA for any positive
constant k.
(b) If a function f (x) is strictly concave, then its Hessian H(x) is negative definite.
(c) If two events A and B such that P (A) > 0 and P (B) > 0 are disjoint, then they
are also independent.
(d) If a matrix A has at least one eigenvalue equal to 0, then det(A) = 0.
(e) If a function f (x) is continuous at a point x = x0 , then it is also differentiable at
x = x0 .
(f) If two random variables X and Y have the same moments, i.e., E(X n ) = E(Y n )
∀ n ∈ N, then they are equal in distribution.
(g) The Weierstrass Theorem provides sufficient conditions for the existence of solu-
tions to Kuhn-Tucker problems.
(h) If two random variables X and Y are independent, then the expectation of their
product E(XY ) is equal to zero.
(a)
x1
x2 + 1
lim
x→∞ x+2
(b)
Z e3
√
1 + log x
dx
1 x
(c) ZZ
2
e−y dxdy
D
where
D = (x, y) ∈ R2 : 0 ≤ x ≤ 1, x ≤ y ≤ 1 .
∀n ≥ 0 : (1 + a)n ≥ 1 + na.
2
Answers to Question I
1. Answers: (1 point for each)
(a) False. To see this, compare det(A − λI) and det(kA − λI) and notice that in
general the solutions are not the same.
(b) False. The reverse implication holds.
(c) False. If two sets are disjoint, then P(A ∩ B) = 0. If two sets are independent
(and each has positive probability), then P(A ∩ B) = P (A)P (B).
(d) True. For any square matrix with K rows/ columns we have: det(A) = ΠK
i=1 λi .
(e) False. In general the reverse is true. See Proposition 3.28 in the lecture notes.
(f) False. The reverse is true in general. See Proposition 4.8 in the lecture notes.
(g) True. See Theorem 3.16 in the lecture notes.
(h) False. See Definition 4.21 and Proposition 4.21 in the lecture notes.
(a) We cannot directly apply de l’Hôpital’s theorem because the expression is ”equal”
to ∞0 . Thus we transform the problem:
2 1 2 1 !! 2
x +1 x x +1 x x +1
lim = lim exp ln = exp lim ln /x .
x→∞ x+2 x→∞ x+2 x→∞ x+2
(b)
e3
Z p Z 3 Z 4
1 + log(x) log(x) = y 1 y+1=k 1
dx = = (1+y) dy = 2 = k 2 dk
1 x dx = xdy 0 dy = dk 1
4
2 3 2 2 14
= k2 = 7− = .
3 1 3 3 3
(c) ZZ Z x=1 Z y=1 Z y=1 Z x=y
−y 2 −y 2 −y 2
e dydx = e dy dx = e dx dy
D x=0 y=x y=0 x=0
1 y 1 1 1
e−1
Z Z Z Z
−y 2 −y 2 −y 2 1 2
= e dxdy = e {x}y0 dy = ye dy = − e−y = .
0 0 0 0 2 0 2e
3
3. For n = 0 the inequality clearly holds, as we have:
(1 + a)0 = 1 = 1 + 0 · a.
Now assume that the inequality holds for n = k. Then for n = k + 1 we have:
where the first inequality comes from the induction hypothesis for n = k, while the
second one holds as ka2 ≥ 0. Thus the inequality also holds for all n ≥ 1.
(5 points)
4
Question II (25 points)
You are a trader at V CB and you have a budget of 1 billion dollars at your disposal that
you can invest in two stocks. You do not have to invest the whole amount, as the rest can
be put into a riskless bond that has expected return of zero. Let x1 and, respectively, x2 be
the dollar amount (in billions) invested in each stock. Based on historical data you conclude
that the expected return and the variance of your investment are functions of the allocation.
They are given by the following expressions:
1. What is the optimal asset allocation without risk limits but with short-sale constraints?
2. Write down the optimal asset allocation problem with risk limits. Explain why it has
a solution.
4. Write down the Lagrangian and the Kuhn-Tucker conditions. Are the Kuhn-Tucker
conditions sufficient for a global maximum?
5. Find and discuss the solutions to the optimal asset allocation problem with risk limits.
6. How much does the expected value of your investment change as you vary the risk
constraint? Explain.
5
Answers to Question II
1. Asset 2 has the higher expected return, so you invest all your money in asset 2.
(3 points)
2. The optimization problem can be stated in the standard form as follows:
max f (x1 , x2 ) = 10x1 + 12x2
x1 , x2
s.t. g1 (x1 , x2 ) = 1 − x1 − x2 ≥ 0
g2 (x1 , x2 ) = 625 − 5000x21 + 60001 x2 − 8000x22 ≥ 0
The objective function is continuous and the constraint set D is closed (inequalities).
In order to establish that the constraint set is compact, we have to show that it is
also bounded. This is straightforward, given that from g1 (x1 , x2 ) we can immediately
see that x1 ≤ 1 and x2 ≤ 1. Thus, by Weierstrass’ theorem the objective function
possesses a maximum on D.
(3 points)
3. The constraint set D contains two constraint functions g1 (x1 , x2 ) and g2 (x1 , x2 ). We
have to consider two different cases: either only the constraint {g1 } is binding, or two
constraints {g1 , g2 } are binding. We have to check CQ for both cases. The gradients
are:
Dg1 (x1 , x2 ) = (−1 − 1) and Dg2 (x1 , x2 ) = (−10000x1 + 6000x2 6000x1 − 16000x2 ).
Therefore:
{g1 } : rank(Dg1 (x1 , x2 )) = 1 ∀ x1 , x2
−1 −1
{g1 , g2 } : rank = 2,
−10000x1 + 6000x2 6000x1 − 16000x2
with rank becoming less than 2 if and only if 16x1 = 22x2 . However, this point does
not satisfy the binding constraints: it implies that x1 = 11 x and plugging it into g1
8 2
gives x̃2 = 1/(1 + 11 8
). This value violates g2 (as 8000x̃ 2
2 > 625 ⇒ g2 < 0).
(3 points)
4. The Lagrangian is given by:
L(x1 , x2 , λ) = 0.1x1 + 0.12x2 − λ1 (1 − x1 − x2 ) − λ2 (625 − 5000x21 + 6000x1 x2 − 8000x22 ).
Consequently, the resulting KT conditions are:
∂L
= 10 + 10000x1 λ2 − 6000x2 λ2 + λ1 = 0 (1)
∂x1
∂L
= 12 + 16000x2 λ2 − 6000x1 λ2 + λ1 = 0 (2)
∂x2
g1 (x1 , x2 ) = 1 − x1 − x2 ≥ 0 (3)
g2 (x1 , x2 ) = 625 − 5000x21 + 6000x1 x2 − 8000x22 ≥ 0 (4)
λ1 (1 − x1 − x2 ) = 0 (5)
λ2 (625 − 5000x1 + 6000x1 x2 − 8000x22 )
2
= 0 (6)
λ1 ≥ 0 (7)
λ2 ≥ 0. (8)
6
The KT conditions are sufficient for global optimum because the objective function as
well as the constrains are concave (the objective function is linear, thus both convex
and concave and the concavity of g2 is easily established by looking at the Hessian).
(4+2 points)
(a) both the constraints are binding (λ1 > 0, λ2 > 0),
(b) only the second constraint is binding (λ1 = 0),
(c) only the first constraint is binding (λ2 = 0),
(d) both the constraints are not binding (λ1 = 0, λ2 = 0).
We have:
(a) When both constraints are binding, we have to solve the following system of
equations:
(
g1 (x1 , x2 ) = 1 − x1 − x2 = 0
g2 (x1 , x2 ) = 625 − 5000x21 + 6000x1 x2 − 8000x22 = 0
7
Therefore the global optimum of the problem is given by (x∗1 , x∗2 ) ≈ (0.3481, 0.2699).
(6+1 points)
6. The Lagrange multiplier is the marginal effect on the value function, when the con-
strained is ”relaxed” marginally. In other words, λ1 is indicative of ”how much does
the expected value of the portfolio change as the budget constraint changes” while
λ2 helps answer the question of ”how much does the expected value of the portfolio
change as the risk constraint is altered”. They consitute therefore the shadow prices
of relaxing the constraints.
(3 points)
8
Question III (25 points)
The Swiss alpine town of Zernez is inhabited by 1,200 people. Each citizen makes the weekly
grocery shopping in the only grocery store in town, run by Mr. and Mrs. Zipf. One day a
new, cheaper chain store Micros opens its doors. The Zipf family does not expect that
everybody immediately switches to doing their shopping in the new cheaper store, but they
anticipate that 20% of those shopping at Zipf ’s store each week switch to Micros in the
following week. At the same time, some customers who switched miss the personal service
(and gossip) and they switch back. The Zipfs expect that 10% of those shopping at Micros
each week go back to Zipf ’s in the following week. The state of the town, as far as grocery
shopping is concerned, can be represented as follows:
z(t)
x(t) = ,
m(t)
where z(t) and m(t) are the numbers of citizens shopping at Zipf ’s store and, respectively,
at Micros in week t after Micros opens. Assume that z(0) = 1, 200 and m(0) = 0.
3. Using only A and x(t), what is the expression for x(t + n), that is, x given n periods
in the future?
6. What fractions of clients do the Zipfs lose in the long run (that is, when t → ∞)?
7. The Zipfs expect that they must close down their store when they have less than 500
customers a week. When does this happen?
9
Answers to Question III
1. Note that the state of the town can be described by the following system of equations:
2. A is not symmetric: A 6= AT .
A is not orthogonal: AAT 6= I.
A is not idempotent: AA 6= A.
(3 points)
4. First we compute the eigenvalues using the characteristic polynomial: det(A − λI) = 0.
0.8 0.1
det = 0 ⇐⇒ (0.8 − λ)(0.9 − λ) − 0.02 = 0 ⇒ λ1 = 1, λ2 = 0.7.
0.2 0.9
We know that x(t) = At x(0) = CΛt C −1 (1200, 0)T . Further computations yield:
z(t) 1 1 + 2(0.7)t 1 − (0.7)t 1200 1 + 2(0.7)t
= = 400 .
m(t) 3 2 − 2(0.7)t 2 + (0.7)t 0 2 − 2(0.7)t
(5 points)
10
6. When t → ∞, then we have (z(∞), m(∞)) = (400, 800). Therefore the Zipfs lose
(1200 − 400)/1200 = 2/3 of their clients.
(3 points)
log(0.125) −2.079
400(1+2(0.7)t ) < 500 ⇐⇒ (0.7)t < 0.125 ⇐⇒ t < ≈ ≈ 5.8 ⇒ t < 6.
log(0.7) −0.357
(3 points)
11
Question IV (25 points)
Let X1 , . . . , Xn be independent and identically distributed random variables with density
2x
fXi (x) = , 0 ≤ x ≤ θ.
θ2
1. Find E(Xi ) and V ar(Xi ).
θ̂W = aW
θ̂Y = bY
7. Which of the estimators θ̂W and θ̂Y is more precise? What about their relative effi-
ciency?
Hint: Look at what happens to the ratio of the variances when n → ∞.
12
Answers to Question IV
1. θ
Z ∞ Z θ
2 2 2 3 2
E(Xi ) = xfXi (x)dx = 2
x dx = 2
x = θ.
−∞ 0 θ 3θ 0 3
Z ∞ Z θ θ
2 3 2 4 1
E(Xi2 ) = x2 fXi (x)dx = 2
x dx = 2
x = θ2 .
−∞ 0 θ 4θ 0 2
2
1 2 θ2
V ar(Xi ) = E(Xi2 ) − [E(Xi )]2 = θ2 − θ = .
2 3 18
(5 points)
2. By linearity of the expectations operator, we know that for n independent and identi-
cally distributed random variables having Xi ∼ (µ, σ 2 ), the sample mean has distribu-
2
tion X ∼ (µ, σn ). Thus:
2 θ2
W ∼ θ, .
3 18n
(5 points)
(Note that ignoring the indicator functions also gives full mark.)
13
5. The pdf of Y is given by:
d y 2n 2ny 2n−1
d
fY (y) = FY y = I (0,θ) (y) + I(θ,∞) (y) = I(0,θ) (y).
dy dy θ2n θ2n
2n 2 n
E(Y 2 ) = θ ⇒ V ar(Y ) = 2
θ2 .
2n + 2 (n + 1)(2n + 1)
(4 points)
(2n + 1)2 2n θ2
V ar(θ̂Y ) = b2 V ar(Y ) = θ 2
= .
4n2 (2n + 2)(2n + 1)2 4n(n + 1)
(3 points)
Therefore the variance of θ̂W is greater than the variance of θ̂Y for all n > 1 and the
”relative efficiency” of θ̂Y to θ̂W (which the ratio measures) grows in proportion to n
with increasing sample size. Note that when n = 1, then W = Y and all the above
formulas are in perfect agreement with each other.
(3 points)
(Note that you can get max(x, 25) points for the exercise, with x ∈ [0, 27].)
14