Errata

Example 4.4

May 16, 2017

Example 4.4 could be more clear, it is not strictly wrong, but could be better, i.e. have weights in the right side of the inequality, i.e. $$ VaR^{5\%}(0.5 X+ 0.5 Y) \approx 50 > 0.5 VaR^{5\%}(X) + 0.5 VaR^{5\%}(Y) = 0+0. $$


Example 4.5

Oct 30, 2016

My FM320 student Emily Wong spotted a typo in line 3, Example 4.5. The VaRs in the equation are missing a minus, and should be $$ 0 > - VaR_1 > -VaR_0$$


E and ES and Q

Jun 17, 2015

My FM320 student and summer intern Yiying Zhong spotted a typo in Chapter 4 page 86. The ES equation at the bottom of the page says $$ ES = - [Q|Q \le -VaR(p)]$$ but is missing the expectation $$ ES = - E[Q|Q \le -VaR(p)]$$


Listings 3.3, 3.4

Mar 19, 2015

It had been pointed out that Listings 3.3, 3.4 might be better if they had  y[i-1]  inside the loop. It is not wrong as it is, but this is better


few issues

Feb 5, 2015

My FM447 student Gevorg Saakyan pointed out a few typos

The tail index on page 1 uses the letter where it  should use .

Chapter 1, page 8. The date in the code comment does not correspond to the date in the code.

Chapter 8.2 Backtesting the S&P 500, pages 147-148. The dates in the text do not correspond with the dates in the code, the code should use February 2, this means that the  number of observations is not 4000.


Table 2.2

May 19, 2014

My Fm320 student, Chetan Varsani, noted that it might be better to reverse the first line of the table, i.e. ARCH(1) and ARCH(4)


Listings 8.9 to 8.12

May 12, 2013

the code in Listings 8.9 to 8.12 is correct, but it can have numerical problems when sample size is large. It is better to do the code in logs. Here is Listing 8.9 with that alternative, and it would be straightforward to do same adjustment to the other 3.

	 
bern_test=function(p,v){
# calculation with numerical problems when sample size is large
	a=p^(sum(v))*(1-p)^(length(v)-sum(v))
	b=(sum(v)/length(v))^(sum(v))*(1-(sum(v)/length(v)))^(length(v)-sum(v))
#	return(-2*log(a/b))

# more stable calculation when sample size is large
	lv=length(v)
	sv=sum(v)

	al=log(p)*sv+log(1-p)*(lv-sv)
	bl=log(sv/lv)*sv +log(1-sv/lv)*(lv-sv)
	return(-2*(al-bl))
}


Section 8.3.2

May 6, 2013

Gian Giacomo pointed our that the likelihoods in the independence discussion are mislabeled, so restricted is unrestricted, and vice versa.


page 189, endogenous price section

Apr 20, 2013

My FM320 student Richard Dunn spotted that below the equation the was incorrectly defined. It should be: $$\Delta P_2=P_2-P_1$$


Table 8.3 and 8.4

Apr 20, 2013

My FM320 students Jocelyn Tete and Chi Li independently spotted incorrect references where the reference to the four VaR models reported in Table 8.2/8.3 should have been 8.1 and 8.2 instead.


Figure 8.1

Apr 20, 2013

My FM320 student Chi Li spotted yet another problem in the cursed Figure 8.1, where MW should be MA.


page 48.

Apr 20, 2013

My FM320 student Chi Li spotted that section 2.6.4 second paragraph, last sentence: This is consistent with the residual analysis in Table 2.4. This should instead be Table 2.5.


More on ES for the normal

Apr 20, 2013

My FM320 student Richard Dunn spotted that second equation under section 5.3.4 is missing a minus in front.


page 90

Nov 8, 2012

my FM320 student Richard Dunn spotted a typo on page 90. The 10th word on the 5th line should be 'variance' instead of 'variable


page 44, 149

Jun 14, 2012

My FM320 student Alexander Stampfer found a number of small typos

The last paragraph ion page 44 “ The restricted log-likelihood minus the unrestricted log-likelihood” which should be reversed.

Page 149. There is a bracket missing in the Matlab code in the very last line of the page for EWMA


4 and 20 on page 96

Jun 9, 2012

My FM320 student Akash Jhunjhunwala points out that on page 96, the last line on the first paragraph, the 1% and 5% levels corresponds to the 4th and 20th values respectively, not the 5th and 25th as suggested in the brackets.


and bottom of page 155

Jun 5, 2012

My FM320 student, Bide Liu, spotted that I should have and not in the penultimate equation on page 155. It should read like $$p_{ji}= \Pr (\eta_t=i | \eta_{t-1} = j)$$


LR ratio in (8.4) page 154

Jun 5, 2012

My FM320 student, Bide Liu, spotted that the LR test in (8.4) has the wrong order in the first line. Should be unrestricted - the restricted, i.e. something like $$ LR=2(\log L_U (\hat{p})- \log L_R (p)) $$


standard deviation not variance on page 44

Jun 5, 2012

My FM320 student Amith Bhattacharyya spotted that on the penultimate line on page 42 standard deviation should replace variance.


Var(WE+1) and not Var(WT+1) on page 144

Jun 5, 2012

My class teacher Marcela Valenzuela and Ehsan Ramezanifar, University of Tehran, both spotted a typo in the middle of page 144, where the subscript T should be E.


example 4.3

Nov 16, 2011

My FM320 student Daniel Payne pointed out that in example 4.3 in third line from the bottom the subscript on the weight is wrong, its right in the preceding line, so in both cases it should be:$$ (w_X \sigma_X + w_Y \sigma_Y)^2$$


vol and mean numbers page 104

Nov 16, 2011

My MF320 student Ken Starling pointed out that I refer to Table 1.2 on page 104, but cite different numbers, so instead of 0.021% and 1.1% for mean and vol, use 0.019% and 1.16%.


page 85 ( and not [

Nov 16, 2011

My MF320 student Ken Starling pointed out that in the penultimate line on page 85 the left side of the interval should be ( since infinity is not included, so $$ (- \infty ,-VaR(p)] $$


Wrong word order on page 44

Oct 26, 2011

My FM320 student Daniel Payne pointed out that the words restricted and unrestricted are reversed on the bottom of page 44. It should read: "The unrestricted log-likelihood minus the restricted log-likelihood"


Multiperiod volatility

Oct 22, 2011

My FM320 student Dominic Clark pointed out that I could have been more clear on page 39 in the last text paragraph. Its not wrong, but a better way is: where indicates volatility...


3rd equation from the bottom on page 38

Oct 22, 2011

My FM320 student Ken Starling pointed out a missing + in the 3rd equation from the bottom on page 38, it should be $$\sigma^2= E(\omega+\alpha Y_{t-1}^2 +\beta \sigma_{t-1}^2) =\omega+\alpha \sigma^2 +\beta \sigma^2. $$


Equation on top of page 37

Oct 22, 2011

My FM320 student Yong Bin Ng pointed out a typo in the equation on top of page 37. It should be:$$ E(Y^4)=3E\left[(\omega+\alpha Y_{t-1}^2)^2\right]=3(\omega^2+2\alpha \omega \sigma^2 + \alpha^2 E(Y^4))$$

Also, in case you were wondering how to derive the equation we use previous results on page 36, independence of Y's and Z and properties of the normal distribution, and it's done as follows. \begin{aligned} E(Y^4)&=E(Y_t^4)\\ &=E(\sigma_t^4 Z_t^4)\\ &=E(\sigma_t^4)E(Z_t^4)\\ &=E(\sigma_t^4)3(E(Z_t^2))^2\\ &=3E((\sigma_t^2)^2)\\ &=3E\left[(\omega+\alpha Y_{t-1}^2)^2\right]\\ &=3(\omega^2+2\alpha \omega \sigma^2 + \alpha^2 E(Y_{t-1}^4))\\ &=3\omega^2+6\alpha \omega \sigma^2 + 3\alpha^2 E(Y^4)\\ &=3\omega^2+6\alpha \omega \frac{\omega}{1-\alpha} + 3\alpha^2 E(Y^4) \end{aligned} then, $$ E(Y^4)(1-3\alpha^2)(1-\alpha) =3\omega^2(1-\alpha)+6\alpha \omega^2 $$ and $$ E(Y^4)=\frac{3\omega^2(1+\alpha)}{(1-3\alpha^2)(1-\alpha)} $$


Table 1.5

Oct 22, 2011

My FM320 student Han Wang pointed out that Table 1.5 is not right. It is supposed to have a two tailed probability of outcomes, but the %1 number is 1-the one tailed prob, and the rest are one tailed. So, here are the correct numbers. Set the volatility to 1.16 as per Table 1.2, and get

1% 0.3886496
2% 0.08468295
3% 0.009703866
5% 1.630002e-05
15% 3.007448e-38
23% 1.721029e-87
with the R code to do the calculation 2*pnorm(-23,sd=1.16)


Monte Carlo VaR with one basic asset

May 24, 2011

item 2 on page 133 has an incorrect second index for the y. It should be not


Figure 8.1 backtesting

May 24, 2011

Philippe Mueller spotted a bug in the legend of Figure 8.1. It is an unwieldy figure, with almost too much going on, and hard to see in black and white. The color plot below is much clearer, and hopefully correct. Also, I called returns, volatility. Guess the pic was cursed. Finally, one could specify the probability, 1%. In any case, here is the correct.  


Typo in equation for ES for the normal

Feb 7, 2011

I do thank Oliver Linton for spotting a typo in the equation of ES for the normal at the bottom of page 103 and top of page 104. The setup and derivation is correct, but somehow the became . The correct equation (bottom page 103) $$\text{ES}=-\frac{\sigma \phi(-\text{VaR}(p))}{p}$$ and the corresponding equation at the top of 104 $$\text{ES}=-\varphi \frac{\sigma \phi(-\text{VaR}(p))}{p}$$