Reference

Formula Sheet

Every key formula of the course on one page, grouped by chapter, with a link back to the section that develops it.

Chapter 1 · Money, Time and Returns

Simple and compound interest; present value§ 1.1 →
$A=P(1+rt)$ (simple), $\ A=P(1+r)^t$ (compound), $\ PV=\dfrac{A}{(1+r)^t}$
Compounding $m$ times a year; effective annual rate§ 1.1 →
$A=P\left(1+\dfrac rm\right)^{mt}$, $\ \text{EAR}=\left(1+\dfrac rm\right)^m-1$
Continuous compounding§ 1.1 →
$\displaystyle\lim_{m\to\infty}\left(1+\frac rm\right)^{mt}=e^{rt}$, $\ A=Pe^{rt}$, $\ \text{EAR}=e^r-1$
Fisher relation: real and after-tax real return (tax rate $\tau$ illustrative)§ 1.1 →
$1+r_{\text{nom}}=(1+r_{\text{real}})(1+\pi)$, $\ r_{\text{real, after tax}}=\dfrac{1+r_{\text{nom}}(1-\tau)}{1+\pi}-1$
Doubling time; rules of 72 and 70§ 1.1 →
$T_2=\dfrac{\log 2}{\log(1+r)}\approx\dfrac{72}{100r}$; continuous: $T_2=\dfrac{\log2}{r}$
Sum of a geometric progression ($x\ne1$)§ 1.2 →
$1+x+\cdots+x^{n-1}=\dfrac{x^n-1}{x-1}$; $\ \displaystyle\sum_{k\ge0}x^k=\dfrac1{1-x}$ for $|x|\lt1$
Annuity of $A$ per period at rate $i$ (end of period; annuity due: multiply by $1+i$)§ 1.2 →
$FV=A\,\dfrac{(1+i)^n-1}{i}$, $\ PV=A\,\dfrac{1-(1+i)^{-n}}{i}$, perpetuity $PV=\dfrac Ai$
EMI, balance after $k$ EMIs, principal part of EMI $k$ ($i=r/12$)§ 1.2 →
$E=\dfrac{Li}{1-(1+i)^{-n}}$, $\ B_k=E\,\dfrac{1-(1+i)^{-(n-k)}}{i}$, $\ P_k=(E-iL)(1+i)^{k-1}$
EMIs needed to clear a balance $B$ (needs $E\gt iB$)§ 1.2 →
$n=\dfrac{-\log\left(1-iB/E\right)}{\log(1+i)}$
SIP (start of month) and step-up SIP ($s$ = one year of ₹1/month, $R_1=(1+i)^{12}$, $R_1\ne1+g$)§ 1.2 →
$FV=A\,\dfrac{(1+i)^n-1}{i}(1+i)$, $\ FV_{\text{step-up}}=A\,s\,\dfrac{R_1^{\,Y}-(1+g)^Y}{R_1-(1+g)}$
Flat-rate loan and its approximate reducing rate§ 1.2 →
$E=\dfrac{L(1+f\,n/12)}{n}$, $\ r\approx\dfrac{2nf}{n+1}$ (solve exactly numerically)
Absolute return and CAGR over $t$ years ($t$ = days/365)§ 1.3 →
$R=\dfrac{V_1}{V_0}-1$, $\ g=(1+R)^{1/t}-1$, $\ R=(1+g)^t-1$
Average return vs CAGR (returns $R_k\gt-1$; $\sigma$ = population s.d.)§ 1.3 →
$G=\big[\prod(1+R_k)\big]^{1/n}-1\le A=\tfrac1n\sum R_k$, $\ G\approx A-\dfrac{\sigma^2}{2}$
Log returns add over time§ 1.3 →
$r=\log(1+R)$, $\ \log\dfrac{P_n}{P_0}=r_1+\cdots+r_n$, $\ R=e^r-1$
NPV and IRR (unique IRR if all outflows precede all inflows)§ 1.3 →
$\text{NPV}(k)=\displaystyle\sum_{j=0}^{n}\frac{C_j}{(1+k)^{j}}$; IRR: $\text{NPV}(x^*)=0$; accept if $\text{NPV}(k)\gt0$
XIRR and Newton's method ($t_k$ = days/365 from the first flow)§ 1.3 →
$f(x)=\sum C_k(1+x)^{-t_k}=0$, $\ x_{j+1}=x_j-\dfrac{f(x_j)}{f'(x_j)}$, $\ f'(x)=-\sum t_kC_k(1+x)^{-t_k-1}$
Rolling $w$-year return ending at date $s$§ 1.3 →
$\rho_w(s)=\left(\dfrac{N_s}{N_{s-w}}\right)^{1/w}-1$ for every end date $s$

Chapter 2 · Indian Markets and Instruments

Spread, mid price and a market order's average price§ 2.1 →
$m=\tfrac12(a+b)$, relative spread $\dfrac{a-b}{m}$; $\ \bar p=\dfrac{\sum_j p_jq_j}{\sum_j q_j}$, cost $(\bar p-m)Q$
Free-float market-cap index: level, weights, daily return (divisor unchanged)§ 2.1 →
$I_t=\dfrac{\sum_iP_{i,t}Q_if_i}{D_t}$, $\ w_i=\dfrac{P_iQ_if_i}{\sum_jP_jQ_jf_j}$, $\ \dfrac{I_t}{I_{t-1}}-1=\sum_iw_{i,t-1}r_i$
Divisor adjustment when the basket changes at unchanged prices ($M\to M'$)§ 2.1 →
$D'=D\,\dfrac{M'}{M}$ (no change for splits and bonuses in a market-cap index)
Total return index ($d_t$ = dividends going ex, in index points)§ 2.1 →
$\text{TRI}_t=\text{TRI}_{t-1}\,\dfrac{I_t+d_t}{I_{t-1}}$; gap over $T$ years $(1+y)^T$
Corporate actions (cum price $P$): split into $k$; bonus $a{:}b$; dividend $\delta$; rights $a{:}b$ at $S$§ 2.1 →
$\dfrac Pk$; $\ P\dfrac{b}{a+b}$; $\ P-\delta$; $\ \text{TERP}=\dfrac{bP+aS}{a+b}$, right worth $\text{TERP}-S$
NAV, units bought (charge $s$) and redemption proceeds (exit load $\ell$)§ 2.2 →
$\text{NAV}=\dfrac{\text{assets}-\text{liabilities}}{U}$, $\ u=\dfrac{X(1-s)}{N}$, proceeds $uN(1-\ell)$
SIP average cost per unit (harmonic mean $\le$ arithmetic mean)§ 2.2 →
$\bar c=\dfrac{n}{\sum_{k=1}^n 1/N_k}\le\dfrac{1}{n}\sum_{k=1}^n N_k$
Expense-ratio drag: same portfolio, TERs $c_1\lt c_2$, $T$ years§ 2.2 →
$\dfrac{V_2}{V_1}\approx e^{-(c_2-c_1)T}$; net return $(1+g)e^{-c}-1\approx g-c$
Tracking difference, tracking error, cash drag and ETF premium§ 2.2 →
$\text{TD}=R_F-R_I\approx-c-\kappa-w(R_I-R_c)$, $\ \text{TE}=s_d\sqrt{252}$, premium $\dfrac{P-\text{iNAV}}{\text{iNAV}}$
SWP of $W$ a month from $C$ at monthly return $i$ (lasts for ever if $W\le iC$)§ 2.2 →
$B_k=C(1+i)^k-W\dfrac{(1+i)^k-1}{i}$, $\ n=\dfrac{-\log(1-iC/W)}{\log(1+i)}$
T-bill ($d$ days): yield on price, discount rate on face§ 2.3 →
$y=\dfrac{F-P}{P}\cdot\dfrac{365}{d}$, $\ \delta=\dfrac{F-P}{F}\cdot\dfrac{365}{d}$, $\ P=\dfrac{F}{1+y\,d/365}$
Coupon bond on a coupon date ($i=y/m$; YTM is the $y$ that matches the market price)§ 2.3 →
$P=C\,\dfrac{1-(1+i)^{-n}}{i}+\dfrac{F}{(1+i)^n}$, $\ P-F=(C-iF)\,a_n$
Macaulay and modified duration; PVBP of a holding worth $V$§ 2.3 →
$D_{\text{mac}}=\dfrac1P\sum_k\dfrac km\,\dfrac{CF_k}{(1+i)^k}$, $\ D_{\text{mod}}=\dfrac{D_{\text{mac}}}{1+y/m}=-\dfrac1P\dfrac{dP}{dy}$, $\ \text{PVBP}=D_{\text{mod}}V\times10^{-4}$
Duration–convexity estimate of a price change§ 2.3 →
$\dfrac{\Delta P}{P}\approx-D_{\text{mod}}\Delta y+\tfrac12\,\mathcal C\,(\Delta y)^2$, $\ \mathcal C=\dfrac1P\dfrac{d^2P}{dy^2}$
Debt fund over $h$ years (approximate; parallel yield change $\Delta y$, expense ratio $e$)§ 2.3 →
$R\approx(y-e)h-D_{\text{mod}}\Delta y+\tfrac12\mathcal C(\Delta y)^2$, $\ \Delta y_{\text{b/e}}\approx\dfrac{(y-e)h}{D_{\text{mod}}}$
Break-even default probability (one-year, recovery $R$)§ 2.3 →
$p^*=\dfrac{1}{1-R}\left(1-\dfrac{1+y_g}{1+y_c}\right)\approx\dfrac{y_c-y_g}{1-R}$

Chapter 3 · The Statistics of Returns

Volatility and annualising ($m$ periods a year, independent returns)§ 3.1 →
$s=\sqrt{\tfrac{1}{n-1}\sum(r_t-\bar r)^2}$, $\ \mu_{\text{ann}}\approx m\mu$, $\ \sigma_{\text{ann}}=\sigma\sqrt m$ ($\sqrt{252}\approx15.87$)
Standard errors ($n$ returns, $T$ years; SE of $s$ for normal data)§ 3.1 →
$\operatorname{SE}(\text{annual mean})\approx\dfrac{\sigma_{\text{ann}}}{\sqrt T}$, $\ \operatorname{SE}(s)\approx\dfrac{\sigma}{\sqrt{2(n-1)}}$
Skewness and kurtosis ($m_k=\frac1n\sum(r_t-\bar r)^k$; normal: 0 and 3)§ 3.1 →
$\text{skew}=\dfrac{m_3}{m_2^{3/2}}$, $\ \text{kurt}=\dfrac{m_4}{m_2^2}$, excess $=\text{kurt}-3$
Tail probabilities: any distribution (Chebyshev) and normal§ 3.1 →
$P(|X-\mu|\ge k\sigma)\le\dfrac1{k^2}$; normal: $1\sigma$ 31.7%, $2\sigma$ 4.55%, $3\sigma$ 0.27%
Drawdown and recovery (fall $d$, then growth $c$ a year)§ 3.1 →
$D_t=\dfrac{V_t}{\max_{s\le t}V_s}-1$, $\ g=\dfrac{d}{1-d}$, $\ T=\dfrac{\log\frac1{1-d}}{\log(1+c)}$
Volatility drag (small returns; $\sigma^2$ with divisor $n$)§ 3.1 →
$G\le A$, $\ G\approx A-\dfrac{\sigma^2}{2}$
Covariance, correlation ($-1\le\rho\le1$) and two-asset variance§ 3.2 →
$s_{xy}=\tfrac1{n-1}\sum(x_t-\bar x)(y_t-\bar y)$, $\ \rho=\dfrac{s_{xy}}{s_xs_y}$, $\ \sigma_p^2=w_1^2\sigma_1^2+w_2^2\sigma_2^2+2w_1w_2\rho\sigma_1\sigma_2$
Market-model regression: beta, alpha, $R^2$, split of risk§ 3.2 →
$\hat\beta=\dfrac{s_{xy}}{s_x^2}=\rho\dfrac{s_y}{s_x}$, $\ \hat a=\bar y-\hat\beta\bar x$, $\ R^2=\rho^2$, $\ \sigma_i^2=\beta_i^2\sigma_m^2+\sigma_\varepsilon^2$
Risk-adjusted ratios ($\text{DD}_\tau$ = downside deviation, TE = tracking error)§ 3.2 →
$\dfrac{\bar R-r_f}{\sigma}$, $\ \dfrac{\bar R-\tau}{\text{DD}_\tau}$, $\ \dfrac{\bar R-r_f}{\beta}$, $\ \alpha=\bar R-[r_f+\beta(\bar R_m-r_f)]$, $\ \text{IR}=\dfrac{\overline{R-B}}{\text{TE}}$
Annualising a Sharpe ratio; its standard error ($T$ years)§ 3.2 →
$S_{\text{ann}}\approx S_{\text{period}}\sqrt m$, $\ \operatorname{SE}(\hat S)\approx\sqrt{\dfrac{1+\hat S^2/2}{T}}$
Correlation in a one-factor market§ 3.2 →
$\rho_{ij}=\dfrac{\beta_i\beta_j\sigma_m^2}{\sigma_i\sigma_j}$, $\ \rho_{im}=\dfrac{\beta_i\sigma_m}{\sqrt{\beta_i^2\sigma_m^2+\sigma_{\varepsilon_i}^2}}$
Random walk with i.i.d. steps (mean $m$, SD $s$)§ 3.3 →
$E[S_n-S_0]=nm$, $\ \operatorname{SD}(S_n-S_0)=s\sqrt n$
Lognormal $V=e^{a+bZ}$, $Z\sim N(0,1)$, $b\gt0$§ 3.3 →
$P(V\le x)=\Phi\!\left(\tfrac{\log x-a}{b}\right)$, median $e^a$, mean $e^{a+b^2/2}$
GBM with drift $\mu$, volatility $\sigma$; log drift $\nu=\mu-\tfrac12\sigma^2$§ 3.3 →
$S(t)=S_0e^{\nu t+\sigma W(t)}$, $\ \log\tfrac{S(t)}{S_0}\sim N(\nu t,\sigma^2t)$, $\ E[S(t)]=S_0e^{\mu t}$
GBM: reaching a level $K$, loss probability, central band ($z=\Phi^{-1}(1-\alpha)$)§ 3.3 →
$P(S(t)\ge K)=\Phi\!\left(\tfrac{\log(S_0/K)+\nu t}{\sigma\sqrt t}\right)$, $\ P(\text{loss})=\Phi\!\left(-\tfrac{\nu\sqrt t}{\sigma}\right)$, band $S_0e^{\nu t\pm z\sigma\sqrt t}$
Monte Carlo estimate of a probability from $N$ paths§ 3.3 →
$\text{SE}(\hat p)=\sqrt{\hat p(1-\hat p)/N}$, $\ $95% CI $\hat p\pm1.96\,\text{SE}$
Exact GBM step and Box–Muller normals ($u_1,u_2$ uniform on $(0,1)$)§ 3.3 →
$S_{k+1}=S_ke^{\nu\Delta t+\sigma\sqrt{\Delta t}\,z}$, $\ z=\sqrt{-2\log u_1}\cos(2\pi u_2)$

Chapter 4 · Portfolio Mathematics

Two-asset portfolio (weight $w$ in asset 1)§ 4.1 →
$\mu_p=w\mu_1+(1-w)\mu_2$, $\ \sigma_p^2=w^2\sigma_1^2+(1-w)^2\sigma_2^2+2w(1-w)\rho\sigma_1\sigma_2$
$n$ assets: mean and variance ($\Sigma_{ij}=\rho_{ij}\sigma_i\sigma_j$)§ 4.1 →
$\mu_p=w^{\mathsf T}\mu$, $\ \sigma_p^2=w^{\mathsf T}\Sigma w$, $\ \operatorname{Cov}(w,v)=w^{\mathsf T}\Sigma v$
Risk contributions (they add up to $\sigma_p$)§ 4.1 →
$RC_i=\dfrac{w_i(\Sigma w)_i}{\sigma_p}=w_i\dfrac{\partial\sigma_p}{\partial w_i}$
Global minimum-variance portfolio ($\Sigma$ positive definite; short sales allowed)§ 4.1 →
$w=\dfrac{\Sigma^{-1}\mathbf 1}{\mathbf 1^{\mathsf T}\Sigma^{-1}\mathbf 1}$, $\ \sigma^2=\dfrac1{\mathbf 1^{\mathsf T}\Sigma^{-1}\mathbf 1}$; two assets: $w_1=\dfrac{\sigma_2^2-\sigma_{12}}{\sigma_1^2+\sigma_2^2-2\sigma_{12}}$
Minimum-variance frontier ($A=\mathbf 1^{\mathsf T}\Sigma^{-1}\mathbf 1$, $B=\mathbf 1^{\mathsf T}\Sigma^{-1}\mu$, $C=\mu^{\mathsf T}\Sigma^{-1}\mu$, $D=AC-B^2$; efficient for $m\ge B/A$)§ 4.1 →
$\sigma^2(m)=\dfrac{Am^2-2Bm+C}{D}$
Limit of diversification (equal weights; single-index model)§ 4.1 →
$\sigma_p^2=\dfrac{\overline{\sigma^2}}N+\Bigl(1-\dfrac1N\Bigr)\overline c\to\overline c$; $\ \sigma_i^2=\beta_i^2\sigma_m^2+s_i^2$
Capital allocation line (fraction $y$ in risky $P$)§ 4.2 →
$\mu_C=r_f+y(\mu_P-r_f)$, $\ \sigma_C=y\sigma_P$
Tangency portfolio (needs $r_f\lt B/A$) and the share in it§ 4.2 →
$w_T=\dfrac{\Sigma^{-1}(\mu-r_f\mathbf 1)}{\mathbf 1^{\mathsf T}\Sigma^{-1}(\mu-r_f\mathbf 1)}$, $\ y^\ast=\dfrac{\mu_T-r_f}{\lambda\sigma_T^2}$
CAPM / security market line and alpha ($\beta_i=\operatorname{Cov}(r_i,r_M)/\sigma_M^2$)§ 4.2 →
$\mu_i=r_f+\beta_i(\mu_M-r_f)$, $\ \alpha_i=\hat\mu_i-\bigl[r_f+\beta_i(\mu_M-r_f)\bigr]$
Portfolio beta (risk-free asset: $\beta=0$)§ 4.2 →
$\beta_p=\sum_iw_i\beta_i$
Weight drift and the rebalancing trade ($R_p=\sum w_iR_i$)§ 4.2 →
$w_i'=\dfrac{w_i(1+R_i)}{1+R_p}$, $\ $ buy $w_iV'-w_i(1+R_i)V$
Diversification return of a rebalanced long-only portfolio§ 4.2 →
$g_p-\sum w_ig_i\approx\tfrac12\Bigl(\sum w_i\sigma_i^2-\sigma_p^2\Bigr)\ge0$
Constrained portfolio problems§ 4.3 →
QP: $\min\ w^{\mathsf T}\Sigma w$ s.t. $\mathbf 1^{\mathsf T}w=1,\ l\le w\le u,\ Aw\le h$; $\ $ LP: $\max\ \mu^{\mathsf T}w$ s.t. linear limits (e.g. scenario loss $-s^{\mathsf T}w\le L$). Convex: every local minimum of the QP is global.
Optimality test, minimum variance with bounds§ 4.3 →
$(\Sigma w)_i=\kappa$ (free assets), $\ \ge\kappa$ (at lower bound), $\ \le\kappa$ (at upper bound)
Corner points and shadow prices (two variables)§ 4.3 →
Optimum at a corner; corner with binding normals $n_1,n_2$ is optimal if $p=a\,n_1+b\,n_2$, $a,b\ge0$; shadow prices $a$, $b$.
One goal: money needed today§ 4.3 →
$x^\ast=\dfrac{G}{\max_s\sum_a s_a(1+c_a)^T}$ (fill the highest planning return up to its cap)
Sensitivity of the optimal two-asset weight§ 4.3 →
$w^\ast=w_{\text{GMV}}+\dfrac{\mu_1-\mu_2}{\lambda V}$, $\ V=\sigma_1^2+\sigma_2^2-2\rho\sigma_1\sigma_2$; $\ \operatorname{sd}(\hat w^\ast)=\dfrac{1}{\lambda\sqrt{VT}}$
Risk parity and inverse volatility§ 4.3 →
Two assets: $w_1=\dfrac{\sigma_2}{\sigma_1+\sigma_2}$ (any $\rho$); $N$ assets, common $\rho\ge0$: $w_i\propto1/\sigma_i$

Chapter 5 · Valuing a Company

Free cash flow to the firm and to equity (tax rate $t$)§ 5.1 →
$\text{FCFF}=\text{EBIT}(1-t)+\text{D\&A}-\text{capex}-\Delta\text{NWC}$, $\ \text{FCFE}=\text{FCFF}-\text{int}(1-t)+\text{net borrowing}$
Cost of equity (CAPM, §4.2) and WACC (market-value weights)§ 5.1 →
$k_e=r_f+\beta(E[r_m]-r_f)$, $\ \text{WACC}=\dfrac{E}{D+E}k_e+\dfrac{D}{D+E}k_d(1-t)$
DCF value with Gordon terminal value (requires $g\lt k$)§ 5.1 →
$\text{EV}=\displaystyle\sum_{t=1}^{n}\frac{\text{FCFF}_t}{(1+k)^t}+\frac{TV_n}{(1+k)^n}$, $\ TV_n=\dfrac{\text{FCFF}_n(1+g)}{k-g}$, value/share $=\dfrac{\text{EV}-\text{net debt}}{\text{shares}}$
Gordon model, implied return, sustainable growth ($g\lt k_e$)§ 5.1 →
$P_0=\dfrac{D_1}{k_e-g}$, $\ k_e=\dfrac{D_1}{P_0}+g$, $\ g=b\times\text{ROE}$
Two-stage DDM ($g_1$ for $n$ years, then $g_2\lt k_e$)§ 5.1 →
$P_0=\dfrac{D_1}{k_e-g_1}\left[1-\left(\dfrac{1+g_1}{1+k_e}\right)^{n}\right]+\dfrac{D_n(1+g_2)}{(k_e-g_2)(1+k_e)^n}$
Sensitivity of $V=D_1/(k-g)$; margin of safety§ 5.1 →
$\dfrac{\Delta V}{V}\approx\dfrac{\Delta g-\Delta k}{k-g}$, $\ \text{MoS}=1-\dfrac{P}{V}$
EPS, P/E, earnings yield, PEG§ 5.2 →
$\text{EPS}=\dfrac{\text{profit}-\text{pref. div.}}{\text{shares}}$, $\ \text{P/E}=\dfrac{P}{\text{EPS}}$, $\ \text{PEG}=\dfrac{\text{P/E}}{100g}$
Justified multiples (constant growth $g\lt k$, constant ROE)§ 5.2 →
$\dfrac{P_0}{E_1}=\dfrac{1-g/\text{ROE}}{k-g}$ ($=1/k$ if ROE $=k$), $\ \dfrac{P_0}{B_0}=\dfrac{\text{ROE}-g}{k-g}$
Ratio identities (same-year figures)§ 5.2 →
$\text{P/B}=\text{ROE}\times\text{P/E}$, $\ \dfrac DP=\dfrac{\text{payout}}{\text{P/E}}$
Enterprise value and EV/EBITDA§ 5.2 →
$\text{EV}=\text{mkt cap}+\text{debt}-\text{cash}$, multiple $=\dfrac{\text{EV}}{\text{EBITDA}}$
DuPont decomposition (positive sales, assets, equity)§ 5.2 →
$\text{ROE}=\dfrac{\text{NI}}{\text{sales}}\cdot\dfrac{\text{sales}}{\text{assets}}\cdot\dfrac{\text{assets}}{\text{equity}}$, $\ \text{ROA}=\text{margin}\times\text{turnover}$
Return from EPS growth and re-rating over $n$ years§ 5.2 →
$\dfrac{P_n}{P_0}=(1+g)^n\dfrac{m_n}{m_0}$, $\ g_{\text{needed}}=\dfrac{1+r}{(m_n/m_0)^{1/n}}-1$

Chapter 6 · Derivatives on NSE: Futures and Options

Fair futures price (no arbitrage; continuous rates; dividend yield $q$ or dividends with present value $D$)§ 6.1 →
$F_0=S_0e^{(r-q)T}$, $\ F_0=(S_0-D)\,e^{rT}$, $\ F_0\approx S_0[1+(r-q)T]$
Basis, convergence and calendar spread§ 6.1 →
$b_t=F_t-S_t=S_t\left(e^{(r-q)(T-t)}-1\right)\to0$; $\ F^{(2)}=F^{(1)}e^{(r-q)(T_2-T_1)}$
Futures payoff, daily MTM and leverage (lot $Q$, margin fraction $m$)§ 6.1 →
long: $Q(S_T-F_0)=\sum_t Q(F_t-F_{t-1})$; $\ $ % change in margin $=\dfrac{\%\ \text{change in }F}{m}$
Index-futures hedge: contracts to sell, and to move beta from $\beta$ to $\beta^*$§ 6.1 →
$N^*=\dfrac{\beta V}{F_0Q}$, $\ N=\dfrac{(\beta^*-\beta)V}{F_0Q}$
Option payoffs at expiry and buyer's break-evens ($x^+=\max(x,0)$)§ 6.2 →
call $(S_T-K)^+$, BE $K+c$; $\ $ put $(K-S_T)^+$, BE $K-p$; $\ $ seller's profit $=-$buyer's
Standard strategies ($D$ = net debit, $C$ = net credit, wing width $w$)§ 6.2 →
bull call spread: max $K_2-K_1-D$, loss $D$, BE $K_1+D$; $\ $ straddle: BE $K\pm(c+p)$; $\ $ iron condor: max $C$, loss $w-C$
Put–call parity (European, same $K$ and $T$)§ 6.2 →
$c-p=S_0e^{-qT}-Ke^{-rT}=(F_0-K)e^{-rT}$
No-arbitrage bounds for European options§ 6.2 →
$\left(S_0e^{-qT}-Ke^{-rT}\right)^+\le c\le S_0e^{-qT}$, $\ \left(Ke^{-rT}-S_0e^{-qT}\right)^+\le p\le Ke^{-rT}$
One-step binomial model ($d\lt e^{r\Delta t}\lt u$): replication and risk-neutral price§ 6.3 →
$\Delta=\tfrac{V_u-V_d}{Su-Sd}$, $\ V=e^{-r\Delta t}\big[p^*V_u+(1-p^*)V_d\big]$, $\ p^*=\tfrac{e^{r\Delta t}-d}{u-d}$
$n$-step CRR tree, $\Delta t=T/n$ (dividend yield $q$: use $e^{(r-q)\Delta t}$ in $p^*$)§ 6.3 →
$u=e^{\sigma\sqrt{\Delta t}}=1/d$, $\ V_0=e^{-rT}\sum_{j=0}^{n}\binom nj(p^*)^j(1-p^*)^{n-j}f\big(Su^jd^{\,n-j}\big)$
Black–Scholes (GBM, constant $\sigma$, $r$, $q$; European; $N$ = standard normal CDF)§ 6.3 →
$C=Se^{-qT}N(d_1)-Ke^{-rT}N(d_2)$, $\ P=Ke^{-rT}N(-d_2)-Se^{-qT}N(-d_1)$, $\ d_1=\tfrac{\log(S/K)+(r-q+\sigma^2/2)T}{\sigma\sqrt T}$, $\ d_2=d_1-\sigma\sqrt T$
Known cash dividend $D$ at $t_D\lt T$ (escrowed-dividend method)§ 6.3 →
use $S^*=S-De^{-rt_D}$ in place of $S$, with $q=0$
Bounds and early exercise (no dividends, $r\gt0$)§ 6.3 →
$C\ge S-Ke^{-rT}\gt S-K$, so $C_{\text{Am}}=C_{\text{Eu}}$; $\ P_{\text{Am}}\ge P_{\text{Eu}}$
Black–Scholes delta, gamma, vega ($\varphi$ = standard normal density)§ 6.4 →
$\Delta_C=e^{-qT}N(d_1)$, $\ \Delta_P=\Delta_C-e^{-qT}$, $\ \Gamma=\tfrac{e^{-qT}\varphi(d_1)}{S\sigma\sqrt T}$, $\ \mathcal V=Se^{-qT}\varphi(d_1)\sqrt T$
Call theta (per year; ÷365 per day) and rho (per unit; ÷100 per 1%)§ 6.4 →
$\Theta_C=-\tfrac{Se^{-qT}\varphi(d_1)\sigma}{2\sqrt T}-rKe^{-rT}N(d_2)+qSe^{-qT}N(d_1)$, $\ \rho_C=KTe^{-rT}N(d_2)$
Greek P&L and the theta–gamma trade-off (delta-hedged, small $r$, $q$)§ 6.4 →
$\delta V\approx\Delta\,\delta S+\tfrac12\Gamma(\delta S)^2+\Theta\,\delta t+\mathcal V\,\delta\sigma$; $\ $hedged P&L $\approx\tfrac12\Gamma S^2\big[(\delta S/S)^2-\sigma^2\delta t\big]$
At-the-money(-forward) rules of thumb§ 6.4 →
$C\approx P\approx0.4S\sigma\sqrt T$, $\ \Gamma\approx\tfrac{0.4}{S\sigma\sqrt T}$, $\ \Theta\approx-\tfrac{0.2S\sigma}{\sqrt T}$
Implied volatility by Newton's method§ 6.4 →
$\sigma_{k+1}=\sigma_k-\dfrac{V_{\text{BS}}(\sigma_k)-V_{\text{mkt}}}{\mathcal V(\sigma_k)}$
India VIX reading $v$ → 1-SD move over $h$ calendar days§ 6.4 →
$\pm v\%\sqrt{h/365}$; $\ $per trading day $\approx v/\sqrt{252}$ %

Chapter 7 · The Mathematics of Trading

SMA and EMA ($n$-day EMA: $\alpha=\tfrac{2}{n+1}$)§ 7.1 →
$\text{SMA}_n(t)=\tfrac1n\sum_{k=0}^{n-1}P_{t-k}$, $\ \text{EMA}_t=\alpha P_t+(1-\alpha)\text{EMA}_{t-1}=\sum_k\alpha(1-\alpha)^kP_{t-k}$
Lag and noise of a weighted MA $\sum_kw_kP_{t-k}$ ($w_k\ge0$, $\sum w_k=1$)§ 7.1 →
lag $L=\sum_kkw_k$ (SMA $\tfrac{n-1}{2}$, EMA $\tfrac{1-\alpha}{\alpha}$); on $P_t=a+bt$: $M_t=P_t-bL$; noise variance $\sigma^2\sum_kw_k^2$ ($\sigma^2/n$)
Crossovers and MACD on a trend of slope $b$§ 7.1 →
$F_t-S_t=b(L_S-L_F)$; $\ \text{MACD}=\text{EMA}^{(12)}-\text{EMA}^{(26)}\to7b$
RSI (average gain AG, average loss AL)§ 7.1 →
$\text{RSI}=100-\dfrac{100}{1+\text{AG}/\text{AL}}=100\,\dfrac{\text{AG}}{\text{AG}+\text{AL}}$
Bollinger bands ($n=20$, $k=2$; $s_t$ = SD of last $n$ closes)§ 7.1 →
$M_t\pm ks_t$, $\ \%b=\dfrac{P_t-(M_t-ks_t)}{2ks_t}$, bandwidth $\dfrac{2ks_t}{M_t}$
Testing a signal ($N$ signals; no edge on a random walk)§ 7.1 →
$t=\dfrac{\bar R-m_0}{s/\sqrt N}$, needed $N\approx(2s/\delta)^2$; $\ P(\text{some of }K\text{ tests pass by luck})=1-(1-a)^K$
Position size (equity $W$, risk fraction $f$, entry $E_0$, stop $S$)§ 7.2 →
$Q=\left\lfloor\dfrac{fW}{|E_0-S|}\right\rfloor$; after $k$ losses $W(1-f)^k$
Chance noise touches a stop a fraction $d$ away within $T$ days (driftless)§ 7.2 →
$2\,\Phi\!\left(-\dfrac{d}{\sigma\sqrt T}\right)$
Expectancy (win rate $p$, payoff ratio $b$, cost $c$ in R)§ 7.2 →
$E_R=pb-(1-p)-c$, $\ $break-even $p^*=\dfrac{1+c}{1+b}$, $\ $SD per trade $(1+b)\sqrt{p(1-p)}$
Kelly criterion ($E_R=pb-q\gt0$)§ 7.2 →
$g(f)=p\log(1+bf)+q\log(1-f)$, $\ f^*=p-\dfrac qb$; continuous: $f^*=\dfrac{\mu}{\sigma^2}$
Fractional Kelly $\lambda f^*$ (continuous approximation, $0\lt\lambda\lt2$)§ 7.2 →
growth $\lambda(2-\lambda)\,g^*$, $\ P(\text{ever reach }xW_0)=x^{2/\lambda-1}$
Gambler's ruin ($p\gt\tfrac12$, $a$ units) and losing streaks§ 7.2 →
$P(\text{ruin})=(q/p)^a$; $\ P(\text{streak}\ge k\text{ in }N)\approx1-e^{-q^k[1+(N-k)p]}$; longest $\approx\dfrac{\log(Np)}{\log(1/q)}$
Strategy return and equity curve (signal $s_{t-1}$ decided at the previous close)§ 7.3 →
$R_t=s_{t-1}r_t+(1-s_{t-1})r_f-c\,|s_t-s_{t-1}|$, $\ E_t=E_0\prod_{k\le t}(1+R_k)$
Backtest scorecard ($N$ daily returns, 252 days a year)§ 7.3 →
$\text{CAGR}=\left(\tfrac{E_N}{E_0}\right)^{252/N}-1$, $\ S=\dfrac{\bar R-r_f}{s}\sqrt{252}$
Cost drag ($n$ round trips a year at cost $c$; benchmark growth $b$)§ 7.3 →
$1+g_{\text{net}}=(1+g)(1-c)^n$, $\ c^*=1-\left(\tfrac{1+b}{1+g}\right)^{1/n}$
Execution benchmarks (buy order)§ 7.3 →
$\text{VWAP}=\dfrac{\sum p_iq_i}{\sum q_i}$, $\ \text{IS}=\dfrac{\bar p_{\text{fill}}-p_{\text{dec}}}{p_{\text{dec}}}$
Best of $M$ no-edge strategies over $T$ years§ 7.3 →
$P(\text{some }p\lt\alpha)=1-(1-\alpha)^M$, $\ E[\max\hat S]\approx e_M/\sqrt T$; Bonferroni level $\alpha/M$
t-test for an edge (independent returns, $T$ years)§ 7.3 →
$t=\dfrac{\bar d}{s_d/\sqrt n}=\hat S\sqrt T$, $\ T\approx\left(\tfrac{t^*}{S}\right)^2$
Value at Risk (loss $L$, confidence $\alpha$)§ 7.4 →
$\text{VaR}_\alpha=\min\{\ell:P(L\gt\ell)\le1-\alpha\}$
Normal VaR ($z_{0.95}=1.645$, $z_{0.99}=2.326$; independent days)§ 7.4 →
$\text{VaR}_\alpha=(z_\alpha\sigma-\mu)V$, $\ \text{VaR}(h)=\sqrt h\,\text{VaR}(1)$ ($\mu=0$)
Portfolio VaR ($a_i=V_i\sigma_i$, correlation matrix $C$)§ 7.4 →
$\text{VaR}_P=z_\alpha\sqrt{\mathbf a^{\mathsf T}C\mathbf a}$; two assets: $\sqrt{\text{VaR}_1^2+\text{VaR}_2^2+2\rho\,\text{VaR}_1\text{VaR}_2}$
Historical / Monte Carlo VaR from $N$ scenarios§ 7.4 →
$k=\lfloor N(1-\alpha)\rfloor+1$: VaR = $k$-th worst loss, ES = mean of the $k$ worst
Expected shortfall (normal, zero mean)§ 7.4 →
$\text{ES}_\alpha=E[L\mid L\ge\text{VaR}_\alpha]=\dfrac{\varphi(z_\alpha)}{1-\alpha}\sigma_P$ (2.665σ at 99%)
VaR backtest: exceptions in $n$ days§ 7.4 →
$X\sim B(n,1-\alpha)$, $\ E[X]=n(1-\alpha)$; 250 days at 99%: mean 2.5

Chapter 8 · Planning a Financial Life

Goal in future rupees and the flat SIP that funds it (start of month, $i=(1+R)^{1/12}-1$, $n=12T$)§ 8.1 →
$G_{\text{net}}=C_0(1+\pi_g)^T-S(1+R)^T$, $\ A=\dfrac{G_{\text{net}}}{\frac{(1+i)^n-1}{i}(1+i)}$
Retirement corpus factor (withdrawals at the start of each year rising with inflation; real return $r=\frac{1+R}{1+\pi}-1$)§ 8.1 →
$\dfrac{C}{E_R}=F=(1+r)\,\dfrac{1-(1+r)^{-N}}{r}$, $\ w=\dfrac1F$; for ever: $w=\dfrac{r}{1+r}$
Final balance with flows $F_k$ at the start of year $k$ (order of returns matters only through the flows)§ 8.1 →
$B_N=B_0\displaystyle\prod_{j=1}^{N}g_j+\sum_{k=1}^{N}F_k\prod_{j=k}^{N}g_j$
Plan success probability from $K$ successes in $M$ simulated paths§ 8.1 →
$\hat p=\dfrac KM$, $\ \text{SE}=\sqrt{\dfrac{\hat p(1-\hat p)}{M}}$
Sustainable SWP for $n$ months at monthly rate $i$ (flat; or rising by $q$ a month, $x=q/(1+i)$)§ 8.1 →
$W=\dfrac{Ci}{1-(1+i)^{-n}}$, $\ W_1=C(1+i)\dfrac{1-x}{1-x^n}$
Emergency fund (monthly job-finding probability $q$) and human life value ($d\ne g$)§ 8.1 →
$P(D\gt m)=(1-q)^m$, $\ \text{HLV}=I\,\dfrac{1-\left(\frac{1+g}{1+d}\right)^N}{d-g}$
Share of final wealth lost to a yearly cost $c$ at gross return $R$ over $T$ years§ 8.2 →
$1-\left(\dfrac{1+R-c}{1+R}\right)^T\approx1-e^{-cT/(1+R)}$
Turnover drag: $m$ round trips a year at cost $k$ each§ 8.2 →
$1-(1-k)^m\approx mk$
₹1 after $T$ years: taxed every year at $t$, or only on sale at $\tau$ (same rate: deferral wins for $T\ge2$)§ 8.2 →
$\big(1+R(1-t)\big)^T$ vs $\ 1+\big((1+R)^T-1\big)(1-\tau)$
Probability a look every $\Delta$ years shows a loss (GBM, $\nu=\mu-\sigma^2/2$)§ 8.2 →
$\Phi\!\left(-\dfrac{\nu\sqrt\Delta}{\sigma}\right)$
Skill after $k$ straight wins (base rate $b$, win probabilities $p_s\gt p_u$); lucky streaks among $N$ funds§ 8.2 →
$\dfrac{b\,p_s^k}{b\,p_s^k+(1-b)\,p_u^k}$, $\ E[\text{top-quartile }k\text{ years}]=\dfrac{N}{4^k}$
Ponzi scheme promising $r$ a month with constant new money: payouts exceed inflows, cash runs out§ 8.2 →
$t\gt\dfrac1r$, $\ t\gt\dfrac2r-1$; growing inflow survives only if $g\ge r$