Mathematical Finance

Mathematical finance, also known as quantitative finance, is a field of applied mathematics concerned with the financial markets. It uses mathematical models and computational techniques to analyze financial markets, derive pricing models, manage risk, and optimize portfolios. Below are some critical areas covered under the umbrella of mathematical finance:

1. Financial Modeling

1.1 Black-Scholes Model

The Black-Scholes model is one of the most famous mathematical models for pricing options and other financial derivatives. It provides a theoretical estimate of the price of European-style options and is based on several assumptions including constant volatility and the log-normal distribution of stock prices.

The Black-Scholes Formula

C=S_0\Phi(d_1)-Ke^{-r\tau}\Phi(d_2),\qquad \tau=T-t
European call without dividends StockSharp JS-Charts

Loading calculator…

Where:

1.2 Binomial Option Pricing Model

The binomial option pricing model is another discrete-time model for pricing options. Unlike the Black-Scholes model, it uses a simple tree of possible future stock prices constructed iteratively. This model is particularly useful for American options where the holder has the right to exercise the option at any time before expiration.

The Binomial Formula

C=e^{-r\Delta t}\,[pC_u+(1-p)C_d],\qquad p=\frac{e^{r\Delta t}-d}{u-d}
Binomial prices for options without dividends StockSharp JS-Charts

Loading calculator…

Where:

2. Risk Management

2.1 Value at Risk (VaR)

For this parametric example L_T is minus the sum of T independent equal-period returns. With normal returns of mean \mu and standard deviation \sigma, the loss quantile at confidence level \alpha is

\operatorname{VaR}_\alpha(L_T)=-T\mu+\sqrt T\,\sigma\Phi^{-1}(\alpha)
VaR and expected shortfall for normal returns StockSharp JS-Charts

The model sums independent normally distributed returns over the selected number of equal periods. Enter mean and standard deviation per period. Losses are expressed in percent of the position value.

Loading calculator…

2.2 Conditional Value at Risk (CVaR)

Expected shortfall averages the worst 1-\alpha fraction of losses. For a discrete loss distribution, the calculation may include part of the probability at the VaR threshold.

CVaR Formula

\operatorname{ES}_{\alpha}(L)=\frac{1}{1-\alpha}\int_{\alpha}^1 \operatorname{VaR}_{u}(L)\,du
BTC/USD Daily candles Kraken
StockSharp JS-Charts

Each point uses a moving window of daily BTC/USD losses. VaR is the empirical loss quantile. Expected shortfall averages the worst outcomes with fractional weight at the tail boundary when needed.

Loading candle history…

Here L is the portfolio loss and \operatorname{VaR}_u(L) is its quantile of order u.

3. Portfolio Optimization

3.1 Mean-Variance Optimization

Introduced by Harry Markowitz in 1952, Mean-Variance Optimization is a quantitative tool used to construct portfolios that maximize return for a given level of risk. The efficient frontier represents the set of optimal portfolios.

Tangency portfolio example

The illustration finds a fully invested long-only portfolio that maximizes the Sharpe ratio. Let \mu be expected returns, \Sigma their covariance matrix, and r_f the risk-free rate for the same period.

\max_{w_i\ge0,\;\sum_i w_i=1}\frac{w^\top\mu-r_f}{\sqrt{w^\top\Sigma w}}
Portfolio with the highest Sharpe ratio StockSharp JS-Charts

Enter the returns and a positive definite covariance matrix for 2–6 assets, all for the same period. The weights are nonnegative and sum to one. The chart varies the risk-free rate across the range of entered returns.

Loading calculator…

3.2 Capital Asset Pricing Model (CAPM)

CAPM is a model used to determine the theoretical expected return on an asset based on its systematic risk. It is widely used to price risky securities and to calculate the cost of capital.

CAPM Formula

E[R_i] = R_f + \beta_i (E[R_m] - R_f)
Expected return under CAPM StockSharp JS-Charts

Loading calculator…

Where:

4. Time Series Analysis

4.1 Autoregressive Integrated Moving Average (ARIMA)

ARIMA models are used to understand and predict future points in a time series. They are particularly suited to datasets with trends and are characterized by parameters p, d, and q.

ARIMA Model

\mathrm{ARIMA}(p,d,q)
BTC/USD Daily candles Kraken
StockSharp JS-Charts

Each forecast uses earlier daily closes and errors. Enter up to eight coefficients in each field, one per line. An empty field removes that lag component. AR coefficients must be stationary and MA coefficients invertible. Initial errors are zero at the start of each continuous segment.

Loading candle history…

Where:

4.2 Generalized Autoregressive Conditional Heteroskedasticity (GARCH)

GARCH models are used to estimate the volatility of returns in financial markets. The model captures the time-varying volatility by including past variances and past errors.

GARCH Model

\sigma_t^2 = \alpha_0 + \alpha_1\cdot \epsilon_{t-1}^2 + \beta_1\cdot \sigma_{t-1}^2
BTC/USD Daily candles Kraken
StockSharp JS-Charts

The first 30 daily log returns initialize the filter. Each subsequent forecast uses earlier returns. Enter up to ten coefficients, one per line, starting with lag 1. Where present, the asymmetry column needs one entry per shock coefficient.

Loading candle history…

Where:

5. Stochastic Calculus

5.1 Itô’s Lemma

Let the process satisfy the stochastic differential equation below. For a function with one time derivative and two spatial derivatives, Itô’s formula gives its differential.

dX_t=a(X_t,t)\,dt+b(X_t,t)\,dW_t
df(X_t,t)=\left(f_t+a f_x+\tfrac12 b^2 f_{xx}\right)dt+b f_x\,dW_t

Taking f(x)=\ln x for the positive price process S_t gives the following log-price equation. The term -\sigma^2/2 changes the drift of the logarithm.

d\ln S_t=(\mu-\tfrac12\sigma^2)\,dt+\sigma\,dW_t
Exact, Euler and Milstein paths for geometric Brownian motion StockSharp JS-Charts

The three solutions use the same Brownian increments. With the seed and horizon fixed, changing the step count selects a coarser or finer grid on the same path.

Loading calculator…

5.2 Martingales

A martingale has conditional expected future value equal to its current value. Brownian motion in the chart is one example, since its future increments are independent of the past and have zero mean.

\mathbb E[W_{t+h}\mid\mathcal F_t]=W_t,\qquad h\ge0

6. Computational Methods

6.1 Monte Carlo Simulation

Monte Carlo Simulation is a computational algorithm that uses repeated random sampling to obtain numerical results. It is widely used in finance to model the probability of different outcomes.

Monte Carlo Steps:

  1. Define a domain of possible inputs
  2. Generate random inputs
  3. Perform a deterministic computation on the inputs
  4. Aggregate the results

6.2 Finite Difference Methods

Finite difference methods are numerical techniques for solving differential equations by approximating them with difference equations. They are often used to solve the Black-Scholes PDE.

Finite Difference Scheme:

Companies and Institutions Specializing in Mathematical Finance

6.1 Quantitative Brokers Quantitative Brokers provides advanced algorithms and analytics for agency execution and trading. Their methodologies are deeply rooted in mathematical finance and computational techniques.

6.2 WorldQuant WorldQuant is a quantitative investment management firm that uses sophisticated mathematical models to develop trading strategies and manage portfolios.

6.3 Jane Street Jane Street is a trading firm and liquidity provider with a focus on using advanced quantitative methods for trading in global financial markets.

6.4 Renaissance Technologies Renaissance Technologies is a highly renowned quantitative investment firm known for its Medallion Fund, which utilizes sophisticated mathematical models for trading strategies.

6.5 Two Sigma Two Sigma is a top-tier quantitative hedge fund that leverages data science, machine learning, and applied mathematics to devise investment strategies.

Conclusion

Mathematical finance is an extensive and complex field that incorporates various mathematical and computational techniques to address problems in financial markets, such as pricing, risk management, and portfolio optimization. It continues to evolve, driven by advances in computational power and the availability of extensive data.