Model & Numerical Controls
Fourier-Cosine Series Parameters
COS Interval & Cumulants
COS Spectral Valuation Spectrum & Greeks
Expansion Terms $N$ vs. Truncation Factor $L$
Maximum Absolute Error (MAE) across strikes against the analytical Black-Scholes benchmark ($S_0 = 100, T = 1$).
| Factor $L$ \ Terms $N$ | 32 | 64 | 128 | 256 | 512 |
|---|
Maturity $T$ vs. Volatility $\sigma$
At-the-Money European Call Option Value ($S_0 = 100, K = 100$) across term structure and volatility surfaces.
| Vol $\sigma$ \ Expiry $T$ | 0.25y | 0.50y | 1.00y | 2.00y | 3.00y |
|---|
Mathematical Derivations: Fang-Oosterlee (2008) COS Method
1. Fourier-Cosine Series Expansion of Risk-Neutral Density
Let $y \equiv \ln(S_T / S_0)$ be the log-asset return. For a truncated interval $[a, b] \subset \mathbb{R}$, any smooth probability density function $f(y)$ can be expanded in terms of a Fourier-cosine series:
where $\sum'$ indicates that the prime summation has its first term ($k=0$) multiplied by $1/2$. The series coefficients $A_k$ are determined directly from the characteristic function $\phi(u) = \mathbb{E}[e^{i u y}]$:
No numerical integration or fast Fourier transform is needed to compute $A_k$; they are directly sampled from the analytical characteristic function!
2. Analytical Closed-Form Payoff Coefficients $V_k$
The European call option price is $V(S_0, K, T) = e^{-rT} \int_a^b (S_0 e^y - K)^+ f(y) \, dy$. Substituting the cosine expansion of $f(y)$ yields:
With log-strike cutoff $x = \ln(K / S_0)$, the call payoff coefficients $V_k^{\text{call}}$ integrate analytically:
where $\chi_k(c, d) = \int_c^d e^y \cos(\omega_k(y-a)) dy$ and $\psi_k(c, d) = \int_c^d \cos(\omega_k(y-a)) dy$ have exact closed-form trigonometric solutions.
3. Cumulant-Based Integration Domain $[a, b]$
To prevent both truncation error (cutting off density tails) and aliasing error (too wide domain requiring excessive $N$), the bounds $[a, b]$ are calibrated to the log-asset distribution cumulants $c_1, c_2, c_4$:
By choosing $L \in [8, 12]$ (default $L=10$), the tail probability outside $[a, b]$ is bounded by:
4. Exact Analytical Greeks via Fourier Differentiation
Unlike finite-difference bump-and-reprice methods that suffer from round-off error, the COS method yields analytical Greeks directly:
- Delta ($\Delta$): $$\Delta = e^{-rT} {\sum_{k=0}^{N-1}}' A_k \cdot \chi_k(x, b)$$
- Gamma ($\Gamma$): Evaluating the cosine density expansion directly at $x = \ln(K / S_0)$: $$\Gamma = e^{-rT} \frac{f(x)}{S_0 K} = e^{-rT} \frac{1}{S_0 K} \frac{2}{b - a} {\sum_{k=0}^{N-1}}' A_k \cos\left( k\pi \frac{x - a}{b - a} \right)$$
Because $f(x)$ is computed from the same precalculated coefficients $A_k$, Gamma is evaluated essentially for free with machine precision!
Interactive Mastery Assessment: Fang-Oosterlee COS Method
Frequently Asked Questions
Related Quantitative Finance & Fourier Valuation Labs
Carr-Madan FFT Option Pricing Lab
Invert characteristic functions across full strike surfaces simultaneously in $\mathcal{O}(N \log N)$ operations.
Carr-Madan Option Replication Lab
Synthesize generalized nonlinear payoffs and variance swaps through static option continuum portfolios.
Heston Stochastic Volatility Lab
Model mean-reverting CIR variance processes, leverage correlation skews, and Feller boundary condition dynamics.
Longstaff-Schwartz LSM Lab
Value American options via backward induction, dynamic early exercise frontiers, and OLS regression.