One of the very popular brain teasers:
What's the mean number of coin toss to get HH/HT/HHH...ect?
Approach 1: Considering absorption state of a Markov chain -> solving a system of simultaneous equation
Approach 2: Recursive formulae. For example, let H = expected number of tosses to get a head, HH = expected number of tosses to get two consecutive heads and so on. Then
H = 0 + 0.5*1 + 0.5*(1+H); T = 0 + 0.5*1 + 0.5*(1+T)
HH = H + 0.5*1 + 0.5*(1+HH)
HT = H + 0.5*1 + 0.5*(1+T)
HTH = HT + 0.5*1 + 0.5*(1+HTH)
HHT = HH + 0.5*1 + 0.5*(1+T)
See here for more interview questions/brainteasers
Wednesday, November 17, 2010
Monday, November 15, 2010
A few things about CDO
CDO contains many types of risks (not an exhaustive list). Considering a specific tranche,
- Delta risk: If the value of the underlying credit changes by $1, what is the change of value of the tranche? (first-order/linear approximation)
- Convexity risk: Since Delta is a first-order approximation, it fails to capture all the risk when the change in underlying value is large.
- Correlation: Remember, equity tranche is long correlation, while senior tranche is short correlation (why so?).
- Delta risk: If the value of the underlying credit changes by $1, what is the change of value of the tranche? (first-order/linear approximation)
- Convexity risk: Since Delta is a first-order approximation, it fails to capture all the risk when the change in underlying value is large.
- Correlation: Remember, equity tranche is long correlation, while senior tranche is short correlation (why so?).
Sunday, November 14, 2010
LIBOR Market Model vs. Swap Market Model
The two models (or the two families of models) are NOT compatible with one another. The recommended practice is to assume an LMM and then seek the swaption prices under such a model.
Correlation across rates of various maturity is much more important for swaption than for cap/floor, because the swaption payoff cannot be separated into individual expectation terms (in other words, when swaption expires we decide on whether to exercise based NOT on the sum of "swap-lets" - there is no such thing, but on the swap as a whole. cf. cap/floor payoff, which are nothing but sum of payoffs of individual caplet/floorlet).
Now back to LMM. We pick a set of forward LIBOR to fit. Each forward rate F(t,T1,T2) is a martingale under its 'natural' probability measure using P(T2) as the numeraire. However if we pick one single P() as the numeraire for all forward rates, most (except for one) rates will NOT be martingales. Thus we also need a formula for the dynamics of F(t,T1,T2) under some other measures. With this formula we can use MC pricing.
Bottom line: The rates "look like" tradable assets
Correlation across rates of various maturity is much more important for swaption than for cap/floor, because the swaption payoff cannot be separated into individual expectation terms (in other words, when swaption expires we decide on whether to exercise based NOT on the sum of "swap-lets" - there is no such thing, but on the swap as a whole. cf. cap/floor payoff, which are nothing but sum of payoffs of individual caplet/floorlet).
Now back to LMM. We pick a set of forward LIBOR to fit. Each forward rate F(t,T1,T2) is a martingale under its 'natural' probability measure using P(T2) as the numeraire. However if we pick one single P() as the numeraire for all forward rates, most (except for one) rates will NOT be martingales. Thus we also need a formula for the dynamics of F(t,T1,T2) under some other measures. With this formula we can use MC pricing.
Bottom line: The rates "look like" tradable assets
Saturday, November 13, 2010
Variance Swap vs. Volatility Swap
- Theoretical exact hedging recipe: Var swap can be hedged using a log contract, which itself can be replicated with a continuum of OTM calls and puts, this result is model independent; Vol swap hedging is model dependent.
- Risk: From a sellers' perspective, Var swap has higher risk because convexity means the payoff can be very huge in extreme volatility spike events; Vol swap is relatively "safer".
- Hedging in practice: Vol swap is easier to hedge in practice than Var swap. First, the payoff of Vol swap is monotonic in S (<=> less convexity); Second, under high volatility scenario, hedging a Var swap requires many options to be hedged, but usually under these circumstances the option market is not liquid enough.
- Risk: From a sellers' perspective, Var swap has higher risk because convexity means the payoff can be very huge in extreme volatility spike events; Vol swap is relatively "safer".
- Hedging in practice: Vol swap is easier to hedge in practice than Var swap. First, the payoff of Vol swap is monotonic in S (<=> less convexity); Second, under high volatility scenario, hedging a Var swap requires many options to be hedged, but usually under these circumstances the option market is not liquid enough.
Saturday, October 30, 2010
Quant Interview Questions 1
1. What is the price of a call as sigma -> infinity?
Ans:
It approaches S. The lognormal distribution is negatively skewed. As sigma -> infinity, although the probability of obtaining a very large S increases, a large portion of the probability mass is pushed towards the origin, making the option more likely to be out of the money (http://en.wikipedia.org/wiki/Log-normal_distribution).
2. Consider a product with maturity T=1, S_0=100, r=0. The product has a "one-hit" payoff, namely it pays \$1 when the underlying hits 120 for the first time, at which point the product terminates. What is the price of such product and how do you hedge it?
Ans:
It is worth 1*100/120 = \$0.8333. The replicating portfolio is simply to buy 0.008333 unit of stock at the inception and sell it off to collect 0.008333*120 = \$1 when the underlying hits 120 for the first time.
See here for more interview questions/brainteasers
Ans:
It approaches S. The lognormal distribution is negatively skewed. As sigma -> infinity, although the probability of obtaining a very large S increases, a large portion of the probability mass is pushed towards the origin, making the option more likely to be out of the money (http://en.wikipedia.org/wiki/Log-normal_distribution).
2. Consider a product with maturity T=1, S_0=100, r=0. The product has a "one-hit" payoff, namely it pays \$1 when the underlying hits 120 for the first time, at which point the product terminates. What is the price of such product and how do you hedge it?
Ans:
It is worth 1*100/120 = \$0.8333. The replicating portfolio is simply to buy 0.008333 unit of stock at the inception and sell it off to collect 0.008333*120 = \$1 when the underlying hits 120 for the first time.
See here for more interview questions/brainteasers
Thursday, October 28, 2010
Quant Interview Questions 2
1. sigma_A = 0.2, sigma_B = 0.3 and correlation = 0.5. Find the portfolio that has the lowest portfolio sigma.
Ans: 6/7 of A and 1/7 of B
2. Each cereal box contains a piece of toy. There are 4 kinds in total. What is the expected number of boxes you have to buy in order to get the entire collection?
Ans: 8.33333
3. What is the expected number of toss in order to get 3 consecutive H from a fair coin?
Ans: 1 H takes 2 tosses; 2 H's takes 6 tosses; 3 H's takes 14 tosses; n H's takes 2^(n+1)-2 tosses. See Zhou, under Markov chain, for details.
4. There are n people in the room, everyone has shaken hand with everyone else. If there are totally 66 handshakes, what is n?
Ans: 12
See here for more interview questions/brainteasers
Ans: 6/7 of A and 1/7 of B
2. Each cereal box contains a piece of toy. There are 4 kinds in total. What is the expected number of boxes you have to buy in order to get the entire collection?
Ans: 8.33333
3. What is the expected number of toss in order to get 3 consecutive H from a fair coin?
Ans: 1 H takes 2 tosses; 2 H's takes 6 tosses; 3 H's takes 14 tosses; n H's takes 2^(n+1)-2 tosses. See Zhou, under Markov chain, for details.
4. There are n people in the room, everyone has shaken hand with everyone else. If there are totally 66 handshakes, what is n?
Ans: 12
See here for more interview questions/brainteasers
Wednesday, September 29, 2010
FDM vs MC (Part II)
Previously, we compared for what finite differencing (or Monte Carlo) is good/bad.
After some practices, here are some more thoughts:
1. MC is more intuitive and easier to visualize
2. FDM has a higher sunk cost, i.e. the basic architecture has to be there to price even the simplest stuffs
3. Debugging FDM can be really hard since the different features of your instrument mingles together
4. FDM is rewarding in the sense that you get the instrument price at any spot value (and hence also some of the greeks) for free
5. FDM is much more problem specific - the code for one derivative needs much work to be used to price something else
After some practices, here are some more thoughts:
1. MC is more intuitive and easier to visualize
2. FDM has a higher sunk cost, i.e. the basic architecture has to be there to price even the simplest stuffs
3. Debugging FDM can be really hard since the different features of your instrument mingles together
4. FDM is rewarding in the sense that you get the instrument price at any spot value (and hence also some of the greeks) for free
5. FDM is much more problem specific - the code for one derivative needs much work to be used to price something else
Sunday, September 12, 2010
FDM vs MC
FDM is more tricky, and less intuitive, than MC.
Handling early exercise feature: FDM > MC
Handling path dependence: FDM < MC
The most difficult part of doing FDM is determining the correct boundary conditions. It can get really complicated, especially because one has to think backward in time.
Also, although it is better than MC in terms of handling early exercise, tools such as PSOR are not trivial - especially in the presence of other things such as barriers.
Handling early exercise feature: FDM > MC
Handling path dependence: FDM < MC
The most difficult part of doing FDM is determining the correct boundary conditions. It can get really complicated, especially because one has to think backward in time.
Also, although it is better than MC in terms of handling early exercise, tools such as PSOR are not trivial - especially in the presence of other things such as barriers.
Wednesday, September 8, 2010
Affine models
The Piazzesi paper (Affine term structure models) is an excellent overview of affine interest rate models, both on the theoretical foundations and a handful of specific models. It is also revised recently, to be included as a chapter in a book. It's amazing that single-factor models still remain important in the fixed income toolbox.
Subscribe to:
Posts (Atom)