A Practical Guide to Quantitative Finance Interviews
Contents
163

6.4. Other Finance Questions

Besides option pricing problems, a variety of other quantitative finance problems are tested in quantitative interviews as well. Many of these problems tend to be position-specific. For example, if you are applying for a risk management job, prepare to answer questions about VaR; for fixed-income jobs, get ready to answer questions about interest rate models. As I explained in Chapter 1, it always helps if you grasp the basic knowledge before the interview. In this section, we use several examples to show some typical interview problems.

Portfolio optimization

You are constructing a simple portfolio using two stocks AA and BB. Both have the same expected return of 12%. The standard deviation of AA’s return is 20% and the standard deviation of BB’s return is 30%; the correlation of their returns is 50%. How will you allocate your investment between these two stocks to minimize the risk of your portfolio?

Solution: Portfolio optimization has always been a crucial topic for investment management firms. Harry Markowitz’s mean-variance portfolio theory is by far the most well-known and well-studied portfolio optimization model. The essence of the mean-variance portfolio theory assumes that investors prefer (1) higher expected returns for a given level of standard deviation/variance and (2) lower standard deviations/variances for a given level of expected return. Portfolios that provide the minimum standard deviation for a given expected return are termed efficient portfolios. The expected return and the variance of a portfolio with NN assets can be expressed as

μp=w1μ1+w2μ2+⋯+wNμN=wTμ\mu_p=w_1\mu_1+w_2\mu_2+\cdots+w_N\mu_N=w^T\mu var⁡(rp)=∑i=1Nσi2wi2+∑i≠jσijwiwj=wTΣw\operatorname{var}(r_p)=\sum_{i=1}^N\sigma_i^2w_i^2+\sum_{i\ne j}\sigma_{ij}w_iw_j=w^T\Sigma w

where wi, ∀i=1,⋯ ,Nw_i,\ \forall i=1,\cdots,N, is the weight of the ii-th asset in the portfolio; μi, ∀i=1,⋯ ,N\mu_i,\ \forall i=1,\cdots,N, is the expected return of the ii-th asset; σi2\sigma_i^2 is the variance of ii-th asset’s return; σij=ρijσiσj\sigma_{ij}=\rho_{ij}\sigma_i\sigma_j is the covariance of the returns of the ii-th and the jj-th assets and ρij\rho_{ij} is their correlation; ww is an N×1N\times1 column vector of wiw_i’s; μ\mu is an N×1N\times1 column vector of μi\mu_i’s; Σ\Sigma is the covariance matrix of the returns of NN assets, an N×NN\times N matrix.

Since the optimal portfolio minimizes the variance of the return for a given level of expected return, the efficient portfolio can be formulated as the following optimization problem:

164

min⁡wwTΣws.t.wTμ=μp, wTe=1\begin{aligned}\min_w\quad&w^T\Sigma w\\s.t.\quad&w^T\mu=\mu_p,\ w^Te=1\end{aligned}, where ee is an N×1N\times1 vector with all elements equal to 1.13

For this specific problem, the expected returns are 12% for both stocks. So μp\mu_p is always 12% no matter what wAw_A and wBw_B (wA+wB=1w_A+w_B=1) are. The variance of the portfolio is

var⁡(rp)=σA2wA2+σB2wB2+2ρA,BσAσBwAwB=σA2wA2+σB2(1−wA)2+2ρA,BσAσBwA(1−wA)\begin{aligned}\operatorname{var}(r_p)&=\sigma_A^2w_A^2+\sigma_B^2w_B^2+2\rho_{A,B}\sigma_A\sigma_Bw_Aw_B\\&=\sigma_A^2w_A^2+\sigma_B^2(1-w_A)^2+2\rho_{A,B}\sigma_A\sigma_Bw_A(1-w_A)\end{aligned}

Taking the derivative of var⁡(rp)\operatorname{var}(r_p) with respect to wAw_A and setting it to zero, we have

∂var⁡(rp)∂wA=2σA2wA−2σB2(1−wA)+2ρA,BσAσB(1−wA)−2ρA,BσAσBwA=0\frac{\partial \operatorname{var}(r_p)}{\partial w_A}=2\sigma_A^2w_A-2\sigma_B^2(1-w_A)+2\rho_{A,B}\sigma_A\sigma_B(1-w_A)-2\rho_{A,B}\sigma_A\sigma_Bw_A=0 ⇒wA=σB2−ρA,BσAσBσA2−2ρA,BσAσB+σB2=0.09−0.5×0.2×0.30.04−2×0.5×0.2×0.3+0.09=67.\Rightarrow w_A=\frac{\sigma_B^2-\rho_{A,B}\sigma_A\sigma_B}{\sigma_A^2-2\rho_{A,B}\sigma_A\sigma_B+\sigma_B^2}=\frac{0.09-0.5\times0.2\times0.3}{0.04-2\times0.5\times0.2\times0.3+0.09}=\frac67.

So we should invest 6/7 of the money in stock AA and 1/7 in stock BB.

Value at risk

Briefly explain what VaR is. What is the potential drawback of using VaR to measure the risk of derivatives?

Solution: Value at Risk (VaR) and stress test—or more general scenario analysis—are two important aspects of risk management. In the Financial Risk Manager Handbook,14 VaR is defined as the following: VAR is the maximum loss over a target horizon such that there is a low, pre-specified probability that the actual loss will be larger.

Given a confidence level α∈(0,1)\alpha\in(0,1), the VaR can be implicitly defined as α=∫−VaR∞xf(x)dx\alpha=\displaystyle\int_{-VaR}^{\infty}xf(x)dx, where xx is the dollar profit (loss) and f(x)f(x) is its probability density function. In practice, α\alpha is often set to 95% or 99%. VaR is an extremely popular choice in financial risk management since it summarizes the risk to a single dollar number. 165 Mathematically, it is simply the (negative) first or fifth percentile of the profit distribution.

As a percentile-based measure on the profit distribution, VaR does not depend on the shape of the tails before (and after) probability 1−α1-\alpha, so it does not describe the loss on the left tail. When the profit/loss distribution is far from a normal distribution, as in the cases of many derivatives, the tail portion has a large impact on the risk, and VaR often does not reflect the real risk.15 For example, let’s consider a short position in a credit default swap. The underlying asset is bond AA with a $1M notional value. Further assume that AA has a 3% default probability and the loss given default is 100% (no recovery). Clearly we are facing the credit risk of bond AA. Yet if we use 95% confidence level, VaR(A)=0VaR(A)=0 since the probability of default is less than 5%.

Furthermore, VaR is not sub-additive and is not a coherent measure of risk, which means that when we combine two positions AA and BB to form a portfolio CC, we do not always have VaR(C)≤VaR(A)+VaR(B)VaR(C)\le VaR(A)+VaR(B). For example, if we add a short position in a credit default swap on bond BB with a $1M notional value. BB also has a 3% default probability independent of AA and the loss given default is 100%. Again we have VaR(B)=0VaR(B)=0. When AA and BB form a portfolio CC, the probability that at least one bond will default becomes 1−(1−3%)(1−3%)≈5.9%1-(1-3\%)(1-3\%)\approx5.9\%. So VaR(C)=$1M>VaR(A)+VaR(B)VaR(C)=\$1\text{M}>VaR(A)+VaR(B). Lack of sub-additivity directly contradicts the intuitive idea that diversification reduces risk. So it is a theoretical drawback of VaR.

(Sub-additivity is one property of a coherent risk measure. A risk measure ρ(X)\rho(X) is considered coherent if the following conditions holds: ρ(X+Y)≤ρ(X)+ρ(Y); ρ(aX)=aρ(X), ∀a>0; ρ(X)≤ρ(Y),\rho(X+Y)\le\rho(X)+\rho(Y);\ \rho(aX)=a\rho(X),\ \forall a>0;\ \rho(X)\le\rho(Y), if X≤YX\le Y; and ρ(X+k)=ρ(X)−k\rho(X+k)=\rho(X)-k for any constant kk. It is defined in Coherent Measure of Risk by Artzner, P., et al., Mathematical Finance, 9 (3):203–228. Conditional VaR is a coherent risk measure.)

Duration and convexity

The duration of a bond is defined as D=−1PdPdyD=-\dfrac1P\dfrac{dP}{dy}, where PP is the price of the bond and yy is yield to maturity. The convexity of a bond is defined as C=1Pd2Pdy2C=\dfrac1P\dfrac{d^2P}{dy^2}. Applying Taylor’s expansion, ΔPP≈−DΔy+12CΔy2\dfrac{\Delta P}P\approx-D\Delta y+\dfrac12C\Delta y^2. when Δy\Delta y is small, ΔPP≈−DΔy\dfrac{\Delta P}P\approx-D\Delta y.

For a fixed-rate bond with coupon rate cc and time-to-maturity TT:

166 T↑⇒D↑ c↑⇒D↓ y↑⇒D↓T↑⇒C↑ c↑⇒C↓ y↑⇒C↓.T\uparrow\Rightarrow D\uparrow\ c\uparrow\Rightarrow D\downarrow\ y\uparrow\Rightarrow D\downarrow\quad T\uparrow\Rightarrow C\uparrow\ c\uparrow\Rightarrow C\downarrow\ y\uparrow\Rightarrow C\downarrow.

Another important concept is dollar duration: $D=−dPdy=P×D\$D=-\dfrac{dP}{dy}=P\times D. Many market participants use a concept called DV01: DV01=−dP10,000×dyDV01=-\dfrac{dP}{10,000\times dy}, which measures the price change when the yield changes by one basis point. For some bond derivatives, such as swaps, dollar duration is especially important. A swap may have value P=0P=0, in which case dollar duration is more meaningful than duration.

When nn bonds with values Pi, i=1,⋯ ,nP_i,\ i=1,\cdots,n, and Durations DiD_i (convexities CiC_i) form a portfolio, the duration of the portfolio is the value-weighted average of the durations of the components: D=∑i=1nPiPDiD=\displaystyle\sum_{i=1}^n\dfrac{P_i}PD_i (C=∑i=1nPiPCiC=\displaystyle\sum_{i=1}^n\dfrac{P_i}PC_i), where P=∑i=1nPiP=\displaystyle\sum_{i=1}^nP_i. The dollar duration of the portfolio is simply the sum of the dollar durations of the components: $D=∑i=1n$Di\$D=\displaystyle\sum_{i=1}^n\$D_i.

What are the price and duration of an inverse floater with face value $100 and annual coupon rate 30%−3r30\%-3r that matures in 5 years? Assume that the coupons are paid semiannually and the current yield curve is flat at 7.5%.

Solution: The key to solving basic fixed-income problems is cash flow replication. To price a fixed-income security with exotic structures, if we can replicate its cash flow using a portfolio of fundamental bond types such as fixed-rate coupon bonds (including zero-coupon bonds) and floating-rate bonds, no-arbitrage arguments give us the following conclusions:

Price of the exotic security = Price of the replicating portfolio
Dollar duration of the exotic security = Dollar duration of the replicating portfolio

To replicate the described inverse floater, we can use a portfolio constructed by shorting 3 floating rate bonds, which is worth $100 each, and longing 4 fixed-rate bonds with a 7.5% annual coupon rate, which is worth $100 each as well. The coupon rate of a floating-rate bond is adjusted every 0.5 years payable in arrear: the coupon rate paid at t+0.5yt+0.5y is determined at tt. The cash flows of both positions and the whole portfolio are summarized in the following table. It is apparent that the total cash flows of the portfolio are the same as the described inverse floater. So the price of the inverse float is the price of the replicating portfolio: Pinverse=$100P_{inverse}=\$100.

167
Cash flowYear 0Year 0.5…Year 4.5Year 5
Short 3 floating-rate bonds300−150r0-150r_0…−150r4-150r_4−300−150r4.5-300-150r_{4.5}
Long 4 bonds with 7.5% coupon rate-40015…15400+15400+15
Total-10015−150r015-150r_0…30−300r030-300r_0115−150r4.5115-150r_{4.5}

The dollar duration of the inverse floater is the same as the dollar duration of the portfolio as well: $Dinverse=4×$Dfixed−3×$Dfloating\$D_{inverse}=4\times\$D_{fixed}-3\times\$D_{floating}. Since the yield curve is flat, r0=7.5%r_0=7.5\% and the floating-rate bond is always worth $103.75 (after the payment of $3.75, the price of the floating-rate bond is $100) at year 0.5, and the dollar duration16 is

$Dfloating=−d(103.75/(1+y/2))dy=0.5×103.75(1+y/2)2=100×0.51+y/2=48.19.\$D_{floating}=-\frac{d(103.75/(1+y/2))}{dy}=0.5\times\frac{103.75}{(1+y/2)^2}=100\times\frac{0.5}{1+y/2}=48.19.

The price of a fixed-rate bond is P=∑t=12Tc/2(1+y/2)t+100(1+y/2)2TP=\displaystyle\sum_{t=1}^{2T}\dfrac{c/2}{(1+y/2)^t}+\dfrac{100}{(1+y/2)^{2T}}, where TT is the maturity of the bond. So the dollar duration of the fixed-rate bond is

$Dfixed=−dPdy=11+y/2(∑t=12Tt2c/2(1+y/2)t+100T(1+y/2)2T)=410.64.\$D_{fixed}=-\frac{dP}{dy}=\frac1{1+y/2}\left(\sum_{t=1}^{2T}\frac t2\frac{c/2}{(1+y/2)^t}+\frac{100T}{(1+y/2)^{2T}}\right)=410.64.

So $Dinverse=4×$Dfixed−3×$Dfloating=1498\$D_{inverse}=4\times\$D_{fixed}-3\times\$D_{floating}=1498 and the duration of the inverse floater is Dinverse=$Dinverse/Pinverse=14.98D_{inverse}=\$D_{inverse}/P_{inverse}=14.98.

Forward and futures

What's the difference between futures and forwards? If the price of the underlying asset is strongly positively correlated with interest rates, and the interest rates are stochastic, which one has higher price: futures or forwards? Why?

Solution: Futures contracts are exchange-traded standardized contracts; forward contracts are over-the-counter agreements so they are more flexible. Futures contracts are marked-to-market daily; forwards contacts are settled at the end of the contract term.

168

If the interest rate is deterministic, futures and forwards have the same theoretical price: F=Se(r+u−y)τF=Se^{(r+u-y)\tau}, where uu represents all the storage costs and yy represents dividend yield for investment assets, convenience yield for commodities and foreign risk-free interest rate for foreign currencies.

The mark-to-market property of futures makes their values differ from forwards when interest rates vary unpredictably (as they do in the real world). As the life of a futures contract increases, the differences between forward and futures contracts may become significant. If the futures price is positively correlated with the interest rate, the increases of the futures price tend to occur the same time when interest rate is high. Because of the mark-to-market feature, the investor who longs the futures has an immediate profit that can be reinvested at a higher rate. The loss tends to occur when the interest rate is low so that it can be financed at a low rate. So a futures contract is more valuable than the forward when its value is positively correlated with interest rates and the futures price should be higher.

Interest rate models

Explain some of the basic interest rate models and their differences.

Solution: In general, interest rate models can be separated into two categories: short-rate models and forward-rate models. The short-rate models describe the evolution of the instantaneous interest rate R(t)R(t) as stochastic processes, and the forward rate models (e.g., the one- or two-factor Heath-Jarrow-Morton model) capture the dynamics of the whole forward rate curve. A different classification separates interest rate models into arbitrage-free models and equilibrium models. Arbitrage-free models take the current term structure—constructed from most liquid bonds—and are arbitrage-free with respect to the current market prices of bonds. Equilibrium models, on the other hand, do not necessarily match the current term structure.

Some of the simplest short-rate models are the Vasicek model, the Cox-Ingersoll-Ross model, the Ho-Lee model, and the Hull-White model.

Equilibrium short-rate models

Vasicek model: dR(t)=a(b−R(t))dt+σdW(t)dR(t)=a(b-R(t))dt+\sigma dW(t)

When R(t)>bR(t)>b, the drift rate is negative; when R(t)<bR(t)<b, the drift rate is positive. So the Vasicek model has the desirable property of mean-reverting towards long-term average bb. But with constant volatility, the interest rate has positive probability of being negative, which is undesirable.

Cox-Ingersoll-Ross model: dR(t)=a(b−R(t))dt+σR(u)dW(t)dR(t)=a(b-R(t))dt+\sigma\sqrt{R(u)}dW(t)

169

The Cox-Ingersoll-Ross model keeps the mean-reversion property of the Vasicek model. But the diffusion rate σR(u)\sigma\sqrt{R(u)} addresses the drawback of Vasicek model by guaranteeing that the short rate is positive.

No-arbitrage short-rate models

Ho-Lee model: dr=θ(t)dt+σdzdr=\theta(t)dt+\sigma dz

The Ho-Lee model is the simplest no-arbitrage short-rate model where θ(t)\theta(t) is a time-dependent drift. θ(t)\theta(t) is adjusted to make the model match the current rate curve.

Hull-White model: dR(t)=a(b(t)−R(t))dt+σdW(t)dR(t)=a(b(t)-R(t))dt+\sigma dW(t)

The Hull-White model has a structure similar to the Vasicek model. The difference is that b(t)b(t) is a time-dependent variable in the Hull-White model to make it fit the current term structure.