Mathematics of Finance
ECON 135 / MATH 176
- Simple Sports Betting
- Long and Short Option Pricing
- Put-Call Parity
- Cheat Sheet
- Shannon’s Demon
- Black-Scholes
Simple Sports Betting
-
Odds: X:1 odds on an event happening means that, for every one dollar you would lose if the event happens, you gain X dollars if it doesn’t happen
- In this class, we used fractional odds: a-to-b odds, written as a/b
- For every b dollars bet, you get a dollars in profit
- Hedging: Managing investments/bets to eliminate risk; guarantee profit
- A fair bet is when the expected value of winning is 0
- The sum of implied probabilities in a fair bet equals 100%
- Bookmakers set the sum of implied probabilities to over 100% in order to ensure a profit
- If you are offered a set of bets with a sum of implied probabilities being less than 100%, then you have an arbitrage opportunity
Long and Short Option Pricing
Option Definitions
- Option: A contract that allows you to purchase some product at a specified value at the expiration date
- Strike price: The cost of purchasing an option at the current moment
- Owning the option allows you to take an action; should always cost something
- Owning an option is known as being long, and the cost of an option is calld a premium
- Selling an option means you sell the rights to a counterparty and must allow them to exercise their action
- Selling an option is known as being short
- Options are derivative securities, as they derive their values from the prices of other securities like stocks, gold, or oil
- Call Option $C_E (S)$
- A long call option is the right to buy an asset S at an agreed value E (aka the strike or exercise price) at a future date
- Put Option $P_E (S)$
- A long put option is the right to sell an asset S at an agreed value E on a future date
- Four types of options: long put, short put, long call, short call
- Linear combinations of puts and calls can be created for custom payoff structures
- Options are defined by the strike/exercise price E, expiration date, and exercise style
- American style: can be exercised any time before expiration
- European style: can be exercised only at expiration
- Options can be in/at/out of the money depending on S compared to E
Values at Expiration
- For a long call, its value at expiration is $max(0, S-E)$
- If the asset price is less than the strike price, then the option is worthless
- Any difference in strike and asset price is profit, adds value to the option
- For a short call, you only get the profit of the strike price and incur a loss depending on the asset value
- For a long put, you are given the option of selling a stock S at the strike price E; you want the stock S to go down in price in order to make profit
- For a short put, you want the stock price to go up; risk is bounded at -E
- You can put together puts and calls to make portfolios and minimize risk
Put-Call Parity
- Basic compounding equation
- $P_{t + n} = (1 + r)^n P_t$
- Compounding equation where interest compounds M times per year
- $P_{final} = (1 + r/M)^M P_0$
- $\lim_{M \rightarrow \infty} (1 + r/M)^M = e^r$
- Derived from the fact that $\lim_{n \rightarrow \infty} (1 + 1/n)^n = e$
- Continuous compounding is better for modeling compared to discrete modeling
- Final compounding model: $P_{final} = e^{rt} P_0$, where r is the APR and t is the number of years
- Present value of money: $P_0 = P_{final} e^{-rt}$
- Value of money over time
- $\Delta M(t) = r M(t) \Delta t \rightarrow \sum \frac{\Delta M}{M} = r \sum \Delta t$
- As the change in t goes to 0, the equation becomes $\int \frac{1}{M} dM = r \int dt$
- If $E = M(T = t)$, then $\int_{M(T)}^E \frac{1}{M} dM = r\int_{t}^T dt \rightarrow M(t) = Ee^{-r(T - t)}$
- Put-Call Parity Equation
- $\text{If } S + P_E (S,t) > C_E(S, t) + Ee^{-r(T-t)} \text{, then there is an arbitrage opportunity}$
- Sell the lefthand side and buy the righthand side, depositing $Ee^{-r(T-t)}$ in the bank
- Arbitrage profit: $S + P_E (S,t) - C_E(S, t) - Ee^{-r(T-t)} > 0$
- This portfolio ($-S - P_E + C_E + E$) will costlessly liquidate
- At expiration, if $S \geq E$:
- The put option is worthless and won’t be exercised
- Use the call option to buy the stock at a lower price E using your bank balance
- Use the stock you purchased to cover the short sale of S
- If $S < E$:
- The call option is worthless and you won’t use it
- Use the bank balance E to buy the stock at the strike price E when the put option you sold is exercised
- Use the stock you purchased to cover the short sale of S
- $S + P_E (S,t) < C_E(S, t) + Ee^{-r(T-t)} \text{ case}$
- Buy the lefthand side and sell the righthand side, borrowing $Ee^{-r(T-t)}$ from the bank
- At expiration, if $S \geq E$:
- The call option will be exercised and you must sell the stock you own at price E
- Use the money you got from the sale to payoff the bank loan
- The put option is worthless and wont’t be used
Cheat Sheet
Finding range of profitable values:
Taylor series formula:
Calculating PDF from known distribution:
Shannon’s Demon
- One can gain expected returns if they rebalance their portfolio
- Consider a portfolio that invests in a stock that either doubles or halves after each day; if we always keep half of the portfolio in cash, then we are expected to make money
- Tells us that we can harvest volatility and make money even if the drift of a stock is 0
Black-Scholes
- Aims to price a European option before expiration
- Two aspects: intrinsic value (what is it worth if it expired right now) and time value (speculative aspect)
Modeling Stock Prices
- Price includes a predictable component and a random (stochastic) component
-
Random walk model: $\frac{dS}{S} = \mu dt + \sigma dw \rightarrow dS = \mu Sdt + \sigma Sdw$
- Predictable component: $\mu dt$, where $\mu$ is the average annual growth rate
- Random component: $\sigma dw$ where $\sigma$ is a measure of the standard deviation of annual returns and dw is a random number generated from $N(0, dt)$
- This means that $W_t \sim N(0, t)$
- If $S(0) = S_0$, then $S_t = S_0 \exp\left(\left(\mu - \frac{1}{2}\sigma^2\right)t + \sigma W_t\right)$
- By taking the natural log of both sides, we find that $\ln(S_t)$ is normally distributed, so $S_t$ is log-normally distributed
- $\ln(S_t) \sim N(\ln(S_0) + (\mu - \frac{1}{2}\sigma^2)t, \sigma^2 t)$
- $E[\ln(S_t)] = \ln(S_0) + (\mu - \frac{1}{2}\sigma^2)t$
- $Var[\ln(S_t)] = \sigma^2 t$
- Mode is located at $e^{\mu - \sigma^2}$
Ito’s Lemma
Uses the fact that $(\Delta t)^2 = 0$ to eliminate terms in the second order Taylor expansion
Example: $f(S,t) = \ln S$
Base Formula
- Assume that our portfolio is given by $\Pi = V - \delta S$; we buy one option and sell $\delta$ units of stock
- $d\Pi = dV - \delta dS$; plug in the Ito’s Lemma value for $dV$ and the fact that $dS = \mu Sdt + \sigma SdX$
- Set $\delta = \frac{\partial V}{\partial S}$ to eliminate the random portion $dX$
- Market formula: $d\Pi_{market} = \left(\frac{\partial V}{\partial t} + \frac{1}{2}\sigma^2 S^2 \frac{\partial^2 V}{\partial S^2}\right)$
- Arbitrage free world; this derivative should equal to risk-free interest rate from banks: $d\Pi_{bank} = r\Pi dt$
- Setting these equal to each other, we find that $\frac{\partial V}{\partial t} + \frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2} + rS\frac{\partial V}{\partial S} -rV = 0$
- Plug different formulas into $V$ to get the value of European options
Option Formulas
- Call option: $C_E(S, t) = SN(d_1) - Ee^{-r(T-t)}N(d_2)$
- Put option: $P_E(S, t) = Ee^{-r(T-t)}N(-d_2) - SN(-d_1)$
- $d_1 = \frac{\ln(S/E) + (r + \sigma^2/2)(T-t)}{\sigma\sqrt{T-t}}$
- $d_2 = \frac{\ln(S/E) + (r - \sigma^2/2)(T-t)}{\sigma\sqrt{T-t}} = d_1 - \sigma\sqrt{T-t}$
- Normal distribution: $N = \Phi$, $N’ = \phi$
Greeks Formulas
- Delta ($\delta$)
- $\frac{\partial C_E(S,t)}{\partial S} = N(d_1) \geq 0$
- $\frac{\partial P_E(S,t)}{\partial S} = -N(-d_1) = N(d_1) - 1 \leq 0$
- Gamma ($\Gamma$)
- $\frac{\partial^2 C_E(S,t)}{\partial S^2} = \frac{\partial^2 P_E(S,t)}{\partial S^2} = \frac{\phi(d_1)}{S\sigma\sqrt{T-t}}$
- Vega ($\nu$)
- $\frac{\partial C_E(S,t)}{\partial \sigma} = \frac{\partial P_E(S,t)}{\partial \sigma} = S\sqrt{T-t}\phi(d_1) \geq 0$
- Rho ($\rho$)
- $\frac{\partial C_E(S,t)}{\partial r} = E (T-t)e^{-r(T-t)}\Phi(d_2) \geq 0$
- $\frac{\partial P_E(S,t)}{\partial r} = - E(T-t)e^{-r(T-t)}\Phi(-d_2) \leq 0$
- Theta ($\theta$)
- $\frac{\partial C_E(S,t)}{\partial t} = - \frac{S\sigma\phi(d_1)}{2\sqrt{T-t}} - Ere^{-r(T-t)}\Phi(d_2) \leq 0$
- $\frac{\partial P_E(S,t)}{\partial r} = -\frac{S\sigma\phi(d_1)}{2\sqrt{T-t}} + Ere^{-r(T-t)}\Phi(-d_2)$; can be positive or negative depending on the values of E and S
American Options
- The value of an American call option should be above $S - E$; if $S - E$ is greater than the value of the option, then there is risk-free arbitrage
- This means that the value of an American call option should equal the price of a European call option
- The value of an American put option should generally be below $E - S$, but as S gets lower, it might be above $E - S$ due to how little profit is made
- American puts have different values than European puts because being able to exercise it early can give value, especially when $S$ is close to 0