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

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.

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.

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!

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.

Wednesday, February 10, 2010

Martingale, physical probability and arbitrage-free probability

So I was working through a problem in the book Heard on The Street. It goes like this:

"Suppose that the riskless rate is zero...a stock is at $100...one year from now will be at either $130, or $70, with probabilities 0.80 and 0.20...What is the value of a one-year European call with strike $110?"

My first response is: A-ha! Since r is zero, there is no drift and hence the process is a martingale. For a martingale, physical probability = arbitrage-free probability, and so

c = 0.8*(130-110)=16

Before seeing why the red part (and hence the result) is wrong, let me point out how I got that impression. Consider a game in which you bet $1 and get $2 or $0 if a head or tail turns up when a coin is flipped, respectively. This is obviously a martingale, since there is no drift; and clearly, r is zero. And unfortunately, in this particular case, the statement physical probability = arbitrage-free probability is correct.

What about in general? It turns out that it is not true. In fact if we think about the relationship between the two probability measures on a binomial tree, the arbitrage-free probability p is

p = (exp(r)-D)/(U-D)

where U and D are the up- and down-scaling factors. Hence even when r is zero, we still need to compute the non-trivial arbitrage-free probability. It is by accident only that in the coin-flipping game physical probability = arbitrage-free probability since

(1-0)/(2-0) = 0.5

What an ugly coincidence! The moral of the story:
As one of my professor has told me, never plug in 1's and 0's when checking your calculations - and never think of the coin flipping game when checking your martingale pricing. Use other cases as examples.

Tuesday, February 9, 2010

C++ function (Passing by ???)

Passing by value
void func(int a){}

Advantage
Leave argument untouched

Disadvantage
Create an extra copy -> can consume more time

Passing by reference
void func(int& a){}

Advantage
No extra copy created

Disadvantage
Alters the argument variable, can be dangerous if not used with caution
(cf. http://iagtm.blogspot.com/2011/06/quant-interview-questions-model_10.html)

Pointer (C legacy?)
void func(int* a){}

Monday, February 8, 2010

Maximum Likelihood Estimation (MLE)

http://en.wikipedia.org/wiki/Maximum_likelihood

What is known
-The population distribution is parameterized (e.g. normal, binomial, ...)
-A bunch of samples is collected

Goal
Estimate the population distribution parameter

Recipe
See what parameter will have the greatest probability of producing these samples

Example
An unfair coin has head probability of either P = 0.3 or 0.8. It is flipped 100 times and turns up 43 heads. Find the MLE for P.

Tuesday, February 2, 2010

Sample Variance vs. Standard Error of Sample Mean

These two are a little confusing at first sight, so let's put them down here.

The sample variance, S^2, is an attempt to estimate the popupation variance, sigma^2.
http://en.wikipedia.org/wiki/Variance#Population_variance_and_sample_variance

The standard error of sample mean, on the other hand, tells us the standard error of the sample distribution. That is to say, as we draw samples from a population to estimate the mean, the sample mean itself would form a distribution; what is the standard deviation of THIS distribution?
http://en.wikipedia.org/wiki/Standard_error_%28statistics%29#Standard_error_of_the_mean