The Heston model is used by quants who build option pricing models, and by the staff who validate those models, to obtain prices that match the market smile.
Prerequisites
- The Black-Scholes Model PractitionerTo check the formula with constant variance and the assumption the Heston model replaces.
- Volatility Smiles and Surfaces PractitionerTo check what the slope and the curvature of the smile mean.
- Introduction to Stochastic Calculus (Ito's Lemma) AdvancedTo check how the stochastic differential equation for the variance is written, and Ito's lemma.
Key points
- The stock price and the variance follow separate stochastic processes, linked by a correlation.
- The variance reverts to a long-run level and cannot reach zero if the Feller condition holds.
- The correlation sets the slope of the smile, and the volatility of variance sets its curvature.
- Prices of European options come from a numerical integration of the characteristic function.
Two stochastic processes for the stock price and the variance
The model equations
The Heston model replaces the constant volatility of the Black-Scholes model with a variance that moves over time, which makes it a stochastic volatility model. The stock price and the variance follow separate stochastic processes. The two Brownian motions that drive them have a correlation 1.
The equations below are written under the risk-neutral measure, with the drift of the stock price set to . Read and as values that already include the price of variance risk.
Here is the interest rate and is the rate of the dividends paid continuously on the stock.
In the equation for the variance, the first term is mean reversion, which pulls the variance back to the long-run level at speed . The second term is a random shock proportional to . A process of this form is called a CIR process (square-root process), and it keeps the variance from turning negative2.
The five parameters
The model has five parameters, each with its own role.
| Symbol | Name | Role | Effect on the smile (FX example) |
|---|---|---|---|
| Initial variance | Current level of the variance | Overall height of the smile | |
| Long-run variance | Level the variance reverts to | Height. Acts much like | |
| Speed of mean reversion | How fast the variance returns to | Near the center. The wings barely change | |
| Volatility of variance | Size of the random moves in the variance | Curvature | |
| Correlation between the stock price and the variance | How the two moves are tied together (direction and strength) | Slope (asymmetry) |
The right-hand column shows how the shape of the smile changes when each parameter is moved one at a time, in an FX example3.
is also called the volatility of volatility (vol of vol). In the Heston model, however, is the coefficient on the random moves of the variance. Rewriting with Ito's lemma, the diffusion term of the volatility is 4. The values cannot be compared directly with the SABR model, where is the coefficient on the random moves of the volatility itself.
The correlation is usually set to a negative value, because it represents the variance rising when the stock price falls5.
Mean reversion of the variance and the Feller condition
How the expected variance approaches its long-run level
The expected variance approaches from exponentially. The expected value at time is given by the following formula.
The larger is, the faster the approach. Consider a hypothetical example in which (volatility of 15%), (20%), and . The expected values by maturity are as follows6.
| Maturity (years) | (%) | ||
|---|---|---|---|
| 0.25 | 0.606531 | 0.029386 | 17.14 |
| 1 | 0.135335 | 0.037632 | 19.40 |
| 3 | 0.002479 | 0.039957 | 19.99 |
The longer the maturity, the closer the expected variance gets to 0.04, which corresponds to 20%. The rightmost column is the square root of the expected variance, and it is not the implied volatility itself.
Deep diveDeriving the formula for the expected variance
Taking the expected value of both sides of the equation for the variance, the expected value of the random term is 0, which leaves the following differential equation.
Solving it with the initial value gives the formula above.
Reading the Feller condition
The Feller condition decides whether the variance reaches 0. If the following condition holds, the CIR process never reaches 0 and stays strictly positive7.
The same condition is also written as . In the example above, with and , the left side is .
If , then and the condition holds (). If , then and it does not hold ().
If the condition fails, the variance touches 0 repeatedly, but it does not stay there. When the model is fitted to market prices, parameters that violate the condition are not unusual. With those parameters, the volatility repeatedly falls below 1%, a pattern that is not observed in the market8.
If the condition fails, a Monte Carlo simulation needs care to keep the simulated variance paths from going below 08. The ordinary Euler discretization can make the variance negative, and the remedies in use include truncating the variance at 0, reflecting it, and drawing from the exact transition distribution9.
What sets the slope and the curvature of the smile
The Black-Scholes model gives the same implied volatility at every strike price. In the Heston model, two parameters break that flat shape.
How the two parameters act
- If , the variance is deterministic and the smile is flat.
- Moving from 0 to a negative value makes puts more expensive and gives a downward-sloping shape, in which the implied volatility is higher at lower strikes. Moving it to a positive value makes calls more expensive and gives an upward-sloping shape.
When , the smile is nearly symmetric, though not perfectly so3.
The typical pattern in equity option markets is a strongly asymmetric skew, while FX markets show a smile shape10. Because , which creates the slope, and , which creates the curvature, are separate parameters, the model can fit these two features independently.
The shape of the smile in a worked example
Consider a hypothetical example in which a European call option has an underlying price of 100, an interest rate of 1%, a maturity of 1 year, and no dividends. The initial variance and the long-run variance are 0.04 (volatility of 20%), and the speed of mean reversion is 2. The prices come from the semi-analytical solution (the way of pricing with the characteristic function), converted to implied volatilities with the Black-Scholes formula11.
| Strike | , | , | , | , |
|---|---|---|---|---|
| 80 | 20.00 | 20.17 | 22.43 | 16.48 |
| 90 | 20.00 | 19.67 | 20.79 | 18.00 |
| 100 | 20.00 | 19.50 | 19.27 | 19.54 |
| 110 | 20.00 | 19.59 | 17.88 | 20.94 |
| 120 | 20.00 | 19.88 | 16.69 | 22.19 |
The implied volatilities in the table are in percent.
The values of are enlarged to make the shapes easy to see. With set to about 0.2 and only moved, producing the strong skew typical of equities with the Heston model requires the correlation to be set very high or very low12.
With , the implied volatility is 22.43% at strike 80 and 16.69% at strike 120, a downward-sloping shape like the one common in equities.
- Heston smile
- Flat volatility as ξ → 0
Call price and implied volatility by strike
| Strike | Call price | Volatility (%) |
|---|---|---|
| 80 | 22.3313 | 22.43 |
| 90 | 14.4459 | 20.79 |
| 100 | 8.1435 | 19.27 |
| 110 | 3.8161 | 17.88 |
| 120 | 1.4213 | 16.69 |
- ATM (strike 100) volatility (%)
- 19.27
- Strike 80 minus strike 120 (points; positive means downward sloping)
- 5.74
- Flat volatility as ξ → 0 (√ of the average variance, %)
- 20.00
- √ of the expected variance at expiry (%)
- 20.00
- Feller condition ratio 2κv̄/ξ²
- 1.78
- At least 1: the condition holds (variance never reaches 0).
- E[S_T] (characteristic function φ(−i); S₀e^(rT))
- 101.0050
Simplifications
- The underlying is 100 with no dividends. Under the risk-neutral measure, the price and the variance follow the two stochastic processes in the article. The ratio of the Feller condition (2κv̄/ξ²) is shown in the results to tell whether variance can reach 0.
- Prices are the semi-analytic solution: a numerical integral of the characteristic function (the stable form of Albrecher et al.). The integral is split into panels with 8-point Gauss-Legendre quadrature, and its upper limit is extended until the integrand is negligible (about 130 for the default values, several thousand when the variance is small and ξ is large). Even for parameters at the edges of the range, the price differs from an integral of a different formula (the Lewis form) by less than 1e-6.
- Volatility is backed out from the price with the Black-Scholes formula. Strikes below the forward use the put price (from parity), and higher strikes use the call price; when no value is found (for example, an out-of-the-money price below 1e-8), "—" is shown and the chart draws only the longest continuous stretch.
- The lower limit of ξ is 0.02 (the formula cannot be used at ξ = 0). ρ goes up to ±0.95. Real calibration (fitting parameters to market prices) is not covered; the parameters you enter are used as they are.
This simulator uses simplified calculations for learning. It cannot be used for valuing actual transactions or managing their risk. (Terms of Use)
About this simulator
Move the initial variance, the long-run variance, the mean-reversion speed, the volatility of variance ξ, the correlation ρ, the expiry, and the rate to see the implied volatility curve by strike. The initial values are the ξ = 0.3, ρ = −0.7 column of the worked example above. Move ρ to 0.7 or 0 and ξ to 0.02, and compare with the other columns of the table. The dashed line on the chart is the flat volatility in the limit ξ → 0. Raising ξ to 0.5 breaks the Feller condition, and the results panel says so. The ratio in the results panel is 2κv̄/ξ², and a value below 1 means the condition is not met (half of the text's 4κv̄/ξ², whose threshold is 2).
A semi-analytical solution using the characteristic function
The pricing formula
In the Heston model, the characteristic function of the log stock price at maturity, , can be written in closed form. Without dividends (), and with the current stock price, the price of a European call is built from two terms that come from numerically integrating this characteristic function13.
and are terms determined by the distribution of the log stock price, and they can be written as the following integrals using . is the strike price and is the real part.
The denominator in is the value corresponding to (). It scales the whole expression so that it can be used as a probability.
Because the integrand can be written analytically, only the integral needs to be computed numerically. This is called a semi-analytical solution. Unlike Monte Carlo simulation, it does not need to generate random paths. The speed when prices are computed many times in calibration is a strength of the model.
The form of the characteristic function
The characteristic function takes the following form. is the imaginary unit, is the integration variable, is the maturity, and is taken to be 014.
Deep diveTwo forms of the characteristic function and numerical instability
A form of the characteristic function with the sign of reversed also appears in the literature. The two differ only in which of the two values of the complex square root is taken, and they are mathematically the same function. However, if you take the principal value of the complex logarithm, the value jumps discontinuously each time the argument crosses the negative real axis.
The form in the original paper has the opposite sign of from the formula above. In numerical integration these jumps become a problem, and when the maturity is long (beyond 3 to 5 years), prices can be badly off. The form above has been shown to be stable over the whole range of parameters15.
What calibration fits
The steps below are one way (the FX example of Janek et al.) to fit the Heston model to a smile with a single maturity.
- Take the series of market implied volatilities of European options for that maturity.
- Set the initial variance to the at-the-money (ATM) value and fix the speed of mean reversion (one way to choose, covered below). Set trial values for the long-run variance , the volatility of variance , and the correlation .
- With these parameters, integrate the characteristic function numerically to get the call price.
- Convert the price to an implied volatility with the Black-Scholes formula.
- Compare the result with the market implied volatilities, and choose , , and so that the gap becomes small. If the gap is large, repeat from step 3 with only , , and changed and the fixed and left as they are.
The key point is that the model price is not compared with the market directly but is first converted to an implied volatility, which is the same measure.
In the FX example, three of the five parameters are effectively fitted. The long-run variance corresponds to the level of the smile (the ATM value), to the curvature (quoted in the market as the butterfly), and to the slope (quoted as the risk reversal)16. The initial variance is fixed beforehand from the ATM value. Another way to narrow the problem is to fix , because its effect overlaps with that of 17.
In the FX example, when the smile was fitted separately for each maturity, the parameter values differed from maturity to maturity18. For the procedure for fitting to market prices, the choice of objective function, and overfitting, see Model Calibration.
Assumptions and limits
A stock and a deposit alone cannot replicate the moves of the variance. Replication requires adding other options. Pricing therefore requires an assumption about the market price of variance risk. The original Heston paper assumed that it is proportional to the variance19. A value computed with the Heston model is a value under the assumptions of this model.
A change in assumptions changes the result substantially. In the worked example above, changing from 0 to with held fixed moves the implied volatility at strike 80 from 20.17% to 22.43%.
Fitted parameters can change a lot when the market changes. In 2010, Janek et al. fitted the model to the EUR/USD volatility surface. For maturities of 1 month or more, ranged from to 0.05 on July 1, 2004, and from to in the market of July 22, 201016.
In the same case, maturities of 3 months or more fit well, while those under 3 months fit poorly. When you try to fit short maturities, and the speed of mean reversion tend to become too large. This is interpreted as a sign that the price process needs jumps20. Models with jumps are covered in Jump-Diffusion Models: Merton and Bates.
What this article does not cover
- The procedure for generating variance paths and the error estimate for Monte Carlo simulation are covered in Monte Carlo Simulation.
- Models in which the volatility itself is the stochastic process are covered in The SABR Model.
Notes
-
Albrecher et al., "The Little Heston Trap" (external site) (Wilmott Magazine, 2006; hereafter "Albrecher et al."), section 2 (page 3), and Janek et al., "FX smile in the Heston model" (external site) (arXiv, 2010; hereafter "Janek et al."), section 1.2 (page 2). The symbols are replaced with , , , and as used in the text. ↩
-
Albrecher et al. (external site), section 2 (page 3), set the variance as a mean-reverting square-root process (CIR process). The non-negativity is in Janek et al. (external site), section 1.3.3 (page 8). ↩
-
Janek et al. (external site), section 1.4.1 (pages 11 to 13). The source explains that sets the height, (the source's ) sets the curvature, (the source's ) acts much like , and acts near the ATM level. The limit has no curvature, and the correlation changes the asymmetry. At a correlation of 0 the smile is nearly symmetric (not perfectly), and a positive correlation makes calls, and a negative one puts, more expensive. ↩ ↩2
-
The coefficient follows from Ito's lemma (calculated for this site). The name vol of vol is from Janek et al. (external site), section 1.2 (page 2). The SABR is from the equation on the SABR model page (Hagan et al.). ↩
-
Albrecher et al. (external site), section 2 (page 3). The source says the correlation is usually negative, which goes with the variance rising when the stock price falls. ↩
-
The derivation of the formula is in the deep dive (calculated for this site). The values in the table come from . ↩
-
Janek et al. (external site), section 1.3.3 (page 8), equation 1.32. Albrecher et al. (external site), section 2 (page 3), write the same condition as , without the equality. This page uses the form of Janek et al. ↩
-
Janek et al. (external site), section 1.3.3 (page 8). The source covers the repeated touching of 0 when the condition fails, how common this is when fitting to market prices, the absence of volatility below 1% in the market, and the care needed in Monte Carlo simulation. ↩ ↩2
-
Janek et al. (external site), section 1.3.2 (pages 7 to 8). ↩
-
Janek et al. (external site), section 1.2 (page 2). The source describes a strongly asymmetric skew as typical of equities and smiles in FX. ↩
-
Calculated for this site. The characteristic function of Albrecher et al. is integrated numerically to get the call price, which is converted to an implied volatility with the Black-Scholes formula. ↩
-
Janek et al. (external site), section 1.4.1 (page 13). The source says the model produces the skew typical of equity markets only when the correlation is set to a very high or very low value. This follows its discussion of moving only the correlation in the settings of figures 1.4 and 1.5 (page 12; is the source's , at 0.2). ↩
-
Janek et al. (external site), section 1.3.1 (page 5), equations 1.12 to 1.18. and correspond to in the same section. The FX equations are read with and . ↩
-
Albrecher et al. (external site), section 3 (page 4), the second form (). Here is set and the symbols are replaced with those in the text. Equations 1.29 to 1.31 in Janek et al. (external site), section 1.3.2 (page 7), have the same form. ↩
-
Albrecher et al. (external site), abstract (page 2) and section 3 (page 4). The rule-of-thumb threshold (3 to 5 years) is in Janek et al. (external site), section 1.3.2 (page 7). ↩
-
Janek et al. (external site), section 1.4.3 (page 14). The source gives the results of fits to EUR/USD on July 1, 2004 and July 22, 2010, and the correspondence of the three fitted parameters. ↩ ↩2
-
Janek et al. (external site), section 1.4.1 (pages 12 to 13). The source covers setting to the ATM value, fixing and fitting the other three, and refitting with a different if the condition fails. ↩
-
Janek et al. (external site), section 1.5.1 (page 16). Because the values differ by maturity, the source suggests considering a term structure for some of the parameters. ↩
-
Janek et al. (external site), section 1.3 (page 4). The source says tradable assets alone are not enough and other derivatives must be added, and that the original paper assumed the price of variance risk is proportional to the variance. ↩
-
Janek et al. (external site), section 1.5.2 (page 19). The source says that when short-maturity smiles are fitted, the volatility of variance and the speed of mean reversion become too large, which is a strong indication that the process wants to jump. ↩