Research

The math behind RiskAlgo

Every price, Greek, and probability figure the app shows you comes from the same place: the Black-Scholes model. Here's what's actually happening under the hood.

Black-Scholes pricing

The Black-Scholes model estimates a European option's fair value from five inputs: the underlying's current price, the strike, time to expiration, volatility, and the risk-free rate. For a call and a put:

Call price

\[ C = S_0 N(d_1) - K e^{-rT} N(d_2) \]

Put price

\[ P = K e^{-rT} N(-d_2) - S_0 N(-d_1) \]

Where \(d_1\) and \(d_2\) fold volatility and time together into a standardized measure of how far the strike sits from where the model expects the price to land:

\[ d_1 = \frac{\ln(S_0 / K) + (r + \sigma^2/2)T}{\sigma\sqrt{T}} \qquad d_2 = d_1 - \sigma\sqrt{T} \]

\(N(x)\) is the cumulative standard normal distribution — the probability that a standard normal random variable falls below \(x\). \(S_0\) is the current spot price, \(K\) the strike, \(T\) time to expiration in years, \(\sigma\) annualized volatility, and \(r\) the risk-free rate.

The Greeks

The Greeks are the sensitivities of that price to each input — how much the option's value moves if one thing changes and everything else holds still. RiskAlgo computes all of these directly from the same Black-Scholes formula above, for every leg of every strategy.

Δ Delta

How much the option's price moves for a $1 move in the underlying. Also a rough estimate of the option's probability of expiring in-the-money.

Call

\[ \Delta_{call} = N(d_1) \]

Put

\[ \Delta_{put} = N(d_1) - 1 \]

Γ Gamma

How fast delta itself changes as the underlying moves — the option's convexity. Same formula for calls and puts.

\[ \Gamma = \frac{\varphi(d_1)}{S_0 \, \sigma \sqrt{T}} \]

Θ Theta

Time decay. The formula below gives Theta on an annualized basis — divide by 365 to get the more commonly quoted "value lost per calendar day," which is what RiskAlgo displays in the app.

Call

\[ \Theta_{call} = -\frac{S_0 \varphi(d_1) \sigma}{2\sqrt{T}} - rKe^{-rT}N(d_2) \]

Put

\[ \Theta_{put} = -\frac{S_0 \varphi(d_1) \sigma}{2\sqrt{T}} + rKe^{-rT}N(-d_2) \]

ν Vega

Sensitivity to a 1-point change in implied volatility. Same formula for calls and puts — volatility affects both the same way.

\[ \nu = S_0 \, \varphi(d_1) \sqrt{T} \]

ρ Rho

Sensitivity to a 1% change in the risk-free rate — usually the smallest-impact Greek for shorter-dated options.

Call

\[ \rho_{call} = KTe^{-rT}N(d_2) \]

Put

\[ \rho_{put} = -KTe^{-rT}N(-d_2) \]

Here, \(\varphi(x)\) is the standard normal probability density function — the "bell curve" itself, as opposed to \(N(x)\)'s cumulative version.

In the Black-Scholes model, the price distribution is postulated as log-normal. The rate of return is therefore by design to be symmetric and options with all strikes have the same voltility. In markets, it is observed that out of money options usually have higher volatility than at-the-money option. This phenomenon is so-called volatility skew and smile. The underlying distribution of rate of return needs to be model the related distribution, for instance, Zhao's q-distribution. RiskAlgo's Q model builds on it, with vol, skew and shape inputs that include Black-Scholes as a special case.

This page explains the mechanics of a pricing model — it isn't financial advice, and Black-Scholes is itself a simplification (it assumes constant volatility and no dividends, among other things) that can diverge from real market prices, especially around earnings or other event risk. See RiskAlgo's Terms of Use for the full disclaimer.

Related

The Q model → — pricing, risk and volatility calibration for the unified vol, skew and shape model.

How RiskAlgo estimates margin → — the same breakdown, applied to how margin requirements work across all fifteen strategies.

Risk conventions → — the specific units, scales, and simplifying assumptions behind every figure on the Risk tab: Delta, Vega, Theta, stress tests, VaR, and assignment risk.