Showing posts with label wishlist. Show all posts
Showing posts with label wishlist. Show all posts

Saturday, November 26, 2011

Variance Swap Revisited, Part II

  1. Once again, a variance swap is not just the log contract. It's the log contract plus dynamically hedged $1 worth of stock.
  2. Greeks of a variance swap (under B-S): Vega decreases linearly with time; Delta zero (but...); dollar Gamma constant.
  3. Two disadvantages of straddle (even if delta-hedged), as compared to variance swap, are that 1) volatility exposure rapidly diminishes as soon as asset price moves away from strike; and 2) path dependence of P&L.
  4. Due to these subtle differences between variance swap and delta-hedged straddle, the combination of the two is a neat way to trade the variance convexity. However the moving-underlying problem is still present and the delta-hedged straddle leg of this trade has to be periodically re-struck.
  5. Taking a step back, the reason why volatility capturing using vanilla option (or a porfolio of them) depends on path is that the Gamma of the option/options changes as underlying moves.
  6. Interest rate term structure has a short end (short rate) that is quite stable; on the other hand the short end of the variance term structure can move substantially and abruptly.

Reference: JP Morgan Variance Swap
Further readings: Correlation trading, volatility skew trading using Gamma swap

Monday, October 31, 2011

(Possible) Quant Interview Questions

1. Maths
What is i^i? Give your answer to 2 decimal places for both the real and the imaginary parts.

2. Black-Scholes
Assume Black-Scholes and no dividend. P and C are, respectively, European vanilla put and call that are otherwise identical. What is the strike price that would make
i) their price; and
ii) their delta
the same?

3. Fixed income
The current yield curve is upward sloping. You speculate that it will get steeper and want to take advantage of it by long-shorting zero coupon bonds with different maturities (5 yrs and 10 yrs).
i) What is the duration-neutral strategy?
ii) What is the impact to your duration-neutral portfolio if there is a small parallel shift in the yield curve? A large (>>1bps) upward shift? A large (>>1bp) downward shift?

See here for more interview questions/brainteasers

Friday, September 9, 2011

(Original?) Brain teaser

There are 2 apartments, A and B. Apartment A has 10 tenants and 2 washing machines; apartment B has 20 tenants and 4 washing machines. If your objective is to minimize the probability that all machines are occupied when you want to do laundry, which one is better, A or B, or does it not matter? Assume that ‘Tenant i does laundry at time t’ follows mutually independent Poisson processes. Assume also that each and every laundry takes the same finite amount of time T.

Friday, June 10, 2011

Quant Interview Questions (Model Validation 2)

1) Consider the SDE dr = a r dt + b dW. What is the solution for r?

Ans:
This is a special case of O-U process. Try taking derivative of $ f \equiv r_t e^{-at} $

2) Toss a fair coin for 100 times. What is (approximately) the probability Pr(# of H >= 60)?

Ans:
Consider the binomial distribution
n C k*p^k*(1-p)^(n-k)
The mean of the distribution is n*p and the variance is n*p*(1-p). When n is large, the binomial distribution converges to normal distribution with mean = n*p and variance = n*p*(1-p). Hence the standard deviation in this case is 5, and H >= 60 would be two standard deviation away from the mean. The answer is therefore (1 - 95.4%)/2 = 2.3%.

3) What is copula and how can it be used for modeling correlated processes?

Ans:
Let F_X and G_Y be the cdf of random variables X and Y, and they are the marginal distribution of the bivariate distribution H_XY. Using the fact that U = F_X(X) and V = G_Y(Y) both have uniform distribution from 0 to 1 (because F_X(X) is the percentile function). Sklar's Theorem states that there exists a copula function C such that
H_XY = C(F_X, G_Y)
In other words, we can construct the joint distribution using the marginal distributions.

Reference: http://en.wikipedia.org/wiki/Copula_%28statistics%29

4) Why is holding the equity piece of a CDO longing default correlation?

Ans:
Holding the senior tranche is a short position in correlation - that is easy to understand, because the probability of loss for the senior tranche is low as long as not too many assets in the pool default together in a bad credit environment. However, for the equity piece it seems that it will not actively benefit from high correlation. The way to think of it is to consider when credit environment is good, a high correlation ensures that no asset in the pool goes default.

5) Suppose x is a continuous observable variable, Y* is a binary observable variable, and Y is a latent variable. The following relations hold:
Y = b x + e, e ~ N(0,1)
Y* = 1 (if Y >= 0) or 0 (if Y < 0)
Suppose we have a set of data (x, Y*). How can be calibrate the model (i.e. fit b)?

Ans:
This problem can be solved by MLE. Since e ~ N(0,1), we have Y ~ N(b x, 1). The probability of Y* = 1 (or equivalently Y >= 0) is just the cumulative normal probability density. For each of the data point (x_i, Y*_i) we have such an F(Y). Thus the likelihood function is
Product(F_i(Y))
and we fit b by maximizing this function.

6) A, B and C are playing a game with gemstones. Each of them starts with 5 stones with different colors (blue, red, green, yellow, white). There are 3 rounds in the game. In the first round, A pick one stone randomly from B and one from C; in the second round B pick one stone randomly from C and one from A; in the third round C pick one stone randomly from A and one from B. What is the probability that at the end of the game each person would have 5 stones with different colors?

Ans:
0.015873 (MC verification)
Edit: Thanks to M Millar, the right answer should be 0.0413. The tree looks like
                                                                                                  -- C gets the right stones (1/9)
                                            -- B takes original from A (3/7) --
                                           |                                                      -- C fails (dead)
   -- A draws same color (1/5) --
  |                                         -- B fails to take original from A (dead)
--
  |                                        -- B takes original from A (2/7) -- C gets the right stones (1/9)
  |                                       |
  |                                       |                                                         -- B takes the right color from C (1/4) -- C gets the right stones (1/9)
   -- A draws diff colors (4/5)  ---- B takes the other duplicated color from A (2/7) --
                                          |                                                         -- B takes the wrong color from C (dead)
                                           -- B removes one of the three lone colors (dead)


See here for more interview questions/brainteasers

Thursday, June 9, 2011

Quant Interview Questions (Interest Rate Strat.)

1)
Suppose you have a fair coin. How do you create an event A such that Pr(A) = 1/3?

Ans:
Toss the coin twice to produce the following space: {HH, HT, TH, TT}. Discard one of the element in the set. Each of the remaining outcome represents an event A.

Note: This recipe can be extended to producing an event with probability m/n, m and n being integers.

2)
Suppose you have a fair coin. How do you create an event A such that Pr(A) = r, r being an irrational number between 0 and 1?

Ans:
Translate r into a binary string. For example, 0.27314... would be {10}{0111}{011}{01}{100}... We start tossing the coin until we can tell if the string formed by coin tossing is greater/less than r in binary, with H = 1 and T = 0. For example, the first step is to toss twice. If we have {TH} = {01}, then the string formed by coin tossing must be less than r in binary. We terminate and conclude that the event belongs to A; If we have {HH} = {11}, then the string formed by coin tossing must be greater than r in binary. We terminate and conclude that the event does not belong to A. If the two tosses produce {HT} = {10} then we cannot conclude, and have to move on to the next digit {111}, and so on. (MC verification)

Note: We have to append a zero in front of {111}, {11} and {1} because otherwise we cannot create a greater binary, i.e. 111 is the greatest 3-digit binary number.

See here for more interview questions/brainteasers

Friday, March 5, 2010

Stochastic Process

An "array of random variable"?
Value will be realized as time elapses?

Remember what a process is. See Baxter.