Fourier Series and Transforms
Motivation: why this matters in quant finance
The Fourier transform is the single most practically important "advanced" mathematical tool for working quants beyond basic calculus and probability. Its role in finance:
-
Characteristic function pricing. Many stochastic volatility and jump models (Heston, variance-gamma, CGMY) do not have closed-form densities, but they
do have closed-form characteristic functions. The
option price is recovered by an inverse Fourier transform. This is the standard calibration method for stochastic vol models.
-
FFT-based option pricing (Carr-Madan). The Fast Fourier Transform (FFT) computes option prices across an entire grid of strikes simultaneously, turning what would be thousands of separate numerical integrations into a single
O(NlogN) computation. This makes real-time calibration of vol surfaces feasible.
-
Spectral analysis of time series. Fourier analysis decomposes a signal into frequency components, detecting periodicity, seasonality, and cycles in financial data.
Fourier series
Definition
A periodic function f(x) with period 2L can be represented as:
f(x)=2a0+n=1∑∞[ancosLnπx+bnsinLnπx]
where the Fourier coefficients are:
an=L1∫−LLf(x)cosLnπxdx,bn=L1∫−LLf(x)sinLnπxdx
Equivalently, in complex exponential form:
f(x)=n=−∞∑∞cneinπx/L,cn=2L1∫−LLf(x)e−inπx/Ldx
The Fourier series decomposes a function into a sum of sinusoidal components at different frequencies. Unlike
Taylor series (which approximate locally around a point), Fourier series approximate globally over an entire period.
Convergence
If
f is piecewise smooth, the Fourier series converges to
f(x) at every point where
f is
continuous, and to
21[f(x−)+f(x+)] at jump discontinuities.
Parseval's theorem: 2L1∫−LL∣f(x)∣2dx=∑n=−∞∞∣cn∣2. The "energy" of the signal equals the sum of energies in each frequency component.
The Fourier transform
Definition
For a non-periodic function
f:R→R (or
C), the
Fourier transform is:
f^(ξ)=F{f}(ξ)=∫−∞∞f(x)e−2πiξxdx
and the
inverse Fourier transform recovers
f:
f(x)=∫−∞∞f^(ξ)e2πiξxdξ
(Convention varies by field; quant finance typically uses the convention f^(ξ)=∫f(x)eiξxdx with 1/(2π) in the inverse. The substance is identical.)
The Fourier transform extends Fourier series from periodic to non-periodic functions, replacing the discrete sum ∑cneinπx/L with a continuous integral ∫f^(ξ)e2πiξxdξ.
Key properties
| Property | Time domain | Frequency domain |
|---|
| Linearity | af+bg | af^+bg^ |
| Shifting | f(x−a) | e−2πiaξf^(ξ) |
| Scaling | f(ax) | $\frac{1}{ |
| Derivative | f′(x) | 2πiξf^(ξ) |
| Convolution | (f∗g)(x) | f^(ξ)⋅g^(ξ) |
The
convolution theorem is crucial: convolution in the time/space domain becomes multiplication in the frequency domain. Since the density of a sum of independent
random variables is the convolution of their densities, the Fourier transform of the sum's density is the
product of the individual Fourier transforms — this is why characteristic functions multiply for independent sums.
The characteristic function
Definition
The
characteristic function of a random variable
X is:
φX(t)=E[eitX]=∫−∞∞eitxfX(x)dx
This is the Fourier transform of the density
fX (up to sign convention). Unlike the
MGF, the characteristic function
always exists because
∣eitx∣=1 for real
t and
x, so the integral converges for any distribution.
Key properties
- φX(0)=1 always.
- φX(−t)=φX(t) (conjugate symmetry).
- Moments: E[Xn]=in1φX(n)(0) (when they exist).
- Independence: if X,Y are independent, φX+Y(t)=φX(t)⋅φY(t).
Key characteristic functions
| Distribution | φX(t) |
|---|
| N(μ,σ2) | eiμt−σ2t2/2 |
| Poisson(λ) | eλ(eit−1) |
| Exponential(λ) | λ/(λ−it) |
| Heston (log-price) | Closed form in terms of t, vol-of-vol, correlation, mean reversion |
The Heston characteristic function is the key to the Heston model's practical utility: although the density has no closed form, the characteristic function does, enabling Fourier-based pricing.
Fourier pricing methods
The Gil-Pelaez inversion
The CDF of X can be recovered from the characteristic function:
FX(x)=21−π1∫0∞Re[ite−itxφX(t)]dt
This expresses the CDF (and hence tail probabilities) as a single one-dimensional integral, even when the density has no closed form.
The Carr-Madan formula
For a European call with strike K=ek (log-strike k), the price is:
C(k)=πe−αk∫0∞e−ivkψ(v)dv
where ψ(v) is a modified characteristic function incorporating the risk-free rate, dampening parameter α, and the characteristic function of the log-price.
The key insight: this integral has the form of an inverse Fourier transform, so it can be evaluated using the
Fast Fourier Transform (FFT), which computes
N values simultaneously in
O(NlogN) operations. Instead of computing one option price per numerical integration, you get prices for an entire grid of
N strikes in a single FFT call.
Practical impact: Calibrating a stochastic vol model (e.g., Heston) to an implied vol surface with 50–100 strikes and 5–10 maturities requires evaluating hundreds of option prices. With Carr-Madan + FFT, this takes milliseconds instead of seconds — fast enough for real-time calibration on a trading desk.
The COS method
An alternative Fourier method that expands the density in a cosine series:
f(x)≈k=0∑N−1Akcos(kπb−ax−a)
where the coefficients Ak are computed from the characteristic function. The COS method is often faster and more accurate than Carr-Madan for individual option prices and is particularly efficient for early-exercise (American/Bermudan) options via backward induction in the Fourier domain.
The Discrete Fourier Transform (DFT) and FFT
DFT
For a sequence {x0,x1,…,xN−1}:
Xk=n=0∑N−1xne−2πikn/N,k=0,1,…,N−1
This is a discrete approximation to the continuous Fourier transform. The inverse DFT recovers {xn} from {Xk}.
FFT
The
Fast Fourier Transform (Cooley-Tukey algorithm) computes the DFT in
O(NlogN) operations instead of
O(N2). For
N=4096 (a typical grid size in Carr-Madan), this is a speedup of roughly 300×.
In quant finance, the FFT is used in Carr-Madan pricing, COS method pricing, spectral analysis of return time series, and fast convolution for loss distribution aggregation in credit risk.
Examples and applications
Example 1: Heston model calibration
The Heston model has parameters {v0,κ,θ,ξ,ρ} (initial variance, mean reversion speed, long-run variance, vol-of-vol, correlation). Calibration minimises:
i∑(Cmodel(Ki,Ti;params)−Cmarket(Ki,Ti))2
Each Cmodel is computed via Carr-Madan (FFT) or COS method using the Heston characteristic function. The optimiser calls this pricing routine hundreds of times during calibration. Without Fourier methods, this would be computationally intractable.
Example 2: recovering the density from the characteristic function
Given the characteristic function φ(t) of a variance-gamma process, the density is:
f(x)=2π1∫−∞∞e−itxφ(t)dt
This
improper integral is computed numerically (truncating at
∣t∣=Tmax and discretising). The result gives the full density, from which you can compute any option price, risk measure, or probability.
Example 3: why characteristic functions multiply
If X and Y are independent with log-prices x=lnS1, y=lnS2, then:
φX+Y(t)=E[eit(X+Y)]=E[eitX]E[eitY]=φX(t)φY(t)
In the Fourier domain, adding independent random variables is just multiplying their characteristic functions. This is the reason Fourier methods are natural for models built from sums of independent components (compound Poisson,
Lévy processes, variance-gamma).
Common confusions and pitfalls
"The characteristic function is just the MGF with it instead of t." Structurally yes (
φ(t)=M(it)), but the crucial difference is that
∣eitx∣=1 while
∣etx∣ can be infinite. The CF always exists; the MGF may not. For heavy-tailed models (Student's
t, stable distributions), you must use the CF.
"Fourier methods are only for European options." The COS method extends to early-exercise options via backward induction in the Fourier domain. Barrier options, Bermudans, and some path-dependent options can also be priced using Fourier techniques with appropriate modifications.
"The FFT gives exact prices." The FFT discretises and truncates the Fourier integral, introducing truncation error and aliasing. The dampening parameter
α in Carr-Madan must be chosen carefully — too small and the integrand decays slowly; too large and numerical precision suffers.
Where this goes next
Fourier methods connect to:
- Power Series: The characteristic function is the complex analogue of the MGF, which is a power series. When the MGF exists, φ(t)=M(it).
- Taylor Series: Small-t expansion of the CF recovers moments; the COS method is a cosine-series (Fourier) expansion of the density.
- Numerical Integration: Fourier pricing reduces to evaluating a one-dimensional integral, computed by quadrature or FFT.
- Change of Variables: The Fourier transform is a change of representation from the "price domain" to the "frequency domain."
- Normal Distribution: The Gaussian CF eiμt−σ2t2/2 is the simplest non-trivial example and the building block for many models.
- Asymptotic Expansions: When the Fourier integral cannot be computed exactly, saddle-point and stationary-phase approximations provide asymptotic results.
References
- Stewart, J. (2008). Single Variable Calculus: Early Transcendentals (6th ed.). Thomson Brooks/Cole. The uploaded single-variable resource does not substantially cover Fourier analysis; this note should be grounded in a dedicated Fourier/analysis source when one is added.