1. HR can throw quant questions too
2. Enthusiasm
3. Read resume
4. Read resume
.
.
.
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.
Friday, July 2, 2010
Stochastic Volatility and Fat Tail in Return Distribution
How are the two related?
Suppose volatility is constant and prices are lognormally distributed. Then the joint distribution of return across time is normal because sum of normally distributed variables is still normal.
If volatility is not constant yet still deterministic, then the same argument holds. In other words, the sum of normally distributed variables with different standard deviation is still normally distributed. In terms of stochastic calculus, the Ito integral of a deterministic function \int f dW is distributed as N(0,\int f^2 ds).
If volatility is stochastic, however, we will have fat-tailed return distribution instead of normal. Why is that? Shouldn't it still be normal because we're still summing up normally distributed variables? We have to think more rigorously in terms of stochastic calculus. For a stochastic function g, we cannot argue that \int g dW is distributed normally as we did previously for the case of deterministic volatility.
Suppose volatility is constant and prices are lognormally distributed. Then the joint distribution of return across time is normal because sum of normally distributed variables is still normal.
If volatility is not constant yet still deterministic, then the same argument holds. In other words, the sum of normally distributed variables with different standard deviation is still normally distributed. In terms of stochastic calculus, the Ito integral of a deterministic function \int f dW is distributed as N(0,\int f^2 ds).
If volatility is stochastic, however, we will have fat-tailed return distribution instead of normal. Why is that? Shouldn't it still be normal because we're still summing up normally distributed variables? We have to think more rigorously in terms of stochastic calculus. For a stochastic function g, we cannot argue that \int g dW is distributed normally as we did previously for the case of deterministic volatility.
Friday, June 18, 2010
Early Exercising
This is somewhat similar to the previous post on theta. When is it optimal to exercise an American option early?
- For call, you never exercise early if the underlying pays no dividend; reason being that for a call option, early exercise means we are to pay cash earlier. Considering the time value of money, early exercise is not as good as the alternative strategy of shorting the asset. If it does pay dividend, however, early exercise may be optimal just before a dividend is paid out.
- For put, things are more messy....If the option is deep in the money, then the asset price movement is not as a dominant factor as the time value of money because by early exercise we receive cash early -> early exercise is likely to be feasible.
Summary:
Exercise Am. call early if the call is deep ITM and dividend yield is high
Exercise Am. put early if the put is deep ITM and rate is high
http://faculty.chicagobooth.edu/robert.novy-marx/teaching/35100/Lectures/lec05.pdf
- For call, you never exercise early if the underlying pays no dividend; reason being that for a call option, early exercise means we are to pay cash earlier. Considering the time value of money, early exercise is not as good as the alternative strategy of shorting the asset. If it does pay dividend, however, early exercise may be optimal just before a dividend is paid out.
- For put, things are more messy....If the option is deep in the money, then the asset price movement is not as a dominant factor as the time value of money because by early exercise we receive cash early -> early exercise is likely to be feasible.
Summary:
Exercise Am. call early if the call is deep ITM and dividend yield is high
Exercise Am. put early if the put is deep ITM and rate is high
http://faculty.chicagobooth.edu/robert.novy-marx/teaching/35100/Lectures/lec05.pdf
When is theta positive?
Considering European options, theta may be positive
- for deep in-the-money call on an underlying that pays high dividend
- for deep in-the-money put on non-dividend paying underlying
Note the asymmetry between call and put. The max. payoff of a call is unlimited while the max. payoff of a put is capped at K. Hence if you are holding a put which is already reeeeeeally in-the-money, then all you wish is for time to pass quickly because allowing the stock to have more time to diffuse can be bad for you.
- for deep in-the-money call on an underlying that pays high dividend
- for deep in-the-money put on non-dividend paying underlying
Note the asymmetry between call and put. The max. payoff of a call is unlimited while the max. payoff of a put is capped at K. Hence if you are holding a put which is already reeeeeeally in-the-money, then all you wish is for time to pass quickly because allowing the stock to have more time to diffuse can be bad for you.
Sunday, June 6, 2010
Treasury Yield Curve, LIBOR and Swap Curve
Good reference: http://www.scribd.com/doc/34990081/Federal-Reserve-Bank-of-Cleveland-Haubrich-Swaps-and-the-Swaps-Yield-Curve
In short, T-yield curve and swap curve are similar things. In fact they usually move together. T-yield curve is on a riskless(yea, right) rate, while swap curve is on a nearly-riskless(because of netting of vanilla swaps and also because of collateral requirements) rate. Most vanilla swaps, however, take LIBOR(a risky rate because no collateral is required) as a reference rate in pricing the floating leg.
Question: What is the relationship between swap curve and LIBOR curve?
Answer: WSJ presents the LIBOR-Swap curve - the short end of the curve (<1yr) is the LIBOR rate, while the long end (up to 30 yr) is the swap rate.
In short, T-yield curve and swap curve are similar things. In fact they usually move together. T-yield curve is on a riskless(yea, right) rate, while swap curve is on a nearly-riskless(because of netting of vanilla swaps and also because of collateral requirements) rate. Most vanilla swaps, however, take LIBOR(a risky rate because no collateral is required) as a reference rate in pricing the floating leg.
Question: What is the relationship between swap curve and LIBOR curve?
Answer: WSJ presents the LIBOR-Swap curve - the short end of the curve (<1yr) is the LIBOR rate, while the long end (up to 30 yr) is the swap rate.
Saturday, June 5, 2010
Gamma Hedging
Just like implied volatility smile(surface!) is similar to yield curve, gamma hedging is also very similar to bond immunization. Derivative value is locally linear, which can be hedged by delta hedging. To improve the hedge, one can take the second-order correction into account, which is exactly what gamma hedging is. While delta hedging uses the underlying security, gamma hedging must use derivatives. This can be a problem: you wrote an option, you want to hedge the risk; but you need more options to do that!
Subscribe to:
Posts (Atom)